/* ── RESET BASE ────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: var(--font-ui);
}

html, body { width: 100%; height: 100%; }
html { font-size: 16px; }

body {
  background: var(--bg-body);
  background-image:
    radial-gradient(ellipse 70% 50% at 0% 0%,   rgba(56,70,34,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%,rgba(230,184,0,0.07)  0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 50% 50%,  rgba(56,70,34,0.03) 0%, transparent 80%);
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  padding-bottom: var(--viewport-footer-space);
  line-height: 1.5;
}

body.master-fullscreen-active {
  overflow: hidden;
  padding-bottom: 0;
}

/* Global visual controls */
.ui-global-controls {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  width: min(270px, calc(100vw - 32px));
  align-items: stretch;
}

.ui-global-controls.is-collapsed {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.ui-global-main-toggle {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0 16px;
  line-height: 1.2;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .12s ease;
  box-shadow: 0 12px 28px rgba(37,47,21,0.16);
  gap: 8px;
  justify-content: center;
}

.ui-global-main-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  background: linear-gradient(135deg, #e5e9df 0%, #d9ded1 100%);
}

.ui-global-controls:not(.is-collapsed) .ui-global-main-toggle {
  align-self: flex-end;
  width: auto;
  min-width: 96px;
  min-height: 38px;
  padding: 0 14px;
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
}

.ui-global-controls-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 640px;
  opacity: 1;
  overflow: hidden;
  transition: max-height .2s ease, opacity .2s ease;
}

