:root {
  --fa-primary-500: #7ab648;
  --fa-primary-600: #5f9f2f;
  --fa-primary-100: #eef6e5;

  --fa-gray-50: #f7f8f4;
  --fa-gray-100: #eef1e8;
  --fa-gray-500: #6f756b;
  --fa-gray-700: #394238;

  --fa-radius-lg: 1rem;

  --dash-bg: #f4f7ef;
  --dash-card-bg: #ffffff;
  --dash-muted: #6d7568;
  --dash-border: #dfe7d3;

  --dash-shadow: 0 18px 36px rgba(53, 71, 39, 0.08);
  --dash-shadow-soft: 0 14px 28px rgba(53, 71, 39, 0.06);

  --dash-primary: #7ab648;
  --dash-primary-light: #9ccc65;
  --dash-danger: #c93b7a;
  --dash-success: #4f9b57;

  --dash-sidebar-bg: #edf5e4;
  --dash-sidebar-text: #2f3a2d;
  --dash-overlay: rgba(44, 56, 35, 0.42);

  --dash-highlight-bg: rgba(122, 182, 72, 0.14);
  --dash-highlight-border: rgba(122, 182, 72, 0.24);

  --dash-danger-soft: rgba(201, 59, 122, 0.14);
  --dash-success-soft: rgba(79, 155, 87, 0.16);
  --dash-neutral-soft: rgba(122, 130, 116, 0.16);
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--fa-gray-50);
  color: var(--fa-gray-700);
  min-height: 100vh;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fa-primary-500), var(--fa-primary-600));
  display: inline-block;
}

.shadow-soft {
  box-shadow: 0 20px 40px rgba(95, 159, 47, 0.12);
  border-radius: var(--fa-radius-lg);
}

.form-control-lg {
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  border-color: var(--dash-border);
}

.form-control-lg:focus,
.form-control:focus,
.form-select:focus {
  border-color: rgba(122, 182, 72, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(122, 182, 72, 0.18);
}

.btn-primary {
  background: linear-gradient(135deg, var(--fa-primary-500), var(--fa-primary-600));
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 12px 24px rgba(122, 182, 72, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--fa-primary-600), var(--fa-primary-500));
}

.btn-outline-primary {
  border-radius: 0.75rem;
  border-color: var(--fa-primary-500);
  color: var(--fa-primary-600);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--fa-primary-500);
  border-color: var(--fa-primary-500);
  color: #fff;
}

.auth-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.tracking-wide {
  letter-spacing: 0.6rem;
}

.info-tile {
  background: var(--fa-gray-100);
  border-radius: 0.75rem;
  padding: 1rem 1.2rem;
}

.info-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--fa-gray-500);
  letter-spacing: 0.08em;
}

.info-value {
  display: block;
  font-size: 1rem;
  color: var(--fa-gray-700);
  margin-top: 0.25rem;
}

.page-dashboard .info-value.badge {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
}

.error-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--fa-primary-100);
  color: var(--fa-primary-600);
  font-weight: 600;
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  body {
    margin-left: 10px;
    margin-right: 10px;
  }

  .auth-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .tracking-wide {
    letter-spacing: 0.4rem;
  }
}

/* Dashboard layout */
.dashboard-body {
  background: var(--dash-bg);
}

.dashboard-layout {
  min-height: 100vh;
  position: relative;
}

.dashboard-sidebar {
  width: 280px;
  background: var(--dash-sidebar-bg);
  color: var(--dash-sidebar-text);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1030;
  transform: translateX(-110%);
  transition: transform 0.24s ease;
  border-right: 1px solid var(--dash-border);
  overflow-y: auto;
  height: 100vh;
}

.dashboard-body.sidebar-open .dashboard-sidebar {
  transform: translateX(0);
}

.dashboard-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--dash-overlay);
  z-index: 1020;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.dashboard-body.sidebar-open::before {
  opacity: 1;
  pointer-events: auto;
}

.dashboard-main {
  flex: 1;
  margin-left: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
  width: 100%;
}

@media (min-width: 992px) {
  .dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
  }

  .dashboard-sidebar {
    position: sticky;
    top: 0;
    transform: none;
    box-shadow: var(--dash-shadow-soft);
    height: 100vh;
  }

  .dashboard-main {
    margin-left: 0;
    padding-left: 32px;
    padding-right: 32px;
  }

  .dashboard-body.sidebar-open::before {
    display: none;
  }

  .sidebar-toggle {
    display: none;
  }
}

.sidebar-toggle {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.25rem;
}

.sidebar-header {
  display: flex;
  justify-content: flex-end;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: column;
}

.brand-logo-img {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  padding: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #253021;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: rgba(47, 58, 45, 0.68);
}

