@charset "UTF-8";
.action-buttons {
  width: 100%;
  display: flex;
  align-items: center;
  padding-top: 2rem;
}
.action-buttons .group-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.action-buttons button {
  appearance: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.action-buttons button:disabled {
  background-color: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}
.action-buttons .btn-back, .action-buttons .btn-save {
  background-color: transparent;
  color: #334155;
  border-color: #e2e8f0;
}
.action-buttons .btn-back:hover:not(:disabled), .action-buttons .btn-save:hover:not(:disabled) {
  background-color: #f1f5f9;
  color: #0f4c81;
  border-color: #0f4c81;
}
.action-buttons .btn-next {
  background-color: #0f4c81;
  color: white;
}
.action-buttons .btn-next:hover:not(:disabled) {
  background-color: rgb(12.34375, 62.5416666667, 106.15625);
}
.action-buttons .btn-next.btn-finish-style {
  background-color: #10b981;
}
.action-buttons .btn-next.btn-finish-style:hover:not(:disabled) {
  background-color: rgb(13.9701492537, 161.5298507463, 112.6343283582);
}

.site-header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.6rem 0;
  width: 100%;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.site-header .header-flex-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  padding: 0 1.5rem;
  margin: 0;
  box-sizing: border-box;
}
.site-header .header-side-item {
  flex: 1;
  display: flex;
  align-items: center;
}
.site-header .header-side-item.text-end {
  justify-content: flex-end;
}
.site-header .header-center-item {
  flex: 2;
  text-align: center;
}
.site-header .navbar-title {
  color: #0f172a;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.site-header .header-icon-link {
  color: #64748b;
  font-size: 1.1rem;
  text-decoration: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.site-header .header-icon-link:hover {
  color: #0f4c81;
  background: #f1f5f9;
}
.site-header .user-profile-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 0.9rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header .user-profile-link:hover {
  background: white;
  border-color: #0f4c81;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.site-header .user-profile-link:hover .user-name {
  color: #0f4c81;
}
.site-header .user-profile-link:hover .user-avatar-wrapper {
  color: #0f4c81;
}
.site-header .user-profile-link .user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  transition: color 0.2s ease;
}
@media (max-width: 480px) {
  .site-header .user-profile-link .user-name {
    display: none;
  }
}
.site-header .user-profile-link .user-avatar-wrapper {
  font-size: 1.4rem;
  color: #64748b;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.site-footer {
  background-color: #f8fafc;
  padding: 1.5rem 0;
  margin-top: auto;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}