.ui-global-controls.is-collapsed .ui-global-controls-body {
  display: none;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.task-notification-widget {
  bottom: 86px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: fixed;
  right: 18px;
  z-index: 1395;
}

.task-notification-widget.hidden {
  display: none;
}

.task-notification-toggle {
  align-items: center;
  align-self: flex-end;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(37,47,21,0.16);
  color: var(--primary-dark);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 850;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  position: relative;
  transition: background .2s ease, border-color .2s ease, transform .12s ease;
}

.task-notification-toggle:hover {
  background: linear-gradient(135deg, #e5e9df 0%, #d9ded1 100%);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.task-notification-toggle svg {
  height: 18px;
  width: 18px;
}

.task-notification-widget.has-unread .task-notification-toggle {
  background: linear-gradient(135deg, var(--primary) 0%, #0f4c81 100%);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.task-notification-badge {
  align-items: center;
  background: #ef4444;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 900;
  justify-content: center;
  min-height: 20px;
  min-width: 20px;
  padding: 0 5px;
  position: absolute;
  right: -4px;
  top: -7px;
}

.task-notification-badge.hidden {
  display: none;
}

.task-notification-panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  border-radius: 16px;
  bottom: 58px;
  box-shadow: 0 22px 56px rgba(18,22,10,0.22);
  overflow: hidden;
  position: absolute;
  right: 0;
  width: min(390px, calc(100vw - 36px));
}

.task-notification-panel.hidden {
  display: none;
}

.task-notification-panel header {
  align-items: center;
  background: linear-gradient(135deg, rgba(59,75,33,0.1), rgba(15, 76, 129, 0.08));
  border-bottom: 1px solid rgba(59,75,33,0.12);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 16px;
}

.task-notification-panel header strong,
.task-notification-panel header span {
  display: block;
}

.task-notification-panel header strong {
  color: var(--text, #1f2937);
  font-size: 1rem;
}

.task-notification-panel header span {
  color: var(--text-muted, #7e8474);
  font-size: 0.8rem;
  margin-top: 2px;
}

.task-notification-close {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text, #1f2937);
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.task-notification-list {
  display: grid;
  gap: 8px;
  max-height: min(390px, calc(100vh - 260px));
  overflow-y: auto;
  padding: 12px;
}

.task-notification-item {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text, #1f2937);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.task-notification-item:hover {
  border-color: rgba(59,75,33,0.32);
  box-shadow: 0 10px 22px rgba(37,47,21,0.12);
  transform: translateY(-1px);
}

.task-notification-item strong,
.task-notification-item small {
  display: block;
}

.task-notification-item strong {
  font-size: 0.88rem;
  line-height: 1.35;
}

.task-notification-item small {
  color: var(--text-muted, #7e8474);
  font-size: 0.74rem;
  margin-top: 4px;
}

.task-notification-dot {
  background: #c5d1b0;
  border-radius: 999px;
  height: 10px;
  margin-top: 4px;
  width: 10px;
}

.task-notification-item.is-new {
  background: #fff7ed;
  border-color: #fdba74;
}

.task-notification-item.is-new .task-notification-dot {
  background: #ea580c;
}

.task-notification-empty {
  border: 1px dashed rgba(59,75,33,0.28);
  border-radius: 10px;
  color: var(--text-muted, #7e8474);
  padding: 18px;
  text-align: center;
}

.task-notification-panel footer {
  align-items: center;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px;
}

.task-notification-widget.has-new-alert .task-notification-toggle {
  animation: taskNotificationPop .7s ease;
}

@keyframes taskNotificationPop {
  0%, 100% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-3px) scale(1.04); }
  70% { transform: translateY(0) scale(0.98); }
}

.ui-a11y-extra {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ui-font-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}

.ui-font-btn {
  min-width: 0;
}

.ui-font-scale-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 2.6rem;
  text-align: center;
}

.ui-global-toggle {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0 10px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .12s ease;
  gap: 8px;
  justify-content: flex-start;
}

.ui-global-toggle[data-label]::after {
  content: attr(data-label);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: left;
}

.ui-global-toggle:hover {
  transform: translateY(-1px);
  background: var(--primary-muted);
}

.ui-global-toggle.is-active {
  color: #fff;
  border-color: var(--primary-dark);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: 0 4px 14px rgba(56,70,34,0.28);
}

.ui-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ui-global-toggle.is-disabled {
  opacity: 0.45;
}

.ui-global-main-toggle,
.ui-global-toggle {
  margin: 0;
}

/* Accessibility mode */
body.accessibility-mode {
  font-size: 1.06rem;
  line-height: 1.68;
}

body.accessibility-mode .small {
  font-size: 0.94rem;
}

body.accessibility-mode .btn,
body.accessibility-mode button,
body.accessibility-mode .ui-global-main-toggle,
body.accessibility-mode .ui-global-toggle {
  min-height: 40px;
  font-size: 0.9rem;
}

body.accessibility-mode input,
body.accessibility-mode select,
body.accessibility-mode textarea {
  min-height: 44px;
  font-size: 1rem;
  line-height: 1.45;
}

body.accessibility-mode {
  letter-spacing: 0.014em;
  word-spacing: 0.05em;
}

/* Alto contraste */
body.high-contrast-mode {
  --bg-body: #000000;
  --bg-panel: #000000;
  --surface: #000000;
  --field-bg: #000000;
  --field-border: #ffffff;
  --card-bg: #000000;
  --surface-2: #050505;
  --surface-3: #0a0a0a;
  --border: #ffffff;
  --border-strong: #ffff00;
  --text-main: #ffffff;
  --text-muted: #ffff00;
  --text-light: #f7f7a0;
  background: #000 !important;
  color: #fff !important;
}

body.high-contrast-mode .panel-container,
body.high-contrast-mode .card,
body.high-contrast-mode .modal-box,
body.high-contrast-mode .intranet-card,
body.high-contrast-mode .intranet-notice,
body.high-contrast-mode input,
body.high-contrast-mode select,
body.high-contrast-mode textarea,
body.high-contrast-mode table th,
body.high-contrast-mode td {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

body.high-contrast-mode .small,
body.high-contrast-mode .meta,
body.high-contrast-mode .intranet-header-sub {
  color: #ffff00 !important;
}

body.high-contrast-mode .btn {
  background: #111 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

body.high-contrast-mode .btn-primary,
body.high-contrast-mode .btn-accent {
  background: #ffff00 !important;
  color: #000 !important;
  border-color: #ffff00 !important;
}

body.high-contrast-mode .btn-danger {
  background: #ff3b30 !important;
  color: #fff !important;
  border-color: #fff !important;
}

/* Espaçamento de texto */
body.text-spacing-mode {
  line-height: 1.78;
  letter-spacing: 0.02em;
  word-spacing: 0.06em;
}

body.text-spacing-mode p,
body.text-spacing-mode li,
body.text-spacing-mode .small,
body.text-spacing-mode label,
body.text-spacing-mode td {
  line-height: 1.78;
}

/* Redução de movimento */
body.reduced-motion *,
body.reduced-motion *::before,
body.reduced-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Mídia pausada (apoio visual) */
body.pause-media-mode iframe[src*="youtube"],
body.pause-media-mode iframe[src*="vimeo"] {
  opacity: 0.18;
}

body.pause-media-mode img[src*=".gif"] {
  filter: grayscale(1) contrast(1.05) brightness(0.72);
}

/* Dark mode */
body.theme-dark {
  color-scheme: dark;
  --primary: #778165;
  --primary-dark: #5e6651;
  --primary-light: #97a185;
  --primary-muted: #262822;
  --primary-glass: rgba(119,129,101,0.2);
  --accent: #c5ad7a;
  --accent-dark: #a58d5d;
  --accent-light: #d7c39b;
  --accent-muted: #2a261f;
  --bg-body: #121212;
  --bg-panel: #1a1a1a;
  --surface: #1e1e1e;
  --field-bg: #262626;
  --field-border: #3a3a3a;
  --card-bg: #242424;
  --surface-2: #252525;
  --surface-3: #2c2c2c;
  --border: #2d2d2d;
  --border-strong: #333333;
  --text-main: #e0e0e0;
  --text-muted: #a0a0a0;
  --text-light: #8c8c8c;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.42);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.48);
  --shadow: 0 6px 18px rgba(0,0,0,0.5);
  --shadow-lg: 0 10px 28px rgba(0,0,0,0.56);
  --shadow-xl: 0 16px 40px rgba(0,0,0,0.62);
  background: var(--bg-body);
  background-image: none;
}

body.theme-dark,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6,
body.theme-dark p,
body.theme-dark label,
body.theme-dark td,
body.theme-dark th,
body.theme-dark span,
body.theme-dark li,
body.theme-dark strong {
  color: var(--text-main);
}

body.theme-dark .small,
body.theme-dark .meta,
body.theme-dark .sub,
body.theme-dark .appt-status {
  color: var(--text-muted) !important;
}

body.theme-dark .panel-container,
body.theme-dark .card,
body.theme-dark .modal-box,
body.theme-dark .intranet-card,
body.theme-dark .intranet-sidebar,
body.theme-dark .fat-card,
body.theme-dark .fat-modal-box {
  background: var(--surface) !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
}

body.theme-dark :is(.panel-container, .card, .modal-box, .intranet-card, .intranet-sidebar, .fat-card, .fat-modal-box) :is(h1, h2, h3, h4, h5, h6, p, span, label, strong, li, td, th) {
  color: var(--text-main) !important;
}

body.theme-dark :is(.panel-container, .card, .modal-box, .intranet-card, .intranet-sidebar, .fat-card, .fat-modal-box) .small {
  color: var(--text-muted) !important;
}

body.theme-dark .intranet-notice,
body.theme-dark .intranet-notice.intranet-style-standard,
body.theme-dark .intranet-notice.intranet-style-info,
body.theme-dark .intranet-notice.intranet-style-urgent,
body.theme-dark .intranet-notice.intranet-style-success,
body.theme-dark .intranet-notice.intranet-style-celebration {
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
}

body.theme-dark .intranet-notice .meta > span,
body.theme-dark .notice-pill,
body.theme-dark .notice-pill-pin,
body.theme-dark .notice-pill-style {
  background: var(--surface-3) !important;
  color: var(--text-muted) !important;
  border-color: var(--border-strong) !important;
}

body.theme-dark .intranet-notice .body,
body.theme-dark .intranet-notice-title,
body.theme-dark .notice-carousel-controls {
  color: var(--text-main) !important;
}

body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
  background: var(--surface-3) !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
}

body.theme-dark .input,
body.theme-dark .modal-overlay input,
body.theme-dark .modal-overlay select,
body.theme-dark .modal-overlay textarea {
  background: var(--surface-3) !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
}

body.theme-dark select option {
  background: #1e1e1e;
  color: #e0e0e0;
}

body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
  color: var(--text-light);
}

body.theme-dark table th {
  background: #2a2a2a;
  color: var(--text-main);
}

body.theme-dark tr:hover td {
  background: #242424;
}

body.theme-dark hr,
body.theme-dark .divider {
  border-color: var(--border);
}

body.theme-dark [style*="background:#fff"],
body.theme-dark [style*="background: #fff"],
body.theme-dark [style*="background:#ffffff"],
body.theme-dark [style*="background: #ffffff"],
body.theme-dark [style*="background:#f7f9f4"],
body.theme-dark [style*="background:#ecf0e5"],
body.theme-dark [style*="background:#e6e9e1"],
body.theme-dark [style*="background:#ecfeff"],
body.theme-dark [style*="background:rgb(255"],
body.theme-dark [style*="background: rgba(255"],
body.theme-dark [style*="background-color: #fff"],
body.theme-dark [style*="background-color:#fff"] {
  background: var(--surface-2) !important;
}

body.theme-dark [style*="color:#212717"],
body.theme-dark [style*="color: #212717"],
body.theme-dark [style*="color:#24281d"],
body.theme-dark [style*="color:#111827"],
body.theme-dark [style*="color:#1f2937"],
body.theme-dark [style*="color:#4d5243"],
body.theme-dark [style*="color:#374151"],
body.theme-dark [style*="color:#4d5243"],
body.theme-dark [style*="color:#5b6250"] {
  color: var(--text-main) !important;
}

body.theme-dark [style*="border:1px solid #c5d1b0"],
body.theme-dark [style*="border: 1px solid #c5d1b0"],
body.theme-dark [style*="border:1px solid #d1d5db"],
body.theme-dark [style*="border:1px solid #e0e7d4"],
body.theme-dark [style*="border:1px solid #ddd"],
body.theme-dark [style*="border-color: #e0e7d4"],
body.theme-dark [style*="border-color:#e0e7d4"] {
  border-color: var(--border) !important;
}

/* Dark mode — recepção (cards e campos com estilos fixos claros) */
body.theme-dark #view-reception .rec-search-card,
body.theme-dark #view-reception .rec-actions-card,
body.theme-dark #view-reception .rec-summary-card,
body.theme-dark #view-reception .rec-content-card,
body.theme-dark #view-reception #rec-empty-state {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}

body.theme-dark #view-reception .rec-label,
body.theme-dark #view-reception #rec-summary-meta,
body.theme-dark #view-reception #rec-search-status {
  color: var(--text-muted) !important;
}

body.theme-dark #view-reception #rec-summary-name,
body.theme-dark #view-reception .rec-list-title,
body.theme-dark #view-reception .rec-ticket-code {
  color: var(--text-main) !important;
}

body.theme-dark #view-reception .rec-field,
body.theme-dark #view-reception input,
body.theme-dark #view-reception select,
body.theme-dark #view-reception textarea {
  background: var(--surface-3) !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
}

body.theme-dark #view-reception .rec-list-item {
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
}