.sidebar-card {
  background: var(--dash-card-bg);
  border: 1px solid var(--dash-border);
  box-shadow: var(--dash-shadow-soft);
  border-radius: 12px;
  padding: 16px;
  color: #2f3a2d;
}

.sidebar-card .text-muted {
  color: var(--dash-muted) !important;
}

.sidebar-nav {
  margin-top: 8px;
}

.sidebar-link {
  text-decoration: none;
  display: block;
  padding: 12px 16px;
  border-radius: 14px;
  color: #3d4b38;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  margin-top: 5px;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: var(--dash-highlight-bg);
  color: var(--fa-primary-600);
}

.sidebar-link i {
  font-size: 1rem;
}

.sidebar-link.disabled {
  opacity: 0.6;
  cursor: default;
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--dash-border);
  background: #ffffff;
  color: var(--dash-primary);
  box-shadow: 0 12px 24px rgba(122, 182, 72, 0.12);
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 24px;
  background: transparent;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-title {
  font-weight: 600;
}

.topbar-subtitle {
  font-size: 0.9rem;
  color: var(--dash-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.promotion-pill {
  background: #ffffff;
  color: var(--fa-primary-600);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--dash-highlight-border);
  box-shadow: 0 12px 24px rgba(122, 182, 72, 0.08);
}

.topbar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dash-primary), var(--dash-primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.dashboard-content {
  flex: 1;
  padding: 32px 0 48px;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  color: #2d3629;
}

.page-subtitle {
  color: var(--dash-muted);
  font-size: 0.96rem;
}

@media (max-width: 767px) {
  .dashboard-content {
    padding: 24px 0 40px;
  }

  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  .dashboard-main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .dashboard-content {
    padding-left: 0;
    padding-right: 0;
  }

  main .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.soft-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--dash-shadow-soft);
  border: 1px solid var(--dash-border);
}

.soft-card .card-header {
  padding: 0 0 1rem 0;
}

.soft-card .card-footer {
  padding: 1.25rem 0 0 0;
}

.dashboard-empty .soft-card {
  max-width: 560px;
  margin: 80px auto;
}

.progress-wrapper .progress {
  height: 10px;
  background: rgba(122, 182, 72, 0.16);
}

.progress-wrapper .progress-bar {
  background: linear-gradient(135deg, var(--dash-primary), var(--dash-primary-light));
  border-radius: 999px;
}

.progress-wrapper {
  margin-bottom: 24px;
}

.contact-item {
  background: rgba(237, 245, 228, 0.8);
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(122, 182, 72, 0.14);
}

.contact-item + .contact-item {
  margin-top: 10px;
}

.contact-meta div {
  line-height: 1.4;
  color: var(--dash-muted);
}

.empty-state {
  background: rgba(237, 245, 228, 0.6);
  border-radius: 14px;
  border: 1px dashed var(--dash-border);
}

.step-item {
  border-radius: 14px;
  border: 1px solid rgba(111, 117, 107, 0.16);
  margin-bottom: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  background: #ffffff;
}

.step-item:last-child {
  margin-bottom: 0;
}

.step-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: inherit;
  text-decoration: none;
}

.step-main {
  flex: 1;
}

.step-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(53, 71, 39, 0.08);
}

.step-link .badge {
  min-width: 110px;
  text-align: center;
}