.site-footer .footer-privacy-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
  gap: 4px;
}
.site-footer .privacy-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #0f4c81;
  line-height: 1.4;
}
.site-footer .privacy-row strong {
  color: inherit;
  font-weight: 600;
}
.site-footer .privacy-row .row-icon {
  opacity: 0.8;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.site-footer .footer-delete-link {
  color: #ef4444;
  text-decoration: underline;
  font-weight: 400;
  transition: opacity 0.2s ease;
}
.site-footer .footer-delete-link:hover {
  opacity: 0.7;
  color: rgb(234.9802955665, 21.0197044335, 21.0197044335);
}
.site-footer .footer-copyright {
  font-size: 0.75rem;
  color: #0f4c81;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.dashboard-toolbar {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.dashboard-toolbar .toolbar-left {
  display: flex;
  align-items: center;
}
.dashboard-toolbar .toolbar-left .btn-add-new {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  color: #0f4c81;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.dashboard-toolbar .toolbar-left .btn-add-new:hover {
  background: #dbeafe;
}
.dashboard-toolbar .toolbar-left .btn-add-new.disabled {
  background-color: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}
.dashboard-toolbar .toolbar-left .btn-add-new.disabled i {
  color: #64748b !important;
}
.dashboard-toolbar .toolbar-right .selection-actions {
  display: flex;
  gap: 0.5rem;
}
.dashboard-toolbar .toolbar-right .selection-actions .btn-tool {
  background: transparent;
  color: #334155;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.dashboard-toolbar .toolbar-right .selection-actions .btn-tool:disabled {
  opacity: 0.15;
  cursor: not-allowed;
}
.dashboard-toolbar .toolbar-right .selection-actions .btn-tool:not(:disabled):hover {
  background: #f1f5f9;
  color: #0f4c81;
}
.dashboard-toolbar .toolbar-right .selection-actions .btn-tool.btn-danger:not(:disabled):hover {
  color: #ef4444;
  background: #fff1f2;
}

.registry-container {
  max-width: 1200px;
  margin: 0 auto 3rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.registry-table {
  width: 100%;
  border-collapse: collapse;
}
.registry-table thead th {
  background: #f8fafc;
  padding: 1rem 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
  user-select: none;
}
.registry-table thead th.sortable {
  cursor: pointer;
  transition: color 0.2s;
}
.registry-table thead th.sortable:hover {
  color: #0f4c81;
  background: #f1f5f9;
}
.registry-table thead th.sortable i {
  margin-left: 8px;
  font-size: 0.65rem;
  opacity: 0.3;
}
.registry-table thead th.active-sort {
  color: #0f4c81;
}
.registry-table thead th.active-sort i {
  opacity: 1;
}
.registry-table tbody tr {
  cursor: pointer;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.1s;
}
.registry-table tbody tr:hover {
  background: #fcfdfe;
}
.registry-table tbody tr.selected {
  background: #f1f5f9 !important;
}
.registry-table tbody tr.status-complete {
  border-left: 6px solid #3b82f6;
}
.registry-table tbody tr.status-in-progress {
  border-left: 6px solid #facc15;
}
.registry-table tbody tr td {
  padding: 0.85rem 1.5rem;
  color: #334155;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.registry-table tbody tr td.patient-cell {
  font-weight: 700;
  color: #0f172a;
}
.registry-table tbody tr:last-child {
  border-bottom: none;
}

.no-data-msg {
  text-align: center;
  padding: 5rem 2rem;
  color: #64748b;
  font-weight: 500;
  background: white;
}

.selection-grid {
  max-width: 1000px;
  margin: 4rem auto;
  text-align: center;
}
.selection-grid h1 {
  font-size: 1.75rem;
  color: #0f4c81;
  margin-bottom: 2.5rem;
}

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

.type-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.type-card:hover {
  border-color: #0f4c81;
  background: #f8fafc;
}
.type-card.selected {
  border-color: #0f4c81;
  background: rgba(15, 76, 129, 0.05);
}
.type-card.selected h3 {
  color: #0f4c81;
  font-weight: 700;
}
.type-card h3 {
  margin: 0;
  font-size: 1rem;
  color: #334155;
}

html.interview-mode, body.interview-mode {
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.interview {
  display: flex;
  width: 100%;
}
body.interview-mode .interview {
  height: calc(100vh - 64px);
  overflow: hidden;
}
.interview__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: #f8fafc;
}
body.interview-mode .interview__content {
  padding: 3rem 1.5rem;
  overflow-y: auto;
  scroll-behavior: smooth;
}
body:not(.interview-mode) .interview__content {
  padding: 0;
  min-height: auto;
}
.interview__form {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem 1.5rem;
  width: 100%;
}
.interview__actions {
  width: 100%;
  max-width: 880px;
  padding: 1.5rem 0 0;
}

.sidebar {
  width: 350px;
  flex-shrink: 0;
  background: white;
  border-right: 1px solid #e2e8f0;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
body:not(.interview-mode) .sidebar {
  display: none;
}
.sidebar__meta {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.sidebar__meta-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1rem;
}
.sidebar__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sidebar__label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  font-weight: 700;
  opacity: 0.8;
}
.sidebar__value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f4c81;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar__divider {
  height: 1px;
  background: #e2e8f0;
  margin-bottom: 1.5rem;
  width: 100%;
  opacity: 0.6;
}
.sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar__item {
  padding: 0.85rem 1.5rem;
  margin-bottom: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 500;
  color: #334155;
  transition: all 0.2s;
}
.sidebar__item:hover {
  background: #f1f5f9;
}
.sidebar__item--active {
  background: #f1f5f9;
  color: #0f4c81;
  box-shadow: inset 4px 0 0 #0f4c81;
}
.sidebar__item--active .sidebar__status {
  background: #0f4c81;
  color: white;
}
.sidebar__item--complete .sidebar__status {
  background: #10b981;
  color: white;
  font-size: 0;
}
.sidebar__item--complete .sidebar__status::before {
  content: "✓";
  font-size: 1rem;
  font-weight: 900;
}
.sidebar__status {
  min-width: 24px;
  height: 24px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
}

.form-card {
  width: 100%;
  max-width: 880px;
  background: white;
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .form-card {
    padding: 1.5rem;
  }
}
.form-card__title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1rem;
}

.field-wrapper {
  display: contents;
}

.form-field--hidden {
  display: none !important;
}

.form-field {
  grid-column: span 12;
  display: flex;
  flex-direction: column;
}
.form-field--1-2 {
  grid-column: span 6;
}
.form-field--1-3 {
  grid-column: span 4;
}
.form-field--2-3 {
  grid-column: span 8;
}
.form-field--1-4 {
  grid-column: span 3;
}
@media (max-width: 768px) {
  .form-field {
    grid-column: span 12 !important;
  }
}
.form-field__label {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: #334155;
}
.form-field__label--required::after {
  content: " *";
  color: #ef4444;
}
.form-field__input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field__input:focus {
  outline: none;
  border-color: #0f4c81;
  background: white;
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}
.form-field__input--textarea {
  min-height: 100px;
  resize: vertical;
}
.form-field__input--textarea.form-field__input--large {
  min-height: 400px;
}

.textarea-container {
  position: relative;
  width: 100%;
}

.field-guide-toggle, .field-goal-generate {
  position: absolute;
  top: 8px;
  right: 8px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s;
}
.field-guide-toggle i, .field-goal-generate i {
  font-size: 0.85rem;
}
.field-guide-toggle:hover, .field-goal-generate:hover {
  background: #f1f5f9;
}

.field-guide-toggle--active {
  border-color: #eab308 !important;
  color: #eab308 !important;
  background: #fefce8 !important;
}

.field-guide {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  width: 320px;
  max-height: 250px;
  overflow-y: auto;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 100;
  animation: fieldGuideFadeIn 0.2s ease-out;
}
.field-guide--active {
  display: block;
}
.field-guide__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.field-guide__item {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #334155;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.4;
  transition: background 0.2s;
}
.field-guide__item:last-child {
  border-bottom: none;
}
.field-guide__item:hover {
  background: #f1f5f9;
  color: #0f4c81;
}

@keyframes fieldGuideFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.form-multiselect {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.form-multiselect__item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.form-multiselect__checkbox {
  width: 16px;
  height: 16px;
  accent-color: #0f4c81;
}
.form-multiselect__text {
  font-size: 0.85rem;
}

.score-table {
  grid-column: span 12;
  margin-top: 1rem;
}
.score-table__label {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  display: block;
}
.score-table__element {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
}
.score-table__element th {
  background: #f1f5f9;
  font-size: 0.7rem;
  padding: 0.7rem;
  text-align: center;
  border: 1px solid #e2e8f0;
}
.score-table__element td {
  border: 1px solid #e2e8f0;
}
.score-table__element td--label {
  background: #f8fafc;
  padding: 0.7rem;
  font-weight: 600;
  font-size: 0.85rem;
}
.score-table__element .form-field__input {
  border: none;
  background: transparent;
  text-align: center;
}

.form-divider {
  grid-column: span 12;
  margin: 2rem 0 0.5rem;
  display: flex;
  align-items: center;
}
.form-divider__text {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0f4c81;
  margin-right: 1rem;
}
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.image-field {
  width: 100%;
}
.image-field .image-upload-zone {
  position: relative;
  width: 100%;
  min-height: 160px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background-color 0.2s;
  overflow: hidden;
}
.image-field .image-upload-zone:hover {
  border-color: #0f4c81;
}
.image-field .image-upload-zone.has-image {
  background: white;
}
.image-field .image-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.image-field .image-upload-info {
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: #64748b;
  z-index: 1;
}
.image-field .image-upload-info .image-upload-icon-stack {
  position: relative;
  font-size: 2.2rem;
  color: rgb(41.34375, 142.375, 230.15625);
}
.image-field .image-upload-info .image-upload-icon-stack .fa-circle-plus {
  position: absolute;
  bottom: -2px;
  right: -5px;
  font-size: 1.1rem;
  color: #0f4c81;
  background: #f8fafc;
  border-radius: 50%;
}
.image-field .image-upload-info .image-upload-label {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.image-field .image-upload-preview {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  pointer-events: none;
}
.image-field .image-upload-preview:empty {
  display: none;
}
.image-field .image-upload-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.image-field .image-field-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ef4444;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}
.image-field .image-field-remove:hover {
  transform: scale(1.1);
  background: rgb(236.9901477833, 44.5098522167, 44.5098522167);
}

.action-buttons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

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

body {
  background-color: #f8fafc;
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  color: #334155;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.text-center {
  text-center: center;
}

.hidden {
  display: none !important;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgb(192.3863636364, 205.3409090909, 222.6136363636);
}

/*# sourceMappingURL=style.css.map */