/* Dark mode — agenda admin (calendário + painel da direita) */
body.theme-dark #adm-tab-agenda > div > div {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}

body.theme-dark #adm-tab-agenda [style*="background:#f7f9f4"],
body.theme-dark #adm-tab-agenda [style*="background: #f7f9f4"],
body.theme-dark #adm-tab-agenda [style*="background:#fff"],
body.theme-dark #adm-tab-agenda [style*="background: #fff"] {
  background: var(--surface-2) !important;
}

body.theme-dark #adm-tab-agenda [style*="color:#8d9977"],
body.theme-dark #adm-tab-agenda [style*="color: #8d9977"],
body.theme-dark #adm-tab-agenda [style*="color:#5b6250"],
body.theme-dark #adm-tab-agenda [style*="color:#4d5243"] {
  color: var(--text-muted) !important;
}

body.theme-dark #calendar-days button {
  background: var(--surface-2) !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
  box-shadow: none !important;
}

body.theme-dark #calendar-days button[style*="#bfe6cd"] {
  background: #2f4737 !important;
  color: #d8f0df !important;
  border-color: #44644f !important;
}

body.theme-dark #calendar-days button[style*="#eafaf0"] {
  background: #2b3e31 !important;
  color: #d8f0df !important;
  border-color: #3d5c49 !important;
}

