:root {
  --primary:     #1B6B2F;
  --primary-2:   #2E8B3F;
  --primary-lt:  #E8F5EC;
  --accent:      #145C25;
  --accent-2:    #1E7A33;
  --bg:          #F3F4F6;
  --text:        #1C2333;
  --muted:       #6B7590;
  --card:        #ffffff;
  --line:        #E2E5EC;
  --danger:      #C0392B;
  --danger-lt:   #FDF0EF;
  --success:     #1A7A45;
  --shadow:      0 1px 4px rgba(27, 47, 80, 0.10);
  --shadow-sm:   0 1px 3px rgba(27, 47, 80, 0.07);
  --radius:      8px;
  --radius-sm:   6px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

/* ─────────────────────────────────────────────────────
   LOGIN SCREEN
───────────────────────────────────────────────────── */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 15% 0%,   rgba(27, 107, 47, 0.20) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(46, 139, 63, 0.12) 0%, transparent 50%),
    var(--bg);
}
.login-screen.hidden { display: none; }

.login-card {
  width: min(460px, calc(100vw - 32px));
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(27, 58, 107, 0.22);
  overflow: hidden;
  animation: reveal 340ms ease;
}

.login-card-header {
  background: linear-gradient(145deg, #0F4A1F 0%, #1B6B2F 45%, #2E8B3F 100%);
  padding: 36px 32px 28px;
  text-align: center;
  position: relative;
}
.login-card-header::after {
  content: '';
  position: absolute;
  bottom: -12px; left: 50%;
  transform: translateX(-50%);
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 12px solid #2E8B3F;
}

.login-logo {
  width: 160px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 10px 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
}
.login-card-header h1 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.login-card-header .login-description {
  margin: 10px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.80);
}

.login-body {
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.login-field input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.97rem;
  font-family: 'Outfit', sans-serif;
  background: #FAFBFC;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-field input:focus {
  outline: none;
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(27, 107, 47, 0.15);
}
.login-error {
  display: none;
  background: var(--danger-lt);
  border: 1px solid #f0c4c0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--danger);
  font-size: 0.87rem;
}
.login-error.visible { display: block; }