.step-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(122, 182, 72, 0.12);
  color: var(--dash-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.step-link.disabled {
  cursor: default;
  color: #98a18f;
}

.step-item-disabled {
  opacity: 0.6;
}

.soft-pill {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.75rem;
}

.badge.bg-danger.soft-pill {
  background: var(--dash-danger-soft) !important;
  color: #a62e63;
}

.badge.bg-success.soft-pill {
  background: var(--dash-success-soft) !important;
  color: #2f7c44;
}

.badge.bg-secondary.soft-pill {
  background: var(--dash-neutral-soft) !important;
  color: #4f574d;
}

.document-list .list-group-item {
  padding: 16px 0;
  border-color: rgba(111, 117, 107, 0.16);
  background: transparent;
}

.document-meta .fw-semibold {
  font-size: 0.95rem;
}

.document-meta .small {
  font-size: 0.8rem;
}

.document-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(122, 182, 72, 0.12);
  color: var(--dash-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.document-list .btn {
  border-radius: 12px;
}

.dashboard-flash-stack .alert {
  margin-bottom: 12px;
}

.dashboard-flash-stack {
  margin-bottom: 24px;
}

.dashboard-grid .soft-card {
  height: 100%;
}

.contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(122, 182, 72, 0.15);
  color: var(--dash-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.summary-section .text-muted {
  color: var(--dash-muted) !important;
}

.summary-section .h6 {
  font-weight: 700;
}

.admin-layout .admin-footer {
  background-color: #f6f7f1;
  border-top: 1px solid #e2e7d7;
}

.admin-topbar {
  background: transparent;
  border: 0;
  padding-bottom: 24px;
  margin-bottom: 0;
}

.admin-section {
  margin-bottom: 2.5rem;
}

.admin-section .card {
  border-radius: 16px;
}

.admin-sidebar .sidebar-link.active {
  background: var(--dash-primary);
  color: #ffffff;
}

.admin-sidebar .sidebar-link.active .bi {
  color: #ffffff;
}

.admin-dashboard__kpi .dashboard-kpi-card,
.dashboard-chart-card,
.dashboard-alerts-card {
  border: 1px solid var(--dash-border);
  border-radius: 20px;
  background: var(--dash-card-bg);
  box-shadow: var(--dash-shadow-soft);
  padding: 1.75rem;
}

.dashboard-kpi-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard-kpi-card__label {
  letter-spacing: 0.08em;
  color: var(--dash-muted);
}

.dashboard-kpi-card__value {
  font-size: 2.4rem;
  font-weight: 700;
  color: #253021;
}

.dashboard-chart__legend {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.dashboard-chart__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-chart__legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--dash-primary);
  display: inline-block;
}

.dashboard-chart__legend-dot--visits {
  background: linear-gradient(135deg, var(--dash-primary), var(--dash-primary-light));
}

.dashboard-chart__legend-dot--alerts {
  background: linear-gradient(135deg, rgba(201, 59, 122, 0.82), var(--dash-danger));
}

.dashboard-chart__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 1.5rem;
  align-items: end;
}

.dashboard-chart__column-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.dashboard-chart__bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.25rem;
  height: 220px;
  min-height: 220px;
  width: 100%;
}

.dashboard-chart__bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 0;
  height: 100%;
}

.dashboard-chart__bar {
  width: 36px;
  border-radius: 16px;
  height: var(--bar-height, 0);
  transition: height 0.25s ease, box-shadow 0.25s ease;
}

.dashboard-chart__bar--visits {
  background: linear-gradient(180deg, rgba(156, 204, 101, 0.95), var(--dash-primary));
}

.dashboard-chart__bar--alerts {
  background: linear-gradient(180deg, rgba(227, 122, 169, 0.92), var(--dash-danger));
}

.dashboard-chart__bar.is-active {
  box-shadow: 0 8px 18px rgba(122, 182, 72, 0.2);
}

.dashboard-chart__value {
  font-size: 0.85rem;
  font-weight: 600;
}

.dashboard-chart__value--visits {
  color: var(--dash-primary);
}

.dashboard-chart__value--alerts {
  color: var(--dash-danger);
}

.dashboard-chart__label {
  text-transform: capitalize;
  color: var(--dash-muted);
}

.dashboard-chart__empty {
  border-radius: 16px;
  background: rgba(122, 182, 72, 0.08);
}