body.theme-dark #calendar-days button[style*="#f0f9ff"] {
  background: #2a3742 !important;
  color: #cfe4f7 !important;
  border-color: #3f5467 !important;
}

body.theme-dark #calendar-days button[style*="var(--primary)"] {
  background: #495239 !important;
  color: #ebf6d8 !important;
  border-color: #656f53 !important;
}

body.theme-dark #details-content [style*="background:#f7f9f4"],
body.theme-dark #details-content [style*="background: #f7f9f4"],
body.theme-dark #details-content [style*="background:#eafaf0"],
body.theme-dark #details-content [style*="background:#fefce8"],
body.theme-dark #details-content [style*="background:#fdeef0"] {
  background: var(--surface-2) !important;
  color: var(--text-main) !important;
  border-color: var(--border) !important;
}

/* Dark mode — tabela de usuários */
body.theme-dark #table-users tbody td,
body.theme-dark #table-users tbody td * {
  color: var(--text-main) !important;
}

.unit-links-list {
  display: grid;
  gap: 10px;
}

.unit-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border, #e0e7d4);
  border-radius: 8px;
  background: var(--surface, #fff);
}

.unit-link-row-title {
  font-weight: 800;
  color: var(--primary-dark, #262f16);
}

.unit-link-row-meta {
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--text-muted, #7e8474);
}

/* Regulação assistencial */
#view-regulacao .reg-shell {
  max-width: 1500px;
  width: 100%;
  margin: 18px auto;
  background: var(--surface, #fff);
  padding: 24px 28px;
  border-radius: var(--radius, 14px);
  box-shadow: var(--shadow-lg, 0 18px 42px rgba(15, 23, 42, 0.10));
  border: 1px solid var(--border, #e6e9f0);
  box-sizing: border-box;
}

#view-regulacao .reg-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #124c8a 100%);
  color: #fff;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

#view-regulacao .reg-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255,255,255,0.76);
}

#view-regulacao .reg-header h2 {
  margin: 3px 0 4px;
  font-size: 1.35rem;
  color: #fff;
}