.btn-login {
  width: 100%;
  padding: 13px;
  background: linear-gradient(120deg, #1B6B2F 0%, #2E8B3F 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 18px rgba(27, 107, 47, 0.35);
}
.btn-login:hover  { opacity: 0.90; transform: translateY(-1px); }
.btn-login:active { transform: translateY(0); }
.btn-login:disabled { opacity: 0.50; cursor: not-allowed; transform: none; }

/* ─────────────────────────────────────────────────────
   APP SCREEN
───────────────────────────────────────────────────── */
.app-screen { display: flex; flex-direction: column; min-height: 100vh; }
.app-screen.hidden { display: none; }

/* TOP BAR */
.app-topbar {
  background: linear-gradient(120deg, #0F4A1F 0%, #1B6B2F 50%, #2E8B3F 100%);
  padding: 0 20px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 6px rgba(15, 74, 31, 0.30);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-brand { display: flex; align-items: center; gap: 14px; }
.topbar-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 3px 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.topbar-title-group { display: flex; flex-direction: column; }
.topbar-app-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 0.04em;
}
.topbar-institution {
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-username {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
}
.btn-logout {
  padding: 7px 16px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-logout:hover { background: rgba(255,255,255,0.22); }

/* MAIN */
.app-main {
  flex: 1;
  padding: 8px 0 16px;
  max-width: 92vw;
  margin: 0 auto;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* PAGE HERO */
.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 2px 0;
}
.page-hero-inner { display: flex; align-items: center; gap: 10px; }
.hero-icon {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(27, 107, 47, 0.20);
}
.hero-icon svg { width: 14px; height: 14px; stroke: #fff; }
.hero-text h1 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.hero-text p {
  margin: 1px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}
.btn-hero-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* CARD */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  overflow: hidden;
}

/* FILTERS */
.filters-card { padding: 0; }
.filters-header {
  background: #F7FAF7;
  border-bottom: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: var(--radius) var(--radius) 0 0;
  border-left: 3px solid var(--primary);
}
.filters-header h2 {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.filters-header h2::before {
  content: none;
}
.filters-grid-wrap {
  padding: 8px 10px 10px;
}
.filters-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-end;
}
.filters-grid .field { flex: 1; min-width: 160px; }
.filter-actions { display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0; }

/* FIELD */
.field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.field span, .field > label {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.82rem;
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
  height: 26px;
}
.field input:hover:not(:focus), .field select:hover:not(:focus) {
  border-color: #b0b9cb;
  background: #fafbfd;
}
.field select { cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary-2);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(27, 107, 47, 0.12);
}
.field textarea { resize: vertical; min-height: 70px; height: auto; }
.req, .field .req, .field span .req { color: var(--danger) !important; margin-left: 2px; font-weight: 700; }

/* BUTTONS */
.btn-primary {
  padding: 4px 12px;
  background: linear-gradient(120deg, #1B6B2F 0%, #2E8B3F 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 1px 3px rgba(27, 107, 47, 0.20);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  height: 26px;
}
.btn-primary:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary.btn-sm { padding: 4px 10px; font-size: 0.75rem; height: 24px; }

.btn-ghost {
  padding: 4px 10px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  height: 26px;
}
.btn-ghost:hover { border-color: var(--primary-2); color: var(--primary); background: var(--primary-lt); }

.btn-autorizacao {
  padding: 6px 12px;
  background: linear-gradient(120deg, #1B6B2F 0%, #2E8B3F 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: opacity 0.2s;
  box-shadow: 0 2px 8px rgba(27, 107, 47, 0.30);
}
.btn-autorizacao:hover { opacity: 0.85; }
.btn-autorizacao.is-disabled,
.btn-autorizacao:disabled {
  background: #E4E7EC;
  color: #98A2B3;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}
.btn-autorizacao.is-disabled:hover,
.btn-autorizacao:disabled:hover { opacity: 1; }

.btn-edit {
  padding: 3px 9px;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  height: 24px;
}
.btn-edit:hover {
  background: var(--primary-lt);
  border-color: var(--primary-2);
  color: var(--primary);
}

.btn-delete {
  padding: 3px 9px;
  background: #fff;
  color: #B42318;
  border: 1px solid #FECDCA;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-delete:hover {
  background: #FEF3F2;
  border-color: #F97066;
  color: #912018;
}

/* GRID */
.grid-section { overflow: hidden; }
.grid-header {
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: #F7FAF7;
  border-radius: var(--radius) var(--radius) 0 0;
  border-left: 3px solid var(--primary);
}
.grid-header h2 {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  display: flex;
  align-items: center;
  gap: 6px;
}.grid-header h2::before {
  content: '';
  width: 4px;
  height: 14px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}
.grid-total {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-lt);
  border-radius: 20px;
  padding: 4px 12px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(27, 107, 47, 0.18);
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
thead tr {
  background: #F4F6F4;
}
th {
  padding: 5px 10px;
  text-align: left;
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 4px 10px;
  border-bottom: 1px solid #ECEEF4;
  vertical-align: middle;
  font-size: 0.82rem;
}
tbody tr:hover { background: #F2F8F3; }
tbody tr:last-child td { border-bottom: none; }
tbody tr.row-clickable { cursor: pointer; }
tbody tr.row-clickable .col-actions { cursor: default; }

/* View mode (somente leitura) */
.modal-box.view-mode input:disabled,
.modal-box.view-mode select:disabled,
.modal-box.view-mode textarea:disabled {
  background: #F7F8FA;
  color: #2C3142;
  opacity: 1;
  cursor: default;
}

.col-actions { text-align: right; }
.actions-cell { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }

.empty-row td {
  text-align: center;
  color: var(--muted);
  padding: 24px 10px;
  font-size: 0.82rem;
}

/* PAGINATION */
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 10px 0 4px;
  flex-wrap: wrap;
}
.pagination button {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.18s;
}
.pagination button:hover { border-color: var(--primary-2); color: var(--primary); }
.pagination button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pagination button:disabled { opacity: 0.40; cursor: not-allowed; }

/* ─────────────────────────────────────────────────────
   MODAL — Cadastro: full-page overlay
───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 18, 40, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
}
.modal-overlay[aria-hidden="true"] { display: none; }

/* ── Cadastro modal: 80% centered ── */
.modal-box.modal-large {
  background: var(--bg);
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(10, 18, 40, 0.30);
  display: flex;
  flex-direction: column;
  width: 92vw;
  height: 92vh;
  max-height: 92vh;
  animation: modal-in 200ms ease;
  overflow: hidden;
}

/* ── Split 2-column layout ── */
.modal-split {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  overflow: hidden;
  min-height: 0;
}
.modal-split-main {
  overflow-y: auto;
  padding: 8px 10px 14px;
  background: var(--bg);
}
.modal-split-side {
  overflow-y: auto;
  padding: 8px 10px 12px;
  background: #F7F9FB;
  border-left: 1px solid var(--line);
}
.modal-side-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
  padding: 0 0 7px 9px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.modal-split-main::-webkit-scrollbar,
.modal-split-side::-webkit-scrollbar { width: 6px; }
.modal-split-main::-webkit-scrollbar-track,
.modal-split-side::-webkit-scrollbar-track { background: var(--bg); border-radius: 3px; }
.modal-split-main::-webkit-scrollbar-thumb,
.modal-split-side::-webkit-scrollbar-thumb { background: #C5CDD8; border-radius: 3px; }

/* ── Autorização modal: classic centered box ── */
.modal-autorizacao {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(10,18,40,0.28);
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  width: min(760px, calc(100vw - 32px));
  animation: modal-in 260ms ease;
}

/* ── TOP TOPBAR INSIDE CADASTRO MODAL ── */
.modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 36px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(10,18,40,0.05);
}
.modal-topbar-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.01em;
}
.modal-topbar-title svg { color: var(--primary); }
.modal-topbar-actions { display: flex; align-items: center; gap: 8px; }

/* ── Legacy modal header (for autorização) ── */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.modal-header.no-border { border-bottom: none; }
.modal-header h2 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
.modal-header-actions { display: flex; align-items: center; gap: 10px; }
.modal-close {
  width: 34px; height: 34px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: var(--danger-lt); color: var(--danger); }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

/* ── TABS BAR ── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--line);
  padding: 0 32px;
  overflow-x: auto;
  flex-shrink: 0;
  background: var(--card);
}
.tab {
  padding: 15px 22px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
  border-radius: 6px 6px 0 0;
}
.tab:hover { color: var(--primary); background: var(--primary-lt); }
.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--primary-lt);
}

.tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px 32px;
  background: var(--bg);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── SECTIONS INSIDE FORM ── */
.form-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0;
  margin-bottom: 6px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.form-section:hover {
  box-shadow: 0 1px 4px rgba(27, 58, 107, 0.08);
}
.form-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0;
  padding: 5px 10px 5px 10px;
  background: #F7FAF7;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* FORM GRID */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 5px 8px;
  padding: 7px 10px 9px;
}
.form-grid .field-full {
  grid-column: 1 / -1;
}

/* FILTER CHIPS */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 2px;
}
.filter-chips.hidden { display: none; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary-lt);
  border: 1px solid rgba(27, 107, 47, 0.20);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 4px 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}
.filter-chip-key { opacity: 0.7; font-weight: 700; }
.filter-chip-remove {
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0 4px;
  border-radius: 50%;
  height: 16px;
  width: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.filter-chip-remove:hover { background: rgba(27, 107, 47, 0.18); }

/* AUDIT INFO */
.audit-info {
  padding: 7px 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.audit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text);
}
.audit-label {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 130px;
}
.audit-value { font-weight: 600; color: var(--primary); }
.audit-sep { color: var(--muted); font-size: 0.72rem; }

/* LOGS LIST */
.logs-list {
  max-height: 220px;
  overflow-y: auto;
}
.log-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid #ECEEF4;
  font-size: 0.78rem;
  align-items: center;
  cursor: pointer;
  transition: background 0.12s;
}
.log-item:hover { background: var(--primary-lt); }
.log-item:last-child { border-bottom: none; }
.log-op {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.log-op.op-i { background: var(--primary-lt); color: var(--primary); }
.log-op.op-u { background: #FFF4E0; color: #B07000; }
.log-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.log-user { font-weight: 700; color: var(--text); font-size: 0.78rem; }
.log-fields {
  font-size: 0.70rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.log-date {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

/* FILTROS MODAL */
.modal-box.modal-filtros {
  background: var(--card);
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(10, 18, 40, 0.30);
  display: flex;
  flex-direction: column;
  width: min(720px, calc(100vw - 32px));
  max-height: 85vh;
  animation: modal-in 200ms ease;
  overflow: hidden;
}

/* FORM ERROR */
.form-error {
  margin: 0 24px 8px;
  background: var(--danger-lt);
  border: 1px solid #f0c4c0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--danger);
  font-size: 0.87rem;
}
.form-error.hidden { display: none; }

/* UPLOAD AREA */
.upload-area {
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  color: var(--muted);
}
.upload-area:hover, .upload-area.drag-over {
  border-color: var(--primary-2);
  background: var(--primary-lt);
  color: var(--primary);
}
.upload-area svg { opacity: 0.55; margin-bottom: 8px; }
.upload-area p { margin: 6px 0; font-size: 0.9rem; }
.upload-hint { font-size: 0.78rem; opacity: 0.70; }
.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.progress-bar {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  margin: 12px 0 4px;
  overflow: hidden;
}
#progressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width 0.3s;
}
#progressText { font-size: 0.82rem; color: var(--muted); }

.arquivos-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin: 24px 0 12px;
}
.arquivos-list { display: flex; flex-direction: column; gap: 8px; }
.arquivo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.arquivo-info { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.arquivo-icon {
  width: 32px; height: 32px;
  background: var(--primary-lt);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.arquivo-nome {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.arquivo-info > div:last-child { min-width: 0; flex: 1; }
.arquivo-meta {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.arquivo-download {
  color: var(--primary);
  font-size: 0.78rem;
  text-decoration: none;
  flex-shrink: 0;
  padding: 4px 10px;
  background: var(--primary-lt);
  border-radius: 6px;
  transition: background 0.2s;
}
.arquivo-download:hover { background: #d4dcef; }
.arquivo-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.arquivo-delete {
  font-size: 0.78rem;
  padding: 4px 10px;
  background: #FDECEC;
  color: #B42318;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.arquivo-delete:hover:not(:disabled) { background: #FBD5D2; }
.arquivo-delete:disabled { opacity: 0.5; cursor: not-allowed; }
.modal-box.view-mode .arquivo-delete { display: none; }

/* INFO BOX */
.info-box {
  background: #EFF3FB;
  border: 1px solid #C2CEE8;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--primary);
  font-size: 0.88rem;
}

/* ─────────────────────────────────────────────────────
   AUTORIZAÇÃO
───────────────────────────────────────────────────── */
.autorizacao-content {
  overflow-y: auto;
  padding: 10px 28px 28px;
}
.aut-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 22px;
}
.aut-logo {
  width: 64px; height: 64px;
  object-fit: contain;
}
.aut-header-text h2 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
.aut-header-text p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.aut-title {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  background: var(--primary-lt);
  padding: 10px;
  border-radius: var(--radius-sm);
}
.aut-section {
  margin-bottom: 18px;
}
.aut-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.aut-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.aut-field label { display: block; font-size: 0.72rem; color: var(--muted); margin-bottom: 2px; }
.aut-field span { font-size: 0.92rem; font-weight: 600; color: var(--text); }

.aut-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.signature-block { text-align: center; }
.signature-line {
  border-top: 1.5px solid var(--text);
  margin-bottom: 6px;
}
.signature-label { font-size: 0.80rem; color: var(--muted); }
.aut-footer {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}
.aut-id {
  text-align: right;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ─────────────────────────────────────────────────────
   UTILITIES
───────────────────────────────────────────────────── */
.hidden { display: none !important; }
.empty-msg { color: var(--muted); font-size: 0.88rem; padding: 12px 0; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* ─────────────────────────────────────────────────────
   PRINT
───────────────────────────────────────────────────── */
@media print {
  body > *:not(#autorizacaoModal) { display: none !important; }
  #autorizacaoModal {
    display: block !important;
    position: static !important;
    background: none !important;
    backdrop-filter: none !important;
  }
  .modal-box {
    box-shadow: none !important;
    max-height: none !important;
    border-radius: 0 !important;
  }
  .modal-header .modal-close,
  .modal-header-actions { display: none !important; }
  .autorizacao-content { overflow: visible !important; }
}

@media (max-width: 600px) {
  .app-main { padding: 12px; max-width: 100%; width: 100%; }
  .filters-grid .field { min-width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .aut-grid { grid-template-columns: 1fr; }
  .aut-signatures { grid-template-columns: 1fr; }
  .topbar-institution { display: none; }
}

/* ─────────────────────────────────────────────────────
   ELEGANT SCROLLBAR
───────────────────────────────────────────────────── */
.tab-content::-webkit-scrollbar,
.autorizacao-content::-webkit-scrollbar { width: 6px; }
.tab-content::-webkit-scrollbar-track,
.autorizacao-content::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 3px;
}
.tab-content::-webkit-scrollbar-thumb,
.autorizacao-content::-webkit-scrollbar-thumb {
  background: #C5CDD8;
  border-radius: 3px;
}
.tab-content::-webkit-scrollbar-thumb:hover,
.autorizacao-content::-webkit-scrollbar-thumb:hover {
  background: #9FAAB8;
}

/* ─────────────────────────────────────────────────────
   UPLOAD AREA HOVER
───────────────────────────────────────────────────── */
.upload-area {
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.upload-area:hover, .upload-area.drag-over {
  box-shadow: 0 0 0 3px rgba(27, 107, 47, 0.10);
}

/* ─────────────────────────────────────────────────────
   LOGIN CARD REFINEMENTS
───────────────────────────────────────────────────── */
.login-card-header::after {
  border-top-color: #1B6B2F;
}

/* ─────────────────────────────────────────────────────
   LOG DETAIL — DIFF VIEW
───────────────────────────────────────────────────── */
.log-diff-header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 0.78rem;
}
.log-diff-header .meta-item { display: flex; flex-direction: column; }
.log-diff-header .meta-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.log-diff-header .meta-value { color: var(--text); font-weight: 600; }

.log-diff-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.78rem;
}
.log-diff-table th,
.log-diff-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #ECEEF4;
  text-align: left;
  vertical-align: top;
}
.log-diff-table th {
  background: var(--primary-lt);
  color: var(--primary);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.log-diff-table tr:last-child td { border-bottom: none; }
.log-diff-field {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--text);
  white-space: nowrap;
}
.log-diff-before {
  color: var(--danger);
  background: #FFF1EF;
  text-decoration: line-through;
  word-break: break-word;
}
.log-diff-after {
  color: #1B6B2F;
  background: #EAF6EE;
  font-weight: 600;
  word-break: break-word;
}
.log-diff-empty {
  color: var(--muted);
  font-style: italic;
}

/* ─────────────────────────────────────────────────────
   DATE FIELD WITH CLEAR BUTTON
───────────────────────────────────────────────────── */
.date-field { position: relative; }
.date-field input[type="date"] { padding-right: 28px; }
.date-clear {
  position: absolute;
  right: 6px;
  bottom: 7px;
  width: 18px;
  height: 18px;
  border: none;
  background: var(--line);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s;
}
.date-clear:hover { background: var(--danger); color: #fff; }
.date-field.has-value .date-clear { display: inline-flex; }

/* ─────────────────────────────────────────────────────
   STATS CARDS
───────────────────────────────────────────────────── */
.stats-row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 200px;
}
.stat-card .stat-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.stat-card.stat-warn .stat-icon { background: #FFF4E0; color: #B07000; }
.stat-card .stat-body { display: flex; flex-direction: column; line-height: 1.1; }
.stat-card .stat-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.stat-card .stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

/* Tasy badge in grid */
.tasy-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-weight: 800;
}
.tasy-badge.tasy-yes { background: var(--primary-lt); color: var(--primary); }
.tasy-badge.tasy-no  { background: #FFE7E3; color: var(--danger); }

/* Compact stat pill (in header) — redesigned */
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #FEE4B0;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.1;
  box-shadow: 0 1px 2px rgba(176, 112, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}
.stat-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 244, 224, 0.6) 0%, rgba(255, 233, 194, 0.4) 100%);
  pointer-events: none;
  z-index: 0;
}
.stat-pill > * { position: relative; z-index: 1; }
.stat-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(176, 112, 0, 0.18);
  border-color: #F0C56B;
}
.stat-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #F4A93A 0%, #E07E1B 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(176, 112, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.stat-pill-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1;
}
.stat-pill-text {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}
.stat-pill-label {
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 0.70rem;
  font-weight: 800;
  color: #6B3A00;
}
.stat-pill-sub {
  font-size: 0.66rem;
  font-weight: 500;
  color: #A06A20;
  letter-spacing: 0.02em;
}

/* Tasy CD pill in grid */
.tasy-cd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--primary-lt);
  color: var(--primary);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Criar PF (Tasy) button */
.btn-criar-pf {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #fff;
  color: #B07000;
  border: 1px solid #F4D9A0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.15s;
}
.btn-criar-pf:hover {
  background: #FFF4E0;
  border-color: #E0B870;
}

/* ── MODAL DE CONFIRMAÇÃO ──────────────────────────────────── */
.modal-box.modal-confirm {
  width: 100%;
  max-width: 460px;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  animation: confirmIn 0.18s ease-out;
}
@keyframes confirmIn {
  from { transform: scale(0.94); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.modal-confirm-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px 10px;
}
.modal-confirm-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-lt);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-confirm-icon.warning { background: #FFF4E0; color: #B07000; }
.modal-confirm-icon.danger  { background: var(--danger-lt); color: var(--danger); }
.modal-confirm-icon.success { background: #E6F7EC; color: #1F7A3A; }
.modal-confirm-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.modal-confirm-body {
  padding: 6px 24px 22px 24px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-line;
}
.modal-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px;
  background: #FAFBFC;
  border-top: 1px solid var(--line);
}
.modal-confirm-actions .btn-primary,
.modal-confirm-actions .btn-ghost {
  min-width: 110px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
}
.modal-confirm-actions .btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}
.modal-confirm-actions .btn-ghost:hover { background: #F3F4F6; }

/* ── CONFIGURAÇÃO DE AUTORIZAÇÃO ─────────────────────────── */
.cfg-aut-box {
  max-width: 540px;
  width: 94%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(10, 18, 40, 0.30);
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  overflow: hidden;
  transition: max-width 0.28s ease;
}
.cfg-aut-box.is-expanded { max-width: 1040px; }
.cfg-aut-body { max-height: 72vh; overflow-y: auto; padding: 16px 20px; }
.cfg-aut-list {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.cfg-aut-row {
  display: grid;
  grid-template-columns: 110px 70px 1fr 130px 38px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--line);
}
.cfg-aut-row:last-child { border-bottom: none; }
.cfg-aut-row.cfg-aut-row-proc {
  grid-template-columns: 110px 110px 1fr 130px 38px;
}
.cfg-aut-row.cfg-aut-row-mat {
  grid-template-columns: 110px 1fr 130px 38px;
}
.cfg-aut-row.cfg-aut-head {
  background: #F7FAF7;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.cfg-aut-cd { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--primary); font-weight: 700; }
.cfg-aut-or { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--muted); font-size: 0.74rem; }
.cfg-aut-ds { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfg-aut-qt-input {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: 'Space Grotesk', sans-serif;
  text-align: right;
}
.cfg-aut-qt-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(27, 107, 47, 0.10); }
.btn-icon-remove {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #FECDCA;
  background: #fff;
  color: #B42318;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.btn-icon-remove:hover { background: #FEF3F2; border-color: #F97066; }

/* ── GERAR AUTORIZAÇÃO — resumo ───────────────────────────── */
.aut-resumo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 24px;
  padding: 4px 6px;
}
.aut-resumo-grid > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aut-resumo-grid label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.aut-resumo-grid span {
  font-size: 0.92rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .aut-resumo-grid { grid-template-columns: 1fr; }
}

/* ── PICKER MODAL ────────────────────────────────────────── */
.picker-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(10, 18, 40, 0.30);
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  overflow: hidden;
}
.picker-search { padding: 0 4px 10px; }
.picker-search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.92rem;
  font-family: 'Space Grotesk', sans-serif;
}
.picker-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(27, 107, 47, 0.12); }
.picker-results {
  max-height: 52vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.picker-row {
  display: grid;
  grid-template-columns: 90px 110px 1fr;
  gap: 12px;
  padding: 10px 14px;
  align-items: center;
  font-size: 0.84rem;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s;
}
.picker-row.picker-row-mat { grid-template-columns: 110px 1fr; }
.picker-row.picker-row-head {
  background: #F7FAF7;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
  color: var(--muted);
  cursor: default;
  position: sticky;
  top: 0;
  z-index: 1;
}
.picker-row.picker-row-head:hover { background: #F7FAF7; }
.picker-row:last-child { border-bottom: none; }
.picker-row:hover { background: var(--primary-lt); }
.pk-cd { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--primary); font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-ds { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