.dashboard-alert-item {
  border-radius: 16px;
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dashboard-alert-item:hover,
.dashboard-alert-item:focus {
  background: rgba(122, 182, 72, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.dashboard-alert-item__severity {
  background: rgba(201, 59, 122, 0.18);
  color: var(--dash-danger);
  font-weight: 600;
}

.dashboard-alert-item__severity--high,
.dashboard-alert-item__severity--urgent {
  background: rgba(201, 59, 122, 0.2);
  color: var(--dash-danger);
}

.dashboard-alert-item__severity--medium {
  background: rgba(122, 182, 72, 0.18);
  color: var(--dash-primary);
}

.dashboard-alert-item__severity--low {
  background: rgba(79, 155, 87, 0.18);
  color: var(--dash-success);
}

.dashboard-alerts-card__empty {
  border-radius: 16px;
  background: rgba(122, 182, 72, 0.05);
}

@media (max-width: 991.98px) {
  .dashboard-chart__bars {
    height: 180px;
    min-height: 180px;
  }
}

@media (max-width: 575.98px) {
  .dashboard-chart__grid {
    gap: 1rem;
  }

  .dashboard-chart__bars {
    gap: 1rem;
  }

  .dashboard-chart__bar {
    width: 26px;
  }
}

.admin-tabs {
  gap: 12px;
  border: 0;
}

.admin-tab-link {
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--dash-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.admin-tab-link i {
  font-size: 1rem;
}

.admin-tab-link:hover {
  background: rgba(122, 182, 72, 0.08);
  border-color: rgba(122, 182, 72, 0.15);
  color: var(--dash-primary);
}

.admin-tab-link.active {
  background: linear-gradient(135deg, var(--fa-primary-500), var(--fa-primary-600));
  color: #fff;
  box-shadow: 0 16px 32px rgba(122, 182, 72, 0.22);
}

.admin-tab-link.active:hover {
  color: #fff;
}

.settings-card {
  display: block;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(122, 182, 72, 0.12);
  padding: 24px;
  box-shadow: var(--dash-shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.settings-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(53, 71, 39, 0.12);
  color: inherit;
}

.settings-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(122, 182, 72, 0.12);
  color: var(--dash-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.settings-card-cta {
  font-weight: 600;
  color: var(--dash-primary);
  display: inline-flex;
  align-items: center;
}

.skill-block-card + .skill-block-card {
  margin-top: 1.5rem;
}

.skill-radar {
  position: relative;
  background: var(--fa-gray-50);
  border-radius: 1rem;
  padding: 1.5rem;
  min-height: 320px;
}

.skill-radar canvas {
  width: 100%;
  height: 320px;
  display: block;
}

.skill-radar__legend ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.4rem 1rem;
  padding-left: 0;
}

.skill-radar__legend-dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  margin-right: 0.5rem;
  background-color: var(--dash-primary);
  border: 1px solid var(--dash-primary);
}

.skill-radar__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.skill-evaluation-table__empty {
  border: 1px dashed rgba(122, 182, 72, 0.22);
  border-radius: 0.75rem;
  margin-top: 1rem;
}

.skill-evaluation-modal__inputs .form-select,
.skill-evaluation-modal__inputs .form-control {
  min-width: 190px;
}

@media (max-width: 991.98px) {
  .skill-evaluation-modal__inputs .form-select,
  .skill-evaluation-modal__inputs .form-control {
    min-width: 100%;
  }
}

.chat-card {
  min-height: 24rem;
}

.chat-card__body {
  min-height: 24rem;
}

.chat-messages {
  background-color: #f7f8f4;
  border-radius: 0.75rem;
  padding: 1rem;
  overflow-y: auto;
}

.chat-message {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 75%;
}

.chat-message__meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #788070;
}

.chat-message__author {
  font-weight: 600;
}

.chat-message__bubble {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background-color: #e9eee2;
  color: #2c342a;
  border: 1px solid transparent;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-message--incoming {
  align-self: flex-start;
}

.chat-message--outgoing {
  align-self: flex-end;
}

.chat-message--role-administratif .chat-message__bubble {
  background-color: var(--fa-primary-600);
  color: #fff;
  border-color: #568d2c;
}

.chat-message--role-referent .chat-message__bubble {
  background-color: #edf5e4;
  color: #446027;
  border-color: #cfe0bb;
}

.chat-message--role-tuteur .chat-message__bubble {
  background-color: #fff1f7;
  color: #9f2f61;
  border-color: #f1bfd6;
}

.chat-message--role-apprenant .chat-message__bubble {
  background-color: #edf7ef;
  color: #2f7240;
  border-color: #c8e2cd;
}

.chat-error {
  margin-bottom: 0;
}

.chat-form .form-control {
  resize: none;
}

.chat-form .btn {
  min-width: 6rem;
}

/* Signature field */
.signature-field {
  border: 1px solid rgba(111, 117, 107, 0.34);
  border-radius: 0.75rem;
  padding: 1rem;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signature-field + .signature-field {
  margin-top: 1rem;
}

.signature-field--editing .signature-field__canvas {
  opacity: 1;
}

.signature-field__canvas {
  transition: opacity 0.2s ease;
}

.signature-field__canvas .signature-pad {
  min-height: 200px;
  background-color: #f7f8f4;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.signature-field__canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0.5rem;
}

.signature-field__preview-inner {
  background-color: #f7f8f4;
  border: 1px solid rgba(111, 117, 107, 0.22);
  border-radius: 0.5rem;
  padding: 1rem;
}

.signature-field__preview img {
  max-width: 100%;
  height: auto;
}

.signature-field--invalid {
  border-color: rgba(201, 59, 122, 0.52);
  box-shadow: 0 0 0 3px rgba(201, 59, 122, 0.12);
}

.signature-field--invalid .signature-field__preview-inner {
  border-color: rgba(201, 59, 122, 0.28);
}

.signature-field [data-signature-error] {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.signature-field [data-signature-help] {
  font-size: 0.9rem;
}

.signature-field [data-signature-cancel] {
  display: inline-flex;
}

.signature-field .btn {
  border-radius: 0.5rem;
}

.signature-preview {
  border: 1px solid rgba(111, 117, 107, 0.24);
  border-radius: 0.75rem;
  background-color: #ffffff;
  padding: 0.75rem;
}

.signature-preview img {
  max-width: 100%;
  height: auto;
  display: block;
}


.modal-body {
  max-height: 75vh;
  overflow-y: auto;
}