#view-regulacao .reg-sub,
#view-regulacao .reg-user {
  color: rgba(255,255,255,0.88);
  font-size: 0.84rem;
}

#view-regulacao .reg-user {
  margin-top: 5px;
  font-weight: 700;
}

#view-regulacao .reg-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#view-regulacao .reg-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#view-regulacao .reg-actions svg,
#view-regulacao .reg-filter-band svg {
  width: 14px;
  height: 14px;
}

#view-regulacao .reg-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 14px 0;
  padding-bottom: 2px;
}

#view-regulacao .reg-tab {
  border: 1px solid var(--border);
  background: var(--surface, #fff);
  color: var(--text-muted, #7e8474);
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 800;
  white-space: nowrap;
}

#view-regulacao .reg-tab.active {
  background: var(--primary, #394820);
  color: #fff;
  border-color: var(--primary, #394820);
}

#view-regulacao .reg-filter-band {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 0.8fr) minmax(180px, 1fr) minmax(130px, 0.7fr) auto auto;
  gap: 10px;
  align-items: end;
  background: var(--surface-2, #f7f8fb);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}

#view-regulacao label,
#reg-modal label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted, #7e8474);
}

#view-regulacao input,
#view-regulacao select,
#view-regulacao textarea,
#reg-modal input,
#reg-modal select,
#reg-modal textarea {
  border: 1px solid var(--field-border, var(--border));
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 0.86rem;
  background: var(--field-bg, var(--surface, #fff));
  color: var(--text-main, #212717);
  min-width: 0;
}
#view-regulacao input:focus,
#view-regulacao select:focus,
#view-regulacao textarea:focus,
#reg-modal input:focus,
#reg-modal select:focus,
#reg-modal textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(56,70,34,0.10);
}

#view-regulacao textarea,
#reg-modal textarea {
  resize: vertical;
}

#view-regulacao .reg-content {
  min-height: 360px;
}

#view-regulacao .reg-task-shell {
  width: min(1840px, calc(100vw - 40px));
  margin: 18px auto 64px;
}

#view-regulacao .reg-task-shell .reg-header {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

#view-regulacao .reg-task-shell .reg-content {
  min-height: 0;
  padding: 14px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

#view-regulacao .reg-loading,
#view-regulacao .reg-empty,
#view-regulacao .reg-error {
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  color: var(--text-muted, #7e8474);
  font-weight: 700;
}

#view-regulacao .reg-error {
  color: #b91c1c;
  border-color: #f7d3d8;
  background: #fdeef0;
}

#view-regulacao .reg-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

#view-regulacao .reg-metric {
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  align-items: center;
}

#view-regulacao .reg-metric-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e0f2fe;
  color: #0369a1;
  grid-row: span 2;
}

#view-regulacao .reg-metric span {
  font-size: 0.75rem;
  color: var(--text-muted, #7e8474);
  font-weight: 800;
}

#view-regulacao .reg-metric strong {
  font-size: 1.45rem;
  color: var(--text-main, #212717);
}

#view-regulacao .reg-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.7fr));
  gap: 12px;
  margin-bottom: 14px;
}

#view-regulacao .reg-hero-card,
#view-regulacao .reg-hero-insight {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(15, 79, 149, 0.12);
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

#view-regulacao .reg-hero-card {
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 79, 149, 0.96), rgba(21, 128, 61, 0.86)),
    #0f4f95;
}

#view-regulacao .reg-hero-card span,
#view-regulacao .reg-hero-card p,
#view-regulacao .reg-hero-insight span {
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
}

#view-regulacao .reg-hero-card strong {
  display: block;
  margin: 6px 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

#view-regulacao .reg-hero-card p {
  margin: 0;
  color: rgba(255,255,255,0.84);
}

#view-regulacao .reg-hero-insight {
  display: grid;
  gap: 8px;
  padding: 15px;
  align-content: center;
}

#view-regulacao .reg-hero-insight svg {
  width: 22px;
  height: 22px;
  color: #0f4f95;
}

#view-regulacao .reg-hero-insight span {
  color: var(--text-muted, #7e8474);
}

#view-regulacao .reg-hero-insight strong {
  color: var(--text-main, #212717);
  font-size: 1.35rem;
}

#view-regulacao .reg-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.1fr) minmax(320px, 0.9fr);
  gap: 14px;
}

#view-regulacao .reg-span-2 {
  grid-column: span 2;
}

#view-regulacao .reg-board {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
  gap: 14px;
}

#view-regulacao .reg-panel {
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}

#view-regulacao .reg-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

#view-regulacao .reg-panel h3 {
  margin: 0;
  color: var(--text-main, #212717);
  font-size: 1rem;
}

#view-regulacao .reg-chart-panel {
  min-height: 260px;
}

#view-regulacao .reg-donut-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

#view-regulacao .reg-donut {
  width: 178px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(88,109,52,0.08), 0 8px 22px rgba(57,70,36,0.10);
}

#view-regulacao .reg-donut > div {
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: var(--surface, #fff);
  border: 1px solid var(--border);
}

#view-regulacao .reg-donut strong,
#view-regulacao .reg-donut span {
  display: block;
}

#view-regulacao .reg-donut strong {
  color: var(--text-main, #212717);
  font-size: 1.55rem;
  line-height: 1;
}

#view-regulacao .reg-donut span {
  color: var(--text-muted, #7e8474);
  font-size: 0.68rem;
  font-weight: 850;
}

#view-regulacao .reg-chart-legend {
  display: grid;
  gap: 8px;
}

#view-regulacao .reg-chart-legend div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--text-main, #212717);
  font-size: 0.8rem;
  font-weight: 800;
}

#view-regulacao .reg-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

#view-regulacao .reg-chart-legend strong {
  color: var(--text-main, #212717);
}

#view-regulacao .reg-timeline-chart {
  display: grid;
  gap: 10px;
}

#view-regulacao .reg-timeline-chart svg {
  width: 100%;
  min-height: 220px;
  border-radius: 8px;
  background: #ffffff;
}

#view-regulacao .reg-chart-grid line {
  stroke: #c5d1b0;
  stroke-width: 1;
  stroke-dasharray: 4 5;
}

#view-regulacao .reg-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#view-regulacao .reg-line-created { stroke: #0f4f95; }
#view-regulacao .reg-line-scheduled { stroke: #1f9d57; }
#view-regulacao .reg-line-closed { stroke: #c2410c; }

#view-regulacao .reg-timeline-chart text {
  fill: #7e8474;
  font-size: 0.68rem;
  font-weight: 800;
}

#view-regulacao .reg-inline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#view-regulacao .reg-inline-legend div {
  grid-template-columns: 12px auto;
}

#view-regulacao .legend-created { background: #0f4f95; }
#view-regulacao .legend-scheduled { background: #1f9d57; }
#view-regulacao .legend-closed { background: #c2410c; }

#view-regulacao .reg-stage-bars,
#view-regulacao .reg-specialty-bars {
  display: grid;
  gap: 11px;
}

#view-regulacao .reg-stage-row,
#view-regulacao .reg-specialty-row {
  display: grid;
  gap: 7px;
}

#view-regulacao .reg-stage-row div,
#view-regulacao .reg-specialty-row div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

#view-regulacao .reg-stage-row span,
#view-regulacao .reg-specialty-row span {
  color: var(--text-muted, #7e8474);
  font-size: 0.78rem;
  font-weight: 800;
}

#view-regulacao .reg-specialty-row strong {
  color: var(--text-main, #212717);
  font-size: 0.86rem;
}

#view-regulacao .reg-stage-row > i,
#view-regulacao .reg-specialty-row > i {
  display: block;
  height: 9px;
  min-width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f4f95, #1f9d57);
}

#view-regulacao .reg-specialty-row > i {
  background: linear-gradient(90deg, #7c2d12, #f59e0b);
}

#view-regulacao .reg-empty-compact {
  padding: 12px;
}

#view-regulacao .reg-priority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#view-regulacao .reg-priority-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#view-regulacao .reg-priority-card span {
  font-size: 0.78rem;
  font-weight: 800;
}

#view-regulacao .reg-priority-card strong {
  font-size: 1.35rem;
}

#view-regulacao .reg-priority-p0,
#reg-modal .reg-priority-p0 { background: #fdeef0; color: #d6334a; border-color: #f7d3d8; }
#view-regulacao .reg-priority-p1,
#reg-modal .reg-priority-p1 { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
#view-regulacao .reg-priority-p2,
#reg-modal .reg-priority-p2 { background: #eef4fd; color: #323e1d; border-color: #d7e4f7; }
#view-regulacao .reg-priority-p3,
#reg-modal .reg-priority-p3 { background: #eafaf0; color: #1f8a5b; border-color: #bfe6cd; }

#view-regulacao .reg-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

#view-regulacao .reg-table th,
#view-regulacao .reg-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}

#view-regulacao .reg-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted, #7e8474);
  background: rgba(15, 79, 149, 0.06);
}

#view-regulacao .reg-table td {
  font-size: 0.84rem;
  color: var(--text-main, #212717);
}

#view-regulacao .reg-table td span {
  display: block;
  color: var(--text-muted, #7e8474);
  margin-top: 2px;
}

#view-regulacao .reg-protocol,
#view-regulacao .reg-status-badge,
#view-regulacao .reg-priority-badge,
#reg-modal .reg-protocol,
#reg-modal .reg-status-badge,
#reg-modal .reg-priority-badge {
  display: inline-flex !important;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

#view-regulacao .reg-protocol,
#reg-modal .reg-protocol {
  background: #e6e9e1;
  color: #3730a3 !important;
}

#view-regulacao .reg-status-badge,
#reg-modal .reg-status-badge {
  background: #ecf0e5;
  color: #4d5243 !important;
}

#view-regulacao .reg-row-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 210px;
}

#view-regulacao .reg-row-actions .btn {
  min-height: 30px;
  padding: 6px 8px;
}

#reg-modal {
  z-index: 1200;
  background: rgba(9,11,5,0.42);
  backdrop-filter: none;
}

#reg-modal:empty {
  display: none !important;
}

#view-regulacao .reg-modal-box,
#reg-modal .reg-modal-box {
  width: min(var(--modal-w, 820px), calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  overflow: auto;
}

#view-regulacao .reg-modal-head,
#reg-modal .reg-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding-right: 40px; /* reserva espaço para o X de fechar (auto-injetado) */
}

#view-regulacao .reg-modal-head h3,
#reg-modal .reg-modal-head h3 {
  margin: 0;
  color: var(--primary);
}

#view-regulacao .reg-form,
#reg-modal .reg-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#view-regulacao .reg-form-grid,
#reg-modal .reg-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#view-regulacao .reg-modal-actions,
#reg-modal .reg-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

#view-regulacao .reg-duplicate-warning,
#reg-modal .reg-duplicate-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #fbbf24;
  background: #fffbeb;
  color: #92400e;
  border-radius: 8px;
  padding: 12px;
}

#view-regulacao .reg-duplicate-warning p,
#reg-modal .reg-duplicate-warning p {
  margin: 4px 0 0;
  color: #92400e;
  font-size: 0.82rem;
}

#view-regulacao .reg-duplicate-actions,
#reg-modal .reg-duplicate-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#view-regulacao .reg-detail-grid,
#reg-modal .reg-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#view-regulacao .reg-detail-grid section,
#reg-modal .reg-detail-grid section {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface, #fff);
}

#view-regulacao .reg-detail-grid h4,
#reg-modal .reg-detail-grid h4 {
  margin: 0 0 8px;
  color: var(--text-main, #212717);
}

#view-regulacao .reg-detail-grid p,
#reg-modal .reg-detail-grid p {
  margin: 4px 0;
  color: var(--text-main, #212717);
  line-height: 1.45;
}

#view-regulacao .reg-detail-wide,
#reg-modal .reg-detail-wide {
  grid-column: 1 / -1;
}

#view-regulacao .reg-timeline-item,
#reg-modal .reg-timeline-item {
  border-left: 3px solid #0f4f95;
  padding-left: 10px;
  margin-bottom: 10px;
}

#view-regulacao .reg-timeline-item span,
#reg-modal .reg-timeline-item span {
  display: block;
  color: var(--text-muted, #7e8474);
  font-size: 0.75rem;
  margin-top: 2px;
}

#view-regulacao .reg-task-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 auto 12px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1540px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg, #f7f7f7);
}

#view-regulacao .reg-task-summary,
#view-regulacao .reg-task-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

#view-regulacao .reg-task-actions {
  margin-left: auto;
  justify-content: flex-end;
}

#view-regulacao .reg-task-summary span,
#view-regulacao .reg-task-summary strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid #e6e9f0;
  border-radius: 999px;
  background: #f4f6fa;
  color: #4d5243;
  font-size: 0.8rem;
  font-weight: 700;
}
#view-regulacao .reg-task-summary .reg-task-chip svg,
#view-regulacao .reg-task-summary .reg-task-chip i { width: 15px; height: 15px; color: #8d9977; }
#view-regulacao .reg-task-summary .reg-task-chip.is-mine { background: #ecf0e5; color: #405023; border-color: #d3dcc2; }
#view-regulacao .reg-task-summary .reg-task-chip.is-mine svg,
#view-regulacao .reg-task-summary .reg-task-chip.is-mine i { color: #405023; }

#view-regulacao .reg-task-department-select {
  display: grid;
  gap: 4px;
  min-width: 220px;
  margin: 0;
}

#view-regulacao .reg-task-department-select span {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted, #7e8474);
  font-size: 0.72rem;
  font-weight: 800;
}

#view-regulacao .reg-task-department-select select {
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface, #fff);
  color: var(--text-main, #212717);
  font-weight: 800;
  padding: 6px 10px;
}

#view-regulacao .reg-kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(240px, 300px));
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 2px 2px 12px;
  align-items: stretch;
}

#view-regulacao .reg-kanban-column {
  min-width: 0;
  height: clamp(420px, calc(100vh - 330px), 620px);
  display: flex;
  flex-direction: column;
  border: 1px solid #d1d7c8;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfcff 0%, #f7f9fc 100%);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  box-sizing: border-box;
}

#view-regulacao .reg-kanban-column > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

#view-regulacao .reg-kanban-column > header strong {
  color: var(--text-main, #212717);
  font-size: 0.9rem;
}

#view-regulacao .reg-kanban-column > header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-weight: 900;
  font-size: 0.78rem;
}

#view-regulacao .reg-kanban-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

#view-regulacao .reg-task-card {
  border: 1px solid #eaefe2;
  border-left: 4px solid #85ab42;
  border-radius: 14px;
  background: #fff;
  padding: 12px 13px;
  box-shadow: 0 8px 22px rgba(57,70,36,0.06);
  cursor: pointer;
  transition: box-shadow .16s ease, transform .16s ease;
}
#view-regulacao .reg-task-card:hover {
  box-shadow: 0 12px 28px rgba(57,70,36,0.12);
  transform: translateY(-2px);
}

#view-regulacao .reg-task-card.is-overdue {
  border-left-color: #e0445a;
  background: #fdf6ec;
}

#view-regulacao .reg-task-card.is-focused {
  animation: regTaskFocusPulse 1.05s ease-in-out 3;
  border-color: rgba(59,75,33,0.65);
  border-left-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59,75,33,0.12), 0 16px 34px rgba(37,47,21,0.18);
}

@keyframes regTaskFocusPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

#view-regulacao .reg-task-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

#view-regulacao .reg-task-card-head strong {
  color: var(--text-main, #212717);
  font-size: 0.9rem;
  line-height: 1.3;
}

#view-regulacao .reg-task-card p {
  margin: 8px 0;
  color: var(--text-muted, #7e8474);
  font-size: 0.82rem;
  line-height: 1.4;
}

#view-regulacao .reg-task-priority {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

#view-regulacao .reg-task-priority-baixa { background: #eafaf0; color: #1f8a5b; }
#view-regulacao .reg-task-priority-normal { background: #eef4fd; color: #323e1d; }
#view-regulacao .reg-task-priority-alta { background: #fff7ed; color: #9a3412; }
#view-regulacao .reg-task-priority-urgente { background: #fdeef0; color: #d6334a; }

#view-regulacao .reg-task-protocol {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #ecf0e5;
  color: #212717;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#view-regulacao .reg-task-protocol svg {
  width: 12px;
  height: 12px;
}

#reg-modal .reg-task-protocol-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, #e6e9e1, #ecf0e5);
  border: 1px solid #d8ddcf;
}

#reg-modal .reg-task-protocol-banner strong {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  color: #24281d;
  font-size: 0.95rem;
}

#reg-modal .reg-task-protocol-banner span {
  color: #4d5243;
  font-size: 0.78rem;
}

#view-regulacao .reg-task-tabs {
  margin-bottom: 14px;
}

#view-regulacao .reg-task-tabs .reg-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#reg-modal .reg-task-file-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px dashed #c5d1b0;
  border-radius: 8px;
  background: #f7f9f4;
}

#reg-modal .reg-task-file-info {
  flex: 1 1 200px;
  min-width: 0;
  font-size: 0.82rem;
  color: var(--text-muted, #7e8474);
  word-break: break-all;
}

#reg-modal .reg-task-file-info strong {
  color: var(--text-main, #212717);
}

#reg-modal .reg-task-file-info small {
  margin-left: 6px;
  color: var(--text-muted, #7e8474);
}
