@charset "UTF-8";
@import url("https://fonts.googleapis.com/css?family=Red+Hat+Display:900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
  transition: background 0.2s;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}
*::-webkit-scrollbar-corner {
  background: transparent;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background-color: #ffffff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

.dashboard-layout {
  display: flex;
  flex-direction: row;
  height: 100vh;
  background: #f9fafb;
}
.dashboard-layout .main-area {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.dashboard-layout .dashboard-content {
  flex: 1;
  overflow: auto;
  background: #ffffff;
}
.dashboard-layout .dashboard-content .content-wrapper {
  padding: 24px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}
.dashboard-layout .dashboard-content .content-wrapper:has(.settings-page) {
  padding: 0;
  max-width: none;
  height: 100%;
}
.dashboard-layout .dashboard-content .content-wrapper:not(:has(.settings-page)) {
  height: 100%;
}

.oaklet-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.oaklet-navbar .navbar-section {
  display: flex;
  align-items: center;
}
.oaklet-navbar .navbar-section--center {
  flex: 1;
  justify-content: center;
  padding: 0 24px;
  position: relative;
  z-index: 200;
}
.oaklet-navbar .navbar-section--center .navbar-search {
  position: relative;
  z-index: 201;
}
.oaklet-navbar .navbar-section--right {
  flex: 0 0 auto;
  gap: 8px;
  z-index: 10;
}
.oaklet-navbar .notifications-bell {
  position: relative;
}
.oaklet-navbar .notifications-bell__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}
.oaklet-navbar .notifications-bell__button:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}
.oaklet-navbar .notifications-bell__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  border-radius: 9px;
  box-shadow: 0 0 0 2px #ffffff;
}
.oaklet-navbar .notifications-bell__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  width: 340px;
  max-width: 90vw;
  z-index: 1000;
  overflow: hidden;
}
.oaklet-navbar .notifications-bell__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
}
.oaklet-navbar .notifications-bell__title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.oaklet-navbar .notifications-bell__count {
  font-size: 12px;
  font-weight: 500;
  color: #14b8a6;
}
.oaklet-navbar .notifications-bell__list {
  max-height: 420px;
  overflow-y: auto;
}
.oaklet-navbar .notifications-bell__empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}
.oaklet-navbar .notifications-bell__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid #f3f4f6;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.oaklet-navbar .notifications-bell__item:last-child {
  border-bottom: none;
}
.oaklet-navbar .notifications-bell__item:hover {
  background: #f9fafb;
}
.oaklet-navbar .notifications-bell__item--unread {
  background: #f0fdfa;
}
.oaklet-navbar .notifications-bell__item--unread:hover {
  background: #ccfbf1;
}
.oaklet-navbar .notifications-bell__item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.oaklet-navbar .notifications-bell__name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.oaklet-navbar .notifications-bell__time {
  flex-shrink: 0;
  font-size: 12px;
  color: #9ca3af;
}
.oaklet-navbar .notifications-bell__item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.oaklet-navbar .notifications-bell__preview {
  font-size: 13px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.oaklet-navbar .notifications-bell__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #14b8a6;
}
.oaklet-navbar .account-menu-wrapper {
  position: relative;
}
.oaklet-navbar .account-menu-wrapper .account-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.oaklet-navbar .account-menu-wrapper .account-button:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}
.oaklet-navbar .account-menu-wrapper .account-button .user-name {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}
.oaklet-navbar .account-menu-wrapper .account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  z-index: 1000;
}
.oaklet-navbar .account-menu-wrapper .account-dropdown .dropdown-header {
  padding: 12px 16px;
}
.oaklet-navbar .account-menu-wrapper .account-dropdown .dropdown-header .user-info {
  display: flex;
  flex-direction: column;
}
.oaklet-navbar .account-menu-wrapper .account-dropdown .dropdown-header .user-info .user-full-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.oaklet-navbar .account-menu-wrapper .account-dropdown .dropdown-header .user-info .user-role {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}
.oaklet-navbar .account-menu-wrapper .account-dropdown .dropdown-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 0;
}
.oaklet-navbar .account-menu-wrapper .account-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: background 0.2s;
}
.oaklet-navbar .account-menu-wrapper .account-dropdown .dropdown-item:hover {
  background: #f9fafb;
}
.oaklet-navbar .account-menu-wrapper .account-dropdown .dropdown-item svg {
  flex-shrink: 0;
}

.oaklet-sidebar {
  width: 300px;
  background: white;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  padding: 20px;
}
.oaklet-sidebar .sidebar-container {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.oaklet-sidebar.collapsed {
  width: 104px;
}
.oaklet-sidebar.collapsed .nav-label,
.oaklet-sidebar.collapsed .practice-name,
.oaklet-sidebar.collapsed .user-details,
.oaklet-sidebar.collapsed .closed-beta,
.oaklet-sidebar.collapsed .sidebar-header-expanded {
  display: none;
}
.oaklet-sidebar.collapsed .sidebar-header-collapsed {
  display: flex !important;
}
.oaklet-sidebar.collapsed .nav-link,
.oaklet-sidebar.collapsed .practice-item {
  justify-content: center;
  padding: 12px;
}
.oaklet-sidebar.collapsed .nav-link::after {
  display: none;
}
.oaklet-sidebar.collapsed .sidebar-footer .footer-right {
  width: 100%;
  display: flex;
  justify-content: center;
}
.oaklet-sidebar.collapsed .sidebar-footer .footer-right .nav-list {
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.oaklet-sidebar.collapsed .sidebar-footer .footer-right .nav-list .nav-item .nav-link {
  padding: 8px;
  justify-content: center;
  width: 32px;
  height: 32px;
}
.oaklet-sidebar.collapsed .sidebar-header-collapsed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}
.oaklet-sidebar.collapsed .sidebar-header-collapsed .sidebar-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.oaklet-sidebar.collapsed .sidebar-header-collapsed .sidebar-collapse-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s;
}
.oaklet-sidebar.collapsed .sidebar-header-collapsed .sidebar-collapse-btn:hover {
  color: #374151;
}
.oaklet-sidebar .sidebar-top {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
.oaklet-sidebar .sidebar-top::-webkit-scrollbar {
  width: 4px;
}
.oaklet-sidebar .sidebar-top::-webkit-scrollbar-track {
  background: transparent;
}
.oaklet-sidebar .sidebar-top::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  transition: background 0.2s;
}
.oaklet-sidebar .sidebar-top::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}
.oaklet-sidebar .sidebar-top {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}
.oaklet-sidebar .sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid #e5e7eb;
}
.oaklet-sidebar .sidebar-header .sidebar-header-expanded .header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.oaklet-sidebar .sidebar-header .sidebar-header-expanded .header-row .sidebar-logo {
  flex-shrink: 0;
  height: 32px;
}
.oaklet-sidebar .sidebar-header .sidebar-header-expanded .header-row .sidebar-logo img {
  height: 100%;
  width: auto;
}
.oaklet-sidebar .sidebar-header .sidebar-header-expanded .header-row .header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.oaklet-sidebar .sidebar-header .sidebar-header-expanded .header-row .ai-chat-icon-container,
.oaklet-sidebar .sidebar-header .sidebar-header-expanded .header-row .save-icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  color: #6b7280;
  flex-shrink: 0;
  padding: 4px;
  border-radius: 6px;
}
.oaklet-sidebar .sidebar-header .sidebar-header-expanded .header-row .ai-chat-icon-container:hover,
.oaklet-sidebar .sidebar-header .sidebar-header-expanded .header-row .save-icon-container:hover {
  color: #2A9D8F;
  background: #f3f4f6;
}
.oaklet-sidebar .sidebar-header .sidebar-header-expanded .header-row .ai-chat-icon-container svg,
.oaklet-sidebar .sidebar-header .sidebar-header-expanded .header-row .save-icon-container svg {
  width: 20px;
  height: 20px;
}
.oaklet-sidebar .sidebar-header .sidebar-header-expanded .header-row .exit-edit-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.2s;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.oaklet-sidebar .sidebar-header .sidebar-header-expanded .header-row .exit-edit-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}
.oaklet-sidebar .sidebar-header .sidebar-header-expanded .header-row .exit-edit-btn svg {
  width: 20px;
  height: 20px;
}
.oaklet-sidebar .sidebar-header .sidebar-header-expanded .header-row .sidebar-collapse-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  padding: 4px;
  border-radius: 6px;
}
.oaklet-sidebar .sidebar-header .sidebar-header-expanded .header-row .sidebar-collapse-btn:hover {
  color: #374151;
  background: #f3f4f6;
}
.oaklet-sidebar .sidebar-header .sidebar-header-collapsed {
  display: none;
}
.oaklet-sidebar .sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 10px 0;
}
.oaklet-sidebar .sidebar-bottom {
  padding: 16px 20px;
}
.oaklet-sidebar .sidebar-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.oaklet-sidebar .sidebar-footer .footer-left .closed-beta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.oaklet-sidebar .sidebar-footer .footer-left .closed-beta__main {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #7c3aed;
  text-transform: uppercase;
  line-height: 1;
}
.oaklet-sidebar .sidebar-footer .footer-left .closed-beta__date {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #a78bfa;
  text-transform: uppercase;
  line-height: 1;
}
.oaklet-sidebar .sidebar-footer .footer-right .nav-list {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.oaklet-sidebar .sidebar-footer .footer-right .nav-list .nav-item {
  margin-bottom: 0;
}
.oaklet-sidebar .sidebar-footer .footer-right .nav-list .nav-item .nav-link {
  padding: 8px;
  border-radius: 6px;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oaklet-sidebar .sidebar-footer .footer-right .nav-list .nav-item .nav-link:hover {
  background: #e5e7eb;
  color: #374151;
}
.oaklet-sidebar .sidebar-footer .footer-right .nav-list .nav-item .nav-link.active {
  background: #eff6ff;
  color: #32A293;
}
.oaklet-sidebar .sidebar-footer .footer-right .nav-list .nav-item .nav-link .nav-icon {
  display: flex;
  align-items: center;
}
.oaklet-sidebar .sidebar-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 16px 16px;
}
.oaklet-sidebar .sidebar-section--main {
  flex: 0 0 auto;
}
.oaklet-sidebar .sidebar-section--practice {
  margin-top: 16px;
}
.oaklet-sidebar .sidebar-section--practice .organization-hub-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #f9fafb;
  text-decoration: none;
  transition: all 0.2s;
  color: #374151;
}
.oaklet-sidebar .sidebar-section--practice .organization-hub-link .nav-icon {
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oaklet-sidebar .sidebar-section--practice .organization-hub-link .nav-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}
.oaklet-sidebar .sidebar-section--practice .organization-hub-link:hover {
  background: #f3f4f6;
}
.oaklet-sidebar .sidebar-section--practice .organization-hub-link.active {
  background: color-mix(in srgb, var(--color-primary) 10%, white);
}
.oaklet-sidebar .sidebar-section--practice .organization-hub-link.active .nav-icon {
  color: var(--color-primary);
}
.oaklet-sidebar .sidebar-section--practice .organization-hub-link.active .nav-label {
  color: var(--color-primary);
  font-weight: 600;
}
.oaklet-sidebar .sidebar-section--practice .practice-dropdown {
  position: relative;
}
.oaklet-sidebar .sidebar-section--practice .practice-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  width: 100%;
  border: none;
  border-radius: 8px;
  background: #f9fafb;
  cursor: pointer;
  transition: background 0.2s;
}
.oaklet-sidebar .sidebar-section--practice .practice-dropdown-toggle:hover {
  background: #e5e7eb;
}
.oaklet-sidebar .sidebar-section--practice .practice-dropdown-toggle .practice-icon {
  display: flex;
  align-items: center;
  color: #6b7280;
}
.oaklet-sidebar .sidebar-section--practice .practice-dropdown-toggle .practice-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  text-align: left;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}
.oaklet-sidebar .sidebar-section--practice .practice-dropdown-toggle .practice-name .practice-name-line {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.oaklet-sidebar .sidebar-section--practice .practice-dropdown-toggle .practice-name .practice-name-line:first-child {
  margin-bottom: 2px;
}
.oaklet-sidebar .sidebar-section--practice .practice-dropdown-toggle .dropdown-arrow {
  display: flex;
  align-items: center;
  color: #6b7280;
  transition: transform 0.2s;
}
.oaklet-sidebar .sidebar-section--practice .practice-dropdown-toggle .dropdown-arrow.open {
  transform: rotate(180deg);
}
.oaklet-sidebar .sidebar-section--practice .practice-dropdown-menu {
  margin-top: 4px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.oaklet-sidebar .sidebar-section--practice .practice-dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s;
}
.oaklet-sidebar .sidebar-section--practice .practice-dropdown-menu .dropdown-item:hover {
  background: #f9fafb;
  color: #374151;
}
.oaklet-sidebar .sidebar-section--practice .practice-dropdown-menu .dropdown-item.active {
  background: #eff6ff;
  color: #32A293;
}
.oaklet-sidebar .sidebar-section--practice .practice-dropdown-menu .dropdown-item.active .dropdown-icon {
  color: #32A293;
}
.oaklet-sidebar .sidebar-section--practice .practice-dropdown-menu .dropdown-item .dropdown-icon {
  display: flex;
  align-items: center;
}
.oaklet-sidebar .sidebar-section--practice .practice-dropdown-menu .dropdown-item .dropdown-label {
  font-size: 14px;
}
.oaklet-sidebar .sidebar-section--bottom {
  margin-top: auto;
}
.oaklet-sidebar .sidebar-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 16px 0;
}
.oaklet-sidebar .nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.oaklet-sidebar .nav-item {
  margin-bottom: 4px;
}
.oaklet-sidebar .nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 10px 16px;
  color: #6b7280;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  position: relative;
  font-size: 14px;
}
.oaklet-sidebar .nav-link:hover {
  background: #f9fafb;
  color: #374151;
}
.oaklet-sidebar .nav-link.active {
  background: #eff6ff;
  color: #32A293;
  font-weight: 500;
}
.oaklet-sidebar .nav-link.active .nav-icon {
  color: #32A293;
}
.oaklet-sidebar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: #32A293;
  border-radius: 0 2px 2px 0;
}
.oaklet-sidebar .nav-link .nav-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.oaklet-sidebar .nav-link .nav-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oaklet-sidebar .nav-link .nav-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
}
.oaklet-sidebar .nav-link .nav-badge--warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.oaklet-sidebar .nav-link .dashboard-edit-icon {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin-left: auto;
  flex-shrink: 0;
  overflow: visible;
}
.oaklet-sidebar .nav-link .dashboard-edit-icon:hover {
  background: #f3f4f6;
  color: #2A9D8F;
}
.oaklet-sidebar .nav-link .dashboard-edit-icon svg {
  width: 20px;
  height: 20px;
}
.oaklet-sidebar .nav-link .nav-arrow {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.2s;
}
.oaklet-sidebar .nav-link .nav-arrow.expanded {
  transform: rotate(180deg);
}
.oaklet-sidebar .nav-sub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 4px;
  padding-left: 16px;
}
.oaklet-sidebar .nav-sub-item {
  margin-bottom: 2px;
}
.oaklet-sidebar .nav-sub-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #6b7280;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 13px;
}
.oaklet-sidebar .nav-sub-link:hover {
  background: #f9fafb;
  color: #374151;
}
.oaklet-sidebar .nav-sub-link.active {
  background: #eff6ff;
  color: #32A293;
  font-weight: 500;
}
.oaklet-sidebar .nav-sub-link.active .nav-sub-icon {
  color: #32A293;
}
.oaklet-sidebar .nav-sub-link .nav-sub-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.oaklet-sidebar .nav-sub-link .nav-sub-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oaklet-sidebar .nav-dropdown {
  position: relative;
}
.oaklet-sidebar .nav-dropdown .nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  width: 100%;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  text-align: left;
}
.oaklet-sidebar .nav-dropdown .nav-dropdown-toggle:hover {
  background: #f9fafb;
  color: #374151;
}
.oaklet-sidebar .nav-dropdown .nav-dropdown-toggle .nav-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.oaklet-sidebar .nav-dropdown .nav-dropdown-toggle .nav-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oaklet-sidebar .nav-dropdown .nav-dropdown-toggle .dropdown-arrow {
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}
.oaklet-sidebar .nav-dropdown .nav-dropdown-toggle .dropdown-arrow.open {
  transform: rotate(180deg);
}
.oaklet-sidebar .nav-dropdown .nav-dropdown-menu {
  margin-top: 4px;
  margin-left: 32px;
}
.oaklet-sidebar .nav-dropdown .nav-dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  color: #6b7280;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 13px;
}
.oaklet-sidebar .nav-dropdown .nav-dropdown-menu .dropdown-item:hover {
  background: #f9fafb;
  color: #374151;
}
.oaklet-sidebar .nav-dropdown .nav-dropdown-menu .dropdown-item.active {
  background: #eff6ff;
  color: #32A293;
  font-weight: 500;
}
.oaklet-sidebar .nav-dropdown .nav-dropdown-menu .dropdown-item .dropdown-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oaklet-sidebar.ai-chat-mode, .oaklet-sidebar.dashboard-edit-mode {
  position: relative;
  user-select: none;
}
.oaklet-sidebar.ai-chat-mode .sidebar-header, .oaklet-sidebar.dashboard-edit-mode .sidebar-header {
  display: block !important;
  border-bottom: 1px solid #e5e7eb;
  padding: 20px;
  flex-shrink: 0;
}
.oaklet-sidebar.ai-chat-mode .sidebar-top, .oaklet-sidebar.dashboard-edit-mode .sidebar-top {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.oaklet-sidebar.ai-chat-mode .ai-chat-container, .oaklet-sidebar.ai-chat-mode .dashboard-edit-container, .oaklet-sidebar.dashboard-edit-mode .ai-chat-container, .oaklet-sidebar.dashboard-edit-mode .dashboard-edit-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  padding: 20px;
}
.oaklet-sidebar.ai-chat-mode .ai-chat-input, .oaklet-sidebar.dashboard-edit-mode .ai-chat-input {
  padding-top: 16px;
}
.oaklet-sidebar.ai-chat-mode .sidebar-nav, .oaklet-sidebar.dashboard-edit-mode .sidebar-nav {
  display: none;
}
.oaklet-sidebar.ai-chat-mode .sidebar-footer, .oaklet-sidebar.dashboard-edit-mode .sidebar-footer {
  padding: 20px;
  flex-shrink: 0;
}
.oaklet-sidebar.ai-chat-mode .sidebar-footer, .oaklet-sidebar.dashboard-edit-mode .sidebar-footer {
  display: none;
}
.oaklet-sidebar .sidebar-resize-handle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  cursor: ew-resize;
  background: transparent;
  z-index: 1001;
  transition: background 0.2s;
}
.oaklet-sidebar .sidebar-resize-handle::before {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 40px;
  background: rgba(55, 65, 81, 0.1);
  border-radius: 2px;
  transition: all 0.2s;
}
.oaklet-sidebar .sidebar-resize-handle:hover {
  background: rgba(55, 65, 81, 0.05);
}
.oaklet-sidebar .sidebar-resize-handle:hover::before {
  background: rgba(55, 65, 81, 0.3);
  height: 60px;
}
.oaklet-sidebar .sidebar-resize-handle:active {
  background: rgba(55, 65, 81, 0.1);
}
.oaklet-sidebar .sidebar-resize-handle:active::before {
  background: rgba(55, 65, 81, 0.4);
}
.oaklet-sidebar .view-switcher {
  position: relative;
  margin-bottom: 10px;
}
.oaklet-sidebar .view-switcher__toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.oaklet-sidebar .view-switcher__toggle--practice {
  padding: 9px 16px;
}
.oaklet-sidebar .view-switcher__toggle:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}
.oaklet-sidebar .view-switcher__icon {
  display: flex;
  align-items: center;
  color: #6b7280;
}
.oaklet-sidebar .view-switcher__avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #374151;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  line-height: 1;
}
.oaklet-sidebar .view-switcher__label {
  flex: 1;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oaklet-sidebar .view-switcher__arrow {
  display: flex;
  align-items: center;
  color: #9ca3af;
  transition: transform 0.2s ease;
}
.oaklet-sidebar .view-switcher__arrow.open {
  transform: rotate(180deg);
}
.oaklet-sidebar .view-switcher__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 320px;
  overflow-y: auto;
}
.oaklet-sidebar .view-switcher__menu::-webkit-scrollbar {
  width: 4px;
}
.oaklet-sidebar .view-switcher__menu::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}
.oaklet-sidebar .view-switcher__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  font-size: 14px;
  color: #374151;
}
.oaklet-sidebar .view-switcher__item:hover {
  background: #f9fafb;
}
.oaklet-sidebar .view-switcher__item.active {
  background: #eff6ff;
  color: #32A293;
  font-weight: 500;
}
.oaklet-sidebar .view-switcher__item--add {
  color: #32A293;
}
.oaklet-sidebar .view-switcher__item--add:hover {
  background: #ecfdf5;
}
.oaklet-sidebar .view-switcher__item-icon {
  display: flex;
  align-items: center;
  color: inherit;
}
.oaklet-sidebar .view-switcher__item-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oaklet-sidebar .view-switcher__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
}
.oaklet-sidebar .view-switcher__divider {
  height: 1px;
  background: #e5e7eb;
  margin: 4px 0;
}

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.btn:hover {
  opacity: 0.9;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  background-color: #374151;
  color: #ffffff;
}
.btn-primary:hover:not(:disabled) {
  background-color: #1f2937;
}
.btn-secondary {
  background-color: #6b7280;
  color: #ffffff;
}
.btn-secondary:hover:not(:disabled) {
  background-color: #4b5563;
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #111827;
}
.form-group input {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid #f3f4f6;
  border-radius: 6px;
  font-size: 16px;
}
.form-group input:focus {
  outline: none;
  border-color: #2A9D8F;
}
.form-group input:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
}

.toast-container {
  background: #111827;
  color: #ffffff;
  padding: 16px;
  border-radius: 6px;
  font-size: 14px;
}
.toast--success .toast-icon {
  color: #16a34a;
}
.toast--error .toast-icon {
  color: #dc2626;
}

.loading-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
}
.loading-screen .loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f4f6;
  border-top-color: #374151;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loading-screen p {
  margin-top: 16px;
  color: #6b7280;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.oaklet-logo {
  display: inline-flex;
  align-items: center;
}
.oaklet-logo .logo-img {
  height: 20px;
  width: auto;
  object-fit: contain;
}

.oaklet-logo-icon {
  display: inline-flex;
  align-items: center;
}
.oaklet-logo-icon .logo-icon-img {
  height: 20px;
  width: auto;
  object-fit: contain;
}

.liquid-glass {
  position: relative;
  background: transparent !important;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: visible;
  box-shadow: none !important;
}
.liquid-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  border-radius: inherit;
}
.liquid-glass__content {
  position: relative;
  z-index: 1;
  background: transparent !important;
}
.liquid-glass--light {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.15);
}
.liquid-glass--dark {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.08);
}
.liquid-glass * {
  background: transparent !important;
}

/**
 * Oaklet Spinner Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Gonzalo
 */
@keyframes oakletFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes textPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
.oaklet-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  animation: oakletFadeIn 0.3s ease-out;
}

.oaklet-leaf-container {
  position: relative;
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 4px 12px rgba(42, 157, 143, 0.2));
}

.oaklet-leaf-base {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.2;
}

.oaklet-leaf-animated {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
}

.search-with-liquid-glass {
  width: 100%;
  max-width: 500px;
}
.search-with-liquid-glass .search-glass-wrapper {
  padding: 0;
}
.search-with-liquid-glass .search-form {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  height: 40px;
  position: relative;
}
.search-with-liquid-glass .search-form .search-icon {
  color: #6b7280;
  margin-right: 12px;
  flex-shrink: 0;
}
.search-with-liquid-glass .search-form .search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: #1f2937;
}
.search-with-liquid-glass .search-form .search-input::placeholder {
  color: #9ca3af;
}
.search-with-liquid-glass .search-form .search-input.focused {
  color: #111827;
}
.search-with-liquid-glass .search-form .clear-button {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}
.search-with-liquid-glass .search-form .clear-button:hover {
  color: #374151;
}

/**
 * Oaklet AI Search Bar Styles
 * @copyright (c) 2025-2026 Oaklet
 * 
 * Styling for AI-powered search bar component with liquid glass effects
 * and expandable dropdown interface.
 * 
 * @module styles/components/search/ai-search-bar
 */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.ai-search-bar {
  position: relative;
  width: 100%;
  max-width: 600px;
  min-width: 300px;
}
.ai-search-bar__input-glass {
  width: 100%;
  position: relative;
  background: transparent !important;
  box-shadow: none !important;
}
.ai-search-bar__input-glass .glass {
  background: transparent !important;
}
.ai-search-bar__input-wrapper {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  height: 40px;
  width: 100%;
  background: transparent !important;
  position: relative;
  z-index: 2;
  border: 1px solid rgb(182, 182, 194);
  border-radius: 14px;
}
.ai-search-bar__dropdown-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
  pointer-events: auto;
  transition: all 0.3s ease;
  margin-top: 4px;
}
.ai-search-bar__dropdown-container::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 14px;
  padding: 2px;
  background: conic-gradient(from var(--gradient-angle, 0deg), #753bc5 0deg, #3f80f9 90deg, #f0bf62 180deg, #4a61e2 270deg, #cb64ed 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.8;
  animation: rotate-gradient 4s linear infinite;
  pointer-events: none;
}
.ai-search-bar__dropdown-container {
  box-shadow: 0 0 20px rgba(119, 92, 255, 0.2), 0 0 40px rgba(88, 147, 255, 0.15), 0 0 60px rgba(255, 212, 131, 0.1);
}
@supports not (background: conic-gradient(from var(--gradient-angle, 0deg), red 0deg)) {
  .ai-search-bar__dropdown-container {
    animation: glow-pulse-fallback 3s ease-in-out infinite;
  }
  .ai-search-bar__dropdown-container::before {
    display: none;
  }
}
.ai-search-bar__dropdown-container.is-generating::before {
  opacity: 1;
  animation: rotate-gradient 2s linear infinite;
}
.ai-search-bar__dropdown-container.is-generating {
  box-shadow: 0 0 30px rgba(119, 92, 255, 0.4), 0 0 60px rgba(88, 147, 255, 0.3), 0 0 90px rgba(255, 212, 131, 0.25);
}
.ai-search-bar__dropdown-container.is-generating .ai-search-bar__dropdown-glass {
  box-shadow: inset 0 0 60px rgba(249, 63, 171, 0.3), inset 0 0 30px rgba(42, 92, 157, 0.3), inset 0 0 90px rgba(240, 191, 98, 0.2), inset 0 1px 2px rgba(255, 128, 38, 0.4);
  animation: inner-glow-pulse 2s ease-in-out infinite;
}
.ai-search-bar__dropdown-glass {
  width: 100%;
  background: transparent !important;
  box-shadow: none !important;
  position: relative;
  z-index: 1;
}
.ai-search-bar__dropdown-glass .glass {
  background: transparent !important;
  position: relative;
  z-index: 1;
}
.ai-search-bar__search-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-right: 10px;
  color: #6b7280;
}
.theme-dark .ai-search-bar__search-icon {
  color: rgba(255, 255, 255, 0.7);
}
.ai-search-bar__form {
  flex: 1;
  width: 100%;
}
.ai-search-bar__input {
  width: 100%;
  height: 100px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
}
.ai-search-bar__input::placeholder {
  color: #9ca3af;
}
.ai-search-bar__input:focus {
  outline: none;
  box-shadow: none;
}
.theme-dark .ai-search-bar__input {
  color: #ffffff;
}
.theme-dark .ai-search-bar__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.ai-search-bar__loader {
  flex-shrink: 0;
  margin-left: 10px;
}
.ai-search-bar__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e5e7eb;
  border-top-color: #6b7280;
  border-radius: 50%;
  animation: ai-search-spin 0.6s linear infinite;
}
.theme-dark .ai-search-bar__spinner {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.8);
}
.ai-search-bar__dropdown {
  width: 100%;
  padding: 20px;
  position: relative;
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  background: transparent !important;
}
.ai-search-bar__dropdown::-webkit-scrollbar {
  width: 4px;
}
.ai-search-bar__dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.ai-search-bar__dropdown::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.3);
  border-radius: 2px;
}
.ai-search-bar__dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 163, 175, 0.5);
}
.theme-dark .ai-search-bar__dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}
.theme-dark .ai-search-bar__dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}
.ai-search-bar__divider {
  height: 1px;
  background: rgba(229, 231, 235, 0.3);
  margin-bottom: 16px;
}
.theme-dark .ai-search-bar__divider {
  background: rgba(255, 255, 255, 0.05);
}

@keyframes ai-search-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes rotate-gradient {
  0% {
    --gradient-angle: 0deg;
  }
  100% {
    --gradient-angle: 360deg;
  }
}
@keyframes glow-pulse-fallback {
  0%, 100% {
    box-shadow: 0 0 20px rgba(119, 92, 255, 0.2), 0 0 40px rgba(88, 147, 255, 0.15), 0 0 60px rgba(255, 212, 131, 0.1), inset 0 0 20px rgba(119, 92, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(119, 92, 255, 0.4), 0 0 60px rgba(88, 147, 255, 0.3), 0 0 90px rgba(255, 212, 131, 0.2), inset 0 0 30px rgba(119, 92, 255, 0.2);
  }
}
@keyframes inner-glow-pulse {
  0%, 100% {
    box-shadow: inset 0 0 30px rgba(113, 42, 157, 0.2), inset 0 0 60px rgba(63, 128, 249, 0.15), inset 0 0 90px rgba(240, 191, 98, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: inset 0 0 40px rgba(157, 42, 153, 0.3), inset 0 0 80px rgba(63, 128, 249, 0.25), inset 0 0 120px rgba(240, 191, 98, 0.15), inset 0 1px 3px rgba(255, 255, 255, 0.4);
  }
}
/**
 * Oaklet AI Search Dropdown Styles
 * @copyright (c) 2025-2026 Oaklet
 * 
 * Styling for AI search dropdown component including suggestions,
 * recent searches, and AI response sections.
 * 
 * @module styles/components/search/ai-search-dropdown
 */
.ai-search-dropdown {
  width: 100%;
}
.ai-search-dropdown__content {
  max-height: 320px;
  overflow-y: auto;
}
.ai-search-dropdown__content::-webkit-scrollbar {
  width: 6px;
}
.ai-search-dropdown__content::-webkit-scrollbar-track {
  background: transparent;
}
.ai-search-dropdown__content::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
.ai-search-dropdown__content::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
.ai-search-dropdown__content--dark::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}
.ai-search-dropdown__content--dark::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
.ai-search-dropdown__loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  color: #6b7280;
}
.ai-search-dropdown__content--dark .ai-search-dropdown__loading {
  color: rgba(255, 255, 255, 0.8);
}
.ai-search-dropdown__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e5e7eb;
  border-top-color: #6b7280;
  border-radius: 50%;
  animation: ai-dropdown-spin 0.6s linear infinite;
}
.ai-search-dropdown__content--dark .ai-search-dropdown__spinner {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.8);
}
.ai-search-dropdown__loading-text {
  font-size: 14px;
}
.ai-search-dropdown__response {
  margin-bottom: 16px;
}
.ai-search-dropdown__response-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #374151;
}
.ai-search-dropdown__content--dark .ai-search-dropdown__response-header {
  color: rgba(255, 255, 255, 0.9);
}
.ai-search-dropdown__response-title {
  font-size: 14px;
  font-weight: 600;
}
.ai-search-dropdown__response-content {
  font-size: 14px;
  line-height: 1.6;
  padding: 12px;
  background: rgba(249, 250, 251, 0.3);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  color: #4b5563;
  margin-bottom: 12px;
}
.ai-search-dropdown__content--dark .ai-search-dropdown__response-content {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.8);
}
.ai-search-dropdown__view-btn {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #32A293;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.ai-search-dropdown__view-btn:hover {
  background: #eff6ff;
}
.ai-search-dropdown__content--dark .ai-search-dropdown__view-btn {
  color: #60a5fa;
}
.ai-search-dropdown__content--dark .ai-search-dropdown__view-btn:hover {
  background: rgba(96, 165, 250, 0.1);
}
.ai-search-dropdown__suggestions, .ai-search-dropdown__recent {
  margin-bottom: 16px;
}
.ai-search-dropdown__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
  margin-bottom: 8px;
}
.ai-search-dropdown__content--dark .ai-search-dropdown__label {
  color: rgba(255, 255, 255, 0.6);
}
.ai-search-dropdown__suggestion-item, .ai-search-dropdown__recent-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}
.ai-search-dropdown__suggestion-item:hover, .ai-search-dropdown__recent-item:hover {
  background: #f3f4f6;
}
.ai-search-dropdown__suggestion-item--selected, .ai-search-dropdown__recent-item--selected {
  background: #eff6ff;
  color: #1d4ed8;
}
.ai-search-dropdown__content--dark .ai-search-dropdown__suggestion-item, .ai-search-dropdown__content--dark .ai-search-dropdown__recent-item {
  color: rgba(255, 255, 255, 0.8);
}
.ai-search-dropdown__content--dark .ai-search-dropdown__suggestion-item:hover, .ai-search-dropdown__content--dark .ai-search-dropdown__recent-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.ai-search-dropdown__content--dark .ai-search-dropdown__suggestion-item--selected, .ai-search-dropdown__content--dark .ai-search-dropdown__recent-item--selected {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}
.ai-search-dropdown__suggestion-text, .ai-search-dropdown__recent-text {
  flex: 1;
}
.ai-search-dropdown__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.ai-search-dropdown__empty {
  text-align: center;
  padding: 24px 0;
}
.ai-search-dropdown__empty-text {
  font-size: 14px;
  color: #9ca3af;
}
.ai-search-dropdown__content--dark .ai-search-dropdown__empty-text {
  color: rgba(255, 255, 255, 0.6);
}

@keyframes ai-dropdown-spin {
  to {
    transform: rotate(360deg);
  }
}
/**
 * Oaklet Footer Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Nolan W. Platt
 */
.oaklet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 0.8125rem;
  color: #6b7280;
}

.oaklet-footer-links {
  display: flex;
  gap: 1.5rem;
}
.oaklet-footer-links a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}
.oaklet-footer-links a:hover {
  color: #111827;
}

.oaklet-footer-copy {
  color: #9ca3af;
}

.patient-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.patient-sidebar-header {
  flex-shrink: 0;
  padding: 16px 16px 16px 16px;
  border-bottom: 1px solid var(--border-subtle, #e5e7eb);
  position: sticky;
  top: 0;
  z-index: 10;
}

.search-container {
  position: relative;
  margin-bottom: 8px;
}
.search-container .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary, #6b7280);
  pointer-events: none;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--border-subtle, #E5E7EB);
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  background: var(--surface-primary, white);
  color: var(--text-primary, #1f2937);
}
.search-input:focus {
  border-color: var(--primary-500, #2A9D8F);
  box-shadow: 0 0 0 3px var(--primary-100, rgba(42, 157, 143, 0.1));
}
.search-input::placeholder {
  color: var(--text-tertiary, #9CA3AF);
}

.patient-count {
  font-size: 12px;
  color: var(--text-secondary, #6b7280);
  margin-top: 8px;
  padding: 0 2px;
}

.sidebar-actions {
  flex-shrink: 0;
  padding: 16px 16px 16px 16px;
  border-bottom: 1px solid var(--border-subtle, #e5e7eb);
  position: sticky;
  top: 72px;
  z-index: 9;
}

.add-patient-btn {
  width: 100%;
  padding: 12px 16px;
  background: #2A9D8F;
  color: var(--surface-primary, #ffffff);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.add-patient-btn:hover {
  background: #0F766E;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(42, 157, 143, 0.15);
}
.add-patient-btn:active {
  transform: translateY(0);
}

.patient-list-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 24px 24px 24px;
  min-height: 0;
}
.patient-list-container::-webkit-scrollbar {
  width: 6px;
}
.patient-list-container::-webkit-scrollbar-track {
  background: var(--surface-tertiary, #f3f4f6);
  border-radius: 3px;
}
.patient-list-container::-webkit-scrollbar-thumb {
  background: var(--border-subtle, #9CA3AF);
  border-radius: 3px;
}
.patient-list-container::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary, #6b7280);
}
.patient-list-container {
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle, #9CA3AF) var(--surface-tertiary, #f3f4f6);
}

.patient-list {
  height: 100%;
  padding-right: 5px;
}

@media (max-width: 768px) {
  .patient-sidebar-header {
    padding: 16px;
  }
  .patient-list-container {
    padding: 0 16px 16px 16px;
  }
}
.patient-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 5px;
  margin-top: 10px;
}
.patient-list::-webkit-scrollbar {
  width: 6px;
}
.patient-list::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 3px;
}
.patient-list::-webkit-scrollbar-thumb {
  background: #9CA3AF;
  border-radius: 3px;
}
.patient-list::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

.patient-group {
  margin-bottom: 24px;
}

.group-header {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-left: 8px;
}

.patient-card {
  padding: 12px;
  margin: 0 10px 8px;
  background: #F8F9FA;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.patient-card:hover {
  background: #E5E7EB;
}
.patient-card.selected {
  background: #EBF5FF;
  border-color: #2A9D8F;
}

.patient-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.patient-name {
  font-size: 14px;
  font-weight: 420;
  color: #111827;
  margin: 0;
}

.patient-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.patient-status {
  font-size: 18px;
  line-height: 1;
}

.patient-practice-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eff6ff;
  color: #2A9D8F;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.no-patients {
  padding: 40px 20px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #ffffff;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.modal-content.modal-content-large {
  max-width: 70%;
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #6b7280;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #111827;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 24px;
  border-top: 1px solid #E5E7EB;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.modal-footer button {
  width: auto;
  min-width: fit-content;
  max-width: 200px;
}

.modal-tabs {
  display: flex;
  border-bottom: 1px solid #E5E7EB;
  padding: 0 24px;
}

.modal-tab {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-tab:hover {
  color: #111827;
}
.modal-tab.modal-tab-active {
  color: #2A9D8F;
  border-bottom-color: #2A9D8F;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}
.form-group.form-group-full {
  grid-column: 1/-1;
}
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 6px;
}
.form-group label .required {
  color: #dc2626;
  margin-left: 2px;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 8px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #2A9D8F;
}
.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: #9CA3AF;
}

.form-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 20px 0 12px;
  padding-top: 10px;
  border-top: 1px solid #E5E7EB;
}
.form-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.btn-primary {
  padding: 10px 20px;
  background: #3B82F6;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn-primary:hover:not(:disabled) {
  background: #2563EB;
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 10px 20px;
  color: #4b5563;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn-secondary:hover {
  background: #E5E7EB;
}

.error-message {
  padding: 12px;
  background: #FEE2E2;
  color: #dc2626;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
}

.patient-mode-selection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
  margin: 0 -24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}

.mode-panel {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.mode-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(37, 99, 235, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.mode-panel:hover {
  border-color: #2A9D8F;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(59, 130, 246, 0.1), 0 4px 15px -3px rgba(59, 130, 246, 0.05);
}
.mode-panel:hover::before {
  opacity: 1;
}
.mode-panel:hover .mode-panel-icon {
  color: #2A9D8F;
  transform: scale(1.1);
}
.mode-panel.mode-panel-active {
  border-color: #2A9D8F;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 4px 20px -2px rgba(59, 130, 246, 0.15);
}
.mode-panel.mode-panel-active::before {
  opacity: 1;
}
.mode-panel.mode-panel-active .mode-panel-icon {
  color: #2A9D8F;
}
.mode-panel.mode-panel-active .mode-panel-title {
  color: #0F766E;
}
.mode-panel.mode-panel-active .benefit-tag {
  background: rgba(59, 130, 246, 0.1);
  color: #0F766E;
  border-color: rgba(42, 157, 143, 0.2);
}

.mode-panel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #f1f5f9;
  border-radius: 10px;
  margin-bottom: 16px;
  color: #64748b;
  transition: all 0.3s ease;
}

.mode-panel-content {
  position: relative;
  z-index: 1;
}

.mode-panel-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px;
  transition: color 0.3s ease;
}

.mode-panel-description {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 16px;
}

.mode-panel-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.benefit-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .patient-mode-selection {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
    margin: 0 -16px;
  }
  .mode-panel {
    padding: 16px;
  }
  .mode-panel-title {
    font-size: 16px;
  }
  .mode-panel-description {
    font-size: 13px;
  }
}
.alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
}
.alert.alert-error {
  background: #FEE2E2;
  color: #dc2626;
  border: 1px solid #FECACA;
}
.alert.alert-success {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.info-box {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  border-radius: 6px;
  margin-top: 16px;
}
.info-box p {
  margin: 0 0 8px;
  font-weight: 600;
  color: #0F766E;
}
.info-box ul {
  margin: 0;
  padding-left: 16px;
  color: #0F766E;
}
.info-box ul li {
  margin-bottom: 4px;
  font-size: 13px;
}

.form-error {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
}

.form-input.error {
  border-color: #dc2626;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.optional-fields-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
}
.optional-fields-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: #4b5563;
  margin: 0 0 16px;
}

.optional-field-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.optional-field-btn {
  padding: 8px 16px;
  background: #ffffff;
  color: #6b7280;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.optional-field-btn:hover {
  background: #F3F4F6;
  color: #111827;
}
.optional-field-btn.active {
  background: #2A9D8F;
  color: #ffffff;
  border-color: #2A9D8F;
}
.optional-field-btn.active:hover {
  background: #238F7F;
}

/**
 * Oaklet - Patient Pharmacy Search Modal
 * @copyright (c) 2025-2026 Oaklet
 *
 * Styles for the Logicoy pharmacy search modal on the patient Pharmacies tab.
 */
.pharmacy-search-modal {
  width: 90%;
  max-width: 640px;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pharmacy-search-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}
.pharmacy-search-modal__header h2 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.pharmacy-search-modal__close-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.pharmacy-search-modal__close-btn:hover {
  color: #111827;
}
.pharmacy-search-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.pharmacy-search-modal__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.pharmacy-search-modal__form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #111827;
  box-sizing: border-box;
}
.pharmacy-search-modal__form input:focus {
  outline: none;
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.pharmacy-search-modal__form button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #14B8A6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.pharmacy-search-modal__form button:hover:not(:disabled) {
  background: #0D9488;
}
.pharmacy-search-modal__form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.pharmacy-search-modal__results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pharmacy-search-modal__result-item {
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pharmacy-search-modal__result-item:hover {
  border-color: #14B8A6;
  background: rgba(20, 184, 166, 0.1);
}
.pharmacy-search-modal__result-name {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.pharmacy-search-modal__result-address, .pharmacy-search-modal__result-phone {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}
.pharmacy-search-modal__result-type {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #f3f4f6;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  color: #6b7280;
}
.pharmacy-search-modal__empty {
  text-align: center;
  padding: 24px;
  color: #6b7280;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.documents-tab {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 20px;
}

.documents-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #E5E7EB;
}

.documents-tab-title h3 {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}
.documents-tab-title .documents-tab-subtitle {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.view-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}
.view-toggle-btn:hover {
  background: #F5F5F9;
  color: #111827;
}
.view-toggle-btn.active {
  background: #2A9D8F;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(42, 157, 143, 0.2);
}

.documents-tab-content {
  flex: 1;
  overflow: hidden;
}

.patient-documents-view {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.documents-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: #DC2626;
}
.documents-error svg {
  margin-bottom: 16px;
}
.documents-error h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}
.documents-error p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.folder-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  gap: 12px;
}
.folder-loading svg {
  color: #2A9D8F;
}
.folder-loading span {
  font-size: 13px;
  color: #6b7280;
}

.spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.documents-viewer-panel {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  height: calc(100vh - 350px);
  min-height: 500px;
  max-height: 800px;
}
.documents-viewer-panel .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #E5E7EB;
  background: #ffffff;
  flex-shrink: 0;
}
.documents-viewer-panel .panel-header svg {
  color: #2A9D8F;
}
.documents-viewer-panel .panel-header .btn-upload-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #2A9D8F;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.documents-viewer-panel .panel-header .btn-upload-header:hover {
  background: #0F766E;
}

.panel-content-split {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.folder-tree {
  flex: 0 0 280px;
  border-right: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.folder-tree .folder-tree-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #E5E7EB;
  background: #ffffff;
  flex-shrink: 0;
}
.folder-tree .folder-tree-header svg {
  color: #2A9D8F;
}
.folder-tree .folder-tree-header span {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}
.folder-tree .folder-list {
  padding: 8px;
  overflow-y: auto;
  flex: 1;
}
.folder-tree .folder-item {
  margin-bottom: 4px;
}
.folder-tree .folder-item .folder-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}
.folder-tree .folder-item .folder-header:hover {
  background: #F5F5F9;
}
.folder-tree .folder-item .folder-header.selected {
  background: rgba(42, 157, 143, 0.1);
}
.folder-tree .folder-item .folder-header svg {
  flex-shrink: 0;
  color: #6b7280;
}
.folder-tree .folder-item .folder-header .folder-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
}
.folder-tree .folder-item .folder-header .folder-count {
  font-size: 11px;
  color: #6b7280;
}
.folder-tree .folder-item .folder-files {
  margin-left: 24px;
  margin-top: 4px;
}
.folder-tree .folder-item .folder-files .file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}
.folder-tree .folder-item .folder-files .file-item:hover {
  background: #F5F5F9;
}
.folder-tree .folder-item .folder-files .file-item.selected {
  background: rgba(42, 157, 143, 0.15);
  border-left: 2px solid #2A9D8F;
}
.folder-tree .folder-item .folder-files .file-item svg {
  flex-shrink: 0;
  color: #6b7280;
}
.folder-tree .folder-item .folder-files .file-item .file-name {
  flex: 1;
  font-size: 12px;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.document-viewer {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.document-viewer .document-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid #E5E7EB;
  background: #ffffff;
  gap: 8px;
  flex-shrink: 0;
}
.document-viewer .document-viewer-header .document-title-section {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.document-viewer .document-viewer-header .document-title-section svg {
  flex-shrink: 0;
  color: #2A9D8F;
}
.document-viewer .document-viewer-header .document-title-section .document-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.document-viewer .document-viewer-header .document-actions-header {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.document-viewer .document-viewer-header .action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #ffffff;
  color: #6b7280;
  border: 1px solid #E5E7EB;
  cursor: pointer;
  transition: all 0.2s;
}
.document-viewer .document-viewer-header .action-btn:hover:not(:disabled) {
  background: #F5F5F9;
  color: #111827;
}
.document-viewer .document-viewer-header .action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.document-viewer .document-viewer-header .action-btn.delete-btn:hover:not(:disabled) {
  background: #EF4444;
  border-color: #DC2626;
  color: white;
}
.document-viewer .document-viewer-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}
.document-viewer .document-viewer-content .document-preview-section-fullscreen {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.document-viewer .document-viewer-content .document-preview-section-fullscreen .document-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  height: 100%;
}
.document-viewer .document-viewer-content .document-preview-section-fullscreen .document-preview .document-preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.document-viewer .document-viewer-content .document-preview-section-fullscreen .document-preview .document-preview-image-container {
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #F9FAFB;
  height: 100%;
  width: 100%;
}
.document-viewer .document-viewer-content .document-preview-section-fullscreen .document-preview .document-preview-image-container .document-preview-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.document-viewer .document-viewer-content .document-preview-section-fullscreen .document-preview .document-preview-text-container {
  padding: 16px;
  background: #F9FAFB;
  height: 100%;
  width: 100%;
  overflow: auto;
}
.document-viewer .document-viewer-content .document-preview-section-fullscreen .document-preview .document-preview-text-container .document-preview-text {
  margin: 0;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #111827;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.document-viewer .document-viewer-content .document-preview-section-fullscreen .document-preview .document-preview-text-container .document-preview-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: #6b7280;
}
.document-viewer .document-viewer-content .document-preview-section-fullscreen .document-preview .document-preview-text-container .document-preview-loading svg {
  animation: spin 1s linear infinite;
}
.document-viewer .document-viewer-content .document-preview-section-fullscreen .document-preview .document-preview-text-container .document-preview-loading p {
  margin: 0;
  font-size: 14px;
}
.document-viewer .document-viewer-content .document-preview-section-fullscreen .document-preview .document-preview-unsupported {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  text-align: center;
  gap: 12px;
}
.document-viewer .document-viewer-content .document-preview-section-fullscreen .document-preview .document-preview-unsupported svg {
  color: #6b7280;
  opacity: 0.7;
}
.document-viewer .document-viewer-content .document-preview-section-fullscreen .document-preview .document-preview-unsupported h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}
.document-viewer .document-viewer-content .document-preview-section-fullscreen .document-preview .document-preview-unsupported p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  max-width: 400px;
}
.document-viewer .document-viewer-content .document-preview-section-fullscreen .document-preview .document-preview-unsupported .preview-hint {
  font-size: 12px;
  color: #9CA3AF;
  font-style: italic;
}
.document-viewer .document-viewer-content .document-preview-section-fullscreen .document-preview .document-preview-unsupported .preview-hint code {
  background: #F5F5F9;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11px;
}
.document-viewer .document-viewer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 48px;
  text-align: center;
}
.document-viewer .document-viewer-empty .empty-icon {
  color: #6b7280;
  margin-bottom: 16px;
  opacity: 0.5;
}
.document-viewer .document-viewer-empty h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}
.document-viewer .document-viewer-empty p {
  font-size: 14px;
  color: #6b7280;
  max-width: 300px;
}

.form-builder-view {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.templates-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.templates-header h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}
.templates-header p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.template-card {
  padding: 20px;
  background: #ffffff;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.template-card:hover {
  border-color: #2A9D8F;
  box-shadow: 0 4px 12px rgba(42, 157, 143, 0.1);
}
.template-card.create-new {
  border-style: dashed;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.template-card.create-new .template-icon {
  background: #2A9D8F;
  color: #ffffff;
}
.template-card.create-new:hover {
  background: rgba(42, 157, 143, 0.05);
}

.template-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EBF5FF;
  border-radius: 12px;
  color: #2A9D8F;
}

.template-info h5 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}
.template-info p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.template-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
}

.template-category {
  padding: 4px 10px;
  background: rgba(42, 157, 143, 0.1);
  color: #2A9D8F;
  border-radius: 6px;
  font-weight: 500;
}

.template-fields {
  color: #6b7280;
}

.builder-view {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  height: 100%;
}

.builder-sidebar {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px;
  overflow-y: auto;
}

.builder-sidebar-section h5 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.field-types-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-type-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 13px;
  color: #111827;
  cursor: pointer;
  transition: all 0.2s;
}
.field-type-btn:hover {
  background: rgba(42, 157, 143, 0.05);
  border-color: #2A9D8F;
  color: #2A9D8F;
}
.field-type-btn svg {
  flex-shrink: 0;
}

.builder-canvas {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
}

.builder-canvas-header {
  padding: 16px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.form-title-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  outline: none;
}
.form-title-input:focus {
  border-color: #2A9D8F;
}

.builder-actions {
  display: flex;
  gap: 8px;
}

.builder-canvas-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.form-field-builder {
  padding: 16px;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  transition: all 0.2s;
}
.form-field-builder:hover {
  border-color: #2A9D8F;
  box-shadow: 0 2px 8px rgba(42, 157, 143, 0.1);
}

.form-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.field-label-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  outline: none;
}
.field-label-input:focus {
  border-color: #2A9D8F;
}

.form-field-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-required-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
}
.field-required-toggle input[type=checkbox] {
  cursor: pointer;
}

.form-field-preview input,
.form-field-preview textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #F9FAFB;
}
.form-field-preview input::placeholder,
.form-field-preview textarea::placeholder {
  color: #9CA3AF;
}
.form-field-preview textarea {
  min-height: 80px;
  resize: vertical;
}

.checkbox-preview,
.radio-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #111827;
}

.builder-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #6b7280;
}
.builder-empty svg {
  margin-bottom: 16px;
  opacity: 0.5;
}
.builder-empty h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 500;
  color: #111827;
}
.builder-empty p {
  margin: 0;
  font-size: 14px;
}

.preview-view {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 20px;
}
.preview-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.preview-actions {
  display: flex;
  gap: 8px;
}

.preview-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #F9FAFB;
  border-radius: 12px;
}

.preview-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
}

.preview-form-title {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 600;
  color: #111827;
}

.preview-form-subtitle {
  margin: 0 0 32px 0;
  font-size: 14px;
  color: #6b7280;
}

.preview-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.preview-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}
.preview-field label .required-star {
  color: #DC2626;
  margin-left: 4px;
}
.preview-field input,
.preview-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.preview-field input:focus,
.preview-field textarea:focus {
  border-color: #2A9D8F;
}
.preview-field input::placeholder,
.preview-field textarea::placeholder {
  color: #9CA3AF;
}
.preview-field textarea {
  min-height: 100px;
  resize: vertical;
}

.preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #6b7280;
}
.preview-empty svg {
  margin-bottom: 16px;
  opacity: 0.5;
}
.preview-empty p {
  margin: 0;
  font-size: 14px;
}

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ffffff;
  color: #111827;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: #F5F5F9;
}
.btn-secondary svg {
  flex-shrink: 0;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #2A9D8F;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover:not(:disabled) {
  background: #0F766E;
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}
.btn-primary.btn-small svg {
  flex-shrink: 0;
}

.btn-secondary.btn-small,
.btn-primary.btn-small {
  min-width: 0;
}
.btn-secondary.btn-small span,
.btn-primary.btn-small span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-library-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.form-library-title h4 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}
.form-library-title p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.form-library-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}
.form-library-controls .search-input-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.form-library-controls .search-input-container svg {
  position: absolute;
  left: 12px;
  color: #6b7280;
}
.form-library-controls .search-input-container .search-input {
  width: 100%;
  padding: 10px 12px 10px 40px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.form-library-controls .search-input-container .search-input:focus {
  border-color: #2A9D8F;
}
.form-library-controls .filter-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-library-controls .filter-controls svg {
  color: #6b7280;
}
.form-library-controls .filter-controls .filter-select {
  padding: 10px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}
.form-library-controls .filter-controls .filter-select:focus {
  border-color: #2A9D8F;
}

.form-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  max-width: 100%;
}

.form-library-card {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.2s;
  min-width: 0;
}
.form-library-card:hover {
  border-color: #2A9D8F;
  box-shadow: 0 4px 12px rgba(42, 157, 143, 0.1);
}

.form-library-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-library-card-icon {
  width: 40px;
  height: 40px;
  background: rgba(42, 157, 143, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2A9D8F;
}

.form-library-card-status {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.form-library-card-status.form-status-active {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}
.form-library-card-status.form-status-draft {
  background: rgba(107, 114, 128, 0.1);
  color: #6B7280;
}
.form-library-card-status.form-status-inactive {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
}
.form-library-card-status.form-status-archived {
  background: rgba(107, 114, 128, 0.1);
  color: #6B7280;
}

.form-library-card-body {
  flex: 1;
}

.form-library-card-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.form-library-card-description {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.form-library-card-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6b7280;
}
.form-library-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-library-card-type {
  padding: 2px 8px;
  background: rgba(42, 157, 143, 0.1);
  color: #2A9D8F;
  border-radius: 4px;
  font-weight: 500;
}

.form-library-card-questions {
  color: #6b7280;
}

.form-library-card-actions {
  display: flex;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid #E5E7EB;
  flex-wrap: wrap;
}
.form-library-card-actions button {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}
.form-library-card-actions button span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.loading-state,
.error-state,
.empty-state,
.success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 16px;
}
.loading-state svg,
.error-state svg,
.empty-state svg,
.success-state svg {
  color: #6b7280;
}
.loading-state h4,
.error-state h4,
.empty-state h4,
.success-state h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}
.loading-state p,
.error-state p,
.empty-state p,
.success-state p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.error-state svg {
  color: #EF4444;
}

.success-state svg {
  color: #10B981;
}

.patient-assigned-forms-view {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.assigned-forms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E5E7EB;
}

.assigned-forms-title h4 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}
.assigned-forms-title p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.assigned-forms-stats {
  display: flex;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-item .stat-value {
  font-size: 24px;
  font-weight: 600;
  color: #111827;
}
.stat-item .stat-label {
  font-size: 12px;
  color: #6b7280;
}

.assigned-forms-controls {
  margin-bottom: 20px;
}

.filter-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  background: #F5F5F9;
}
.filter-btn.active {
  background: #2A9D8F;
  color: #ffffff;
  border-color: #2A9D8F;
}

.assigned-forms-table {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
}
.assigned-forms-table table {
  width: 100%;
  border-collapse: collapse;
}
.assigned-forms-table table thead {
  background: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
}
.assigned-forms-table table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
}
.assigned-forms-table table tbody tr {
  border-bottom: 1px solid #E5E7EB;
}
.assigned-forms-table table tbody tr:last-child {
  border-bottom: none;
}
.assigned-forms-table table tbody tr:hover {
  background: #F9FAFB;
}
.assigned-forms-table table tbody tr td {
  padding: 16px;
  font-size: 14px;
  color: #111827;
}

.form-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-name-cell svg {
  color: #2A9D8F;
  flex-shrink: 0;
}
.form-name-cell .form-name {
  font-weight: 500;
  color: #111827;
}
.form-name-cell .form-type {
  font-size: 12px;
  color: #6b7280;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}

.date-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.date-cell svg {
  flex-shrink: 0;
  color: #6b7280;
}
.date-cell.overdue {
  color: #EF4444;
}
.date-cell.overdue svg {
  color: #EF4444;
}
.date-cell .days-remaining {
  font-size: 11px;
  color: #6b7280;
}
.date-cell .overdue-label {
  font-size: 11px;
  color: #EF4444;
  font-weight: 600;
}

.priority-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.action-buttons {
  display: flex;
  gap: 8px;
}
.action-buttons .action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #ffffff;
  color: #6b7280;
  border: 1px solid #E5E7EB;
  cursor: pointer;
  transition: all 0.2s;
}
.action-buttons .action-btn:hover:not(:disabled) {
  background: #F5F5F9;
  color: #2A9D8F;
  border-color: #2A9D8F;
}
.action-buttons .action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.text-muted {
  color: #6b7280;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #ffffff;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px;
  border-bottom: 1px solid #E5E7EB;
}
.modal-header h3 {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}
.modal-header .modal-subtitle {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
}
.modal-close-btn:hover:not(:disabled) {
  background: #F5F5F9;
  color: #111827;
}
.modal-close-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #E5E7EB;
}

.error-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #EF4444;
  border-radius: 8px;
  color: #DC2626;
  font-size: 14px;
  margin-bottom: 16px;
}

.success-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
}
.success-message svg {
  color: #10B981;
}
.success-message h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}
.success-message p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.form-preview-card {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.form-preview-header h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}
.form-preview-header p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.form-preview-meta {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: #6b7280;
}

.form-type-badge {
  padding: 2px 8px;
  background: rgba(42, 157, 143, 0.1);
  color: #2A9D8F;
  border-radius: 4px;
  font-weight: 500;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}
.form-group label svg {
  color: #6b7280;
}
.form-group .form-input,
.form-group .form-select,
.form-group .form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.form-group .form-input:focus,
.form-group .form-select:focus,
.form-group .form-textarea:focus {
  border-color: #2A9D8F;
}
.form-group .form-input.error,
.form-group .form-select.error,
.form-group .form-textarea.error {
  border-color: #EF4444;
}
.form-group .form-textarea {
  resize: vertical;
  min-height: 100px;
}
.form-group .form-help-text {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}
.form-group .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: normal;
  cursor: pointer;
}
.form-group .checkbox-label input[type=checkbox] {
  cursor: pointer;
}

.signature-capture {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signature-capture-canvas-container {
  position: relative;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  background: #ffffff;
}

.signature-capture-canvas {
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.signature-capture-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: #6b7280;
  pointer-events: none;
}

.signature-capture-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.signature-capture-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.signature-capture-btn.signature-capture-btn-clear {
  background: #ffffff;
  color: #6b7280;
  border: 1px solid #E5E7EB;
}
.signature-capture-btn.signature-capture-btn-clear:hover:not(:disabled) {
  background: #F5F5F9;
}
.signature-capture-btn.signature-capture-btn-clear:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.signature-capture-btn.signature-capture-btn-save {
  background: #2A9D8F;
  color: #ffffff;
  border: none;
}
.signature-capture-btn.signature-capture-btn-save:hover:not(:disabled) {
  background: #0F766E;
}
.signature-capture-btn.signature-capture-btn-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.signature-display {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 16px;
}

.signature-display-image-container {
  position: relative;
  display: inline-block;
}

.signature-display-image {
  max-width: 100%;
  height: auto;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
}

.signature-display-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: #EF4444;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.signature-display-remove:hover {
  background: #DC2626;
}

.patient-form-filling-view {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.form-filling-header {
  margin-bottom: 24px;
}

.form-filling-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.form-filling-title svg {
  color: #2A9D8F;
  flex-shrink: 0;
}
.form-filling-title h3 {
  margin: 0 0 4px 0;
  font-size: 24px;
  font-weight: 600;
  color: #111827;
}
.form-filling-title p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.form-instructions {
  padding: 12px;
  background: rgba(42, 157, 143, 0.05);
  border-left: 3px solid #2A9D8F;
  border-radius: 4px;
  font-size: 14px;
  color: #111827;
}
.form-instructions strong {
  color: #2A9D8F;
}

.form-progress {
  margin-bottom: 32px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #E5E7EB;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar .progress-fill {
  height: 100%;
  background: #2A9D8F;
  transition: width 0.3s;
}

.progress-text {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}

.form-filling-content {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 16px;
}

.form-question {
  margin-bottom: 32px;
}

.form-question-label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}
.form-question-label .required-star {
  color: #DC2626;
  margin-left: 4px;
}

.form-question-description {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.form-question-followup {
  margin: 4px 0 8px 28px;
}
.form-question-followup__label {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

.form-input-with-suffix {
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-input-with-suffix .form-input {
  max-width: 200px;
}

.form-input-suffix {
  font-size: 14px;
  color: #6b7280;
}

.form-height-group {
  display: flex;
  gap: 16px;
}

.form-height-unit {
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-height-unit .form-input {
  width: 80px;
}
.form-height-unit span {
  font-size: 14px;
  color: #6b7280;
}

.form-question-content .checkbox-group,
.form-question-content .radio-group,
.form-question .checkbox-group,
.form-question .radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-question-content .checkbox-group .checkbox-label,
.form-question-content .checkbox-group .radio-label,
.form-question-content .radio-group .checkbox-label,
.form-question-content .radio-group .radio-label,
.form-question .checkbox-group .checkbox-label,
.form-question .checkbox-group .radio-label,
.form-question .radio-group .checkbox-label,
.form-question .radio-group .radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.form-question-content .checkbox-group .checkbox-label:hover,
.form-question-content .checkbox-group .radio-label:hover,
.form-question-content .radio-group .checkbox-label:hover,
.form-question-content .radio-group .radio-label:hover,
.form-question .checkbox-group .checkbox-label:hover,
.form-question .checkbox-group .radio-label:hover,
.form-question .radio-group .checkbox-label:hover,
.form-question .radio-group .radio-label:hover {
  background: #F9FAFB;
}
.form-question-content .checkbox-group .checkbox-label input,
.form-question-content .checkbox-group .radio-label input,
.form-question-content .radio-group .checkbox-label input,
.form-question-content .radio-group .radio-label input,
.form-question .checkbox-group .checkbox-label input,
.form-question .checkbox-group .radio-label input,
.form-question .radio-group .checkbox-label input,
.form-question .radio-group .radio-label input {
  cursor: pointer;
}
.form-question-content .checkbox-group .checkbox-label span,
.form-question-content .checkbox-group .radio-label span,
.form-question-content .radio-group .checkbox-label span,
.form-question-content .radio-group .radio-label span,
.form-question .checkbox-group .checkbox-label span,
.form-question .checkbox-group .radio-label span,
.form-question .radio-group .checkbox-label span,
.form-question .radio-group .radio-label span {
  font-size: 14px;
  color: #111827;
}

.validation-error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: #DC2626;
}

.form-filling-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
}

.form-filling-footer {
  text-align: center;
}
.form-filling-footer .btn-text {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}
.form-filling-footer .btn-text:hover {
  color: #2A9D8F;
}

.patient-details {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.patient-details-header {
  padding: 0 0 10px 0;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background: #ffffff;
  gap: 12px;
}
.patient-details-header .patient-details-title {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.patient-details-header .patient-details-title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #111827;
}
.patient-details-header .patient-details-title .patient-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}
.patient-details-header .patient-details-actions {
  display: flex;
  gap: 12px;
}
.patient-details-header .patient-details-actions .patient-details-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 50px;
  flex: 0 1 auto;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.patient-details-header .patient-details-actions .patient-details-tabs::-webkit-scrollbar {
  display: none;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}
.status-badge.status-active {
  background: #D1FAE5;
  color: #065F46;
}
.status-badge.status-inactive {
  background: #FEE2E2;
  color: #991B1B;
}
.status-badge.status-pending {
  background: #FEF3C7;
  color: #92400E;
}
.status-badge.status-discharged {
  background: #E5E7EB;
  color: #4B5563;
}

.practice-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  background: #EFF6FF;
  color: #2A9D8F;
}

.error-banner {
  padding: 12px 24px;
  background: #FEE2E2;
  color: #dc2626;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.patient-details-header .patient-details-tabs .tab {
  position: relative;
  padding: 7px 11px;
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 50px;
  white-space: nowrap;
}
.patient-details-header .patient-details-tabs .tab svg {
  flex-shrink: 0;
}
.patient-details-header .patient-details-tabs .tab:hover:not(.tab-active) {
  color: #111827;
  background: #F5F5F9;
}
.patient-details-header .patient-details-tabs .tab.tab-active {
  color: #ffffff;
  background: #2A9D8F;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(42, 157, 143, 0.25);
}
.patient-details-header .patient-details-tabs .tab.tab-active svg {
  color: #ffffff;
}

.patient-details-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.overview-section,
.clinical-section,
.appointments-section,
.pharmacies-section,
.notes-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pharmacies-section .pharmacies-error {
  color: #b42318;
  font-size: 13px;
  margin: 0;
}

.section-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.section-actions .section-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-actions .btn-icon {
  margin-left: auto;
}

.section-delete-action {
  display: flex;
  justify-content: center;
  padding: 32px 20px 20px;
  margin-top: 12px;
  border-top: 1px solid #E5E7EB;
}

.info-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #E5E7EB;
  transition: border-color 0.2s ease;
}
.info-card:hover {
  border-color: #D1D5DB;
}
.info-card .info-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.info-card .info-card-title {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-card .info-card-header .info-card-title {
  margin-bottom: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}
.info-grid .info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.info-grid .info-item.info-item-full {
  grid-column: 1/-1;
}
.info-grid .info-item label {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.info-grid .info-item span {
  font-size: 14px;
  color: #111827;
}
.info-grid .info-item input,
.info-grid .info-item select,
.info-grid .info-item textarea {
  padding: 8px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
  background: #ffffff;
}
.info-grid .info-item input:hover:not(:focus),
.info-grid .info-item select:hover:not(:focus),
.info-grid .info-item textarea:hover:not(:focus) {
  border-color: #32A293;
  background: rgba(50, 162, 147, 0.02);
}
.info-grid .info-item input:focus,
.info-grid .info-item select:focus,
.info-grid .info-item textarea:focus {
  border-color: #2A9D8F;
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
  background: #ffffff;
}
.info-grid .info-item input::placeholder,
.info-grid .info-item select::placeholder,
.info-grid .info-item textarea::placeholder {
  color: #9CA3AF;
}
.info-grid .info-item textarea {
  resize: vertical;
  min-height: 60px;
}

.info-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #2A9D8F;
  cursor: pointer;
}
.info-link:hover {
  text-decoration: underline;
}

.no-data {
  color: #6b7280;
  font-size: 14px;
  font-style: italic;
  margin: 0;
  padding: 12px;
  text-align: center;
  background: #FAFAFA;
  border-radius: 6px;
}

.notes-text {
  font-size: 14px;
  line-height: 1.6;
  color: #111827;
  white-space: pre-wrap;
  margin: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-list .tag {
  padding: 4px 10px;
  background: #EBF5FF;
  color: #2A9D8F;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.list-styled {
  margin: 0;
  padding-left: 20px;
}
.list-styled li {
  margin-bottom: 6px;
  color: #111827;
  font-size: 14px;
}
.list-styled li.allergy-item {
  color: #dc2626;
  font-weight: 500;
}

.patient-details .btn-icon,
.patient-details-header .btn-icon,
.info-card .btn-icon,
.info-card-header .btn-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #ffffff;
  color: #111827;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  width: auto;
}
.patient-details .btn-icon:hover,
.patient-details-header .btn-icon:hover,
.info-card .btn-icon:hover,
.info-card-header .btn-icon:hover {
  background: #F5F5F9;
}
.patient-details .btn-icon.btn-delete,
.patient-details-header .btn-icon.btn-delete,
.info-card .btn-icon.btn-delete,
.info-card-header .btn-icon.btn-delete {
  color: #dc2626;
}
.patient-details .btn-icon.btn-delete:hover,
.patient-details-header .btn-icon.btn-delete:hover,
.info-card .btn-icon.btn-delete:hover,
.info-card-header .btn-icon.btn-delete:hover {
  background: #FEE2E2;
  border-color: #dc2626;
}
.patient-details .btn-icon.btn-eprescribe,
.patient-details-header .btn-icon.btn-eprescribe,
.info-card .btn-icon.btn-eprescribe,
.info-card-header .btn-icon.btn-eprescribe {
  background: #2A9D8F;
  color: #ffffff;
  border-color: #2A9D8F;
}
.patient-details .btn-icon.btn-eprescribe:hover,
.patient-details-header .btn-icon.btn-eprescribe:hover,
.info-card .btn-icon.btn-eprescribe:hover,
.info-card-header .btn-icon.btn-eprescribe:hover {
  background: #0F766E;
  border-color: #0F766E;
}

.btn-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-action.btn-primary {
  background: #2A9D8F;
  color: #ffffff;
}
.btn-action.btn-primary:hover:not(:disabled) {
  background: #0F766E;
}
.btn-action.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-action.btn-secondary {
  background: #E5E7EB;
  color: #111827;
  width: 40%;
}
.btn-action.btn-secondary:hover {
  background: #D1D5DB;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #2A9D8F;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover:not(:disabled) {
  background: #0F766E;
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-danger {
  padding: 10px 20px;
  background: #DC2626;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-danger:hover:not(:disabled) {
  background: #B91C1C;
}
.btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 20px 0 12px;
  padding-top: 10px;
  border-top: 1px solid #E5E7EB;
}
.form-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 8px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
  background: #ffffff;
  width: 100%;
}
.form-group input:hover:not(:focus),
.form-group select:hover:not(:focus),
.form-group textarea:hover:not(:focus) {
  border-color: #32A293;
  background: rgba(50, 162, 147, 0.02);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #2A9D8F;
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
  background: #ffffff;
}
.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: #9CA3AF;
}

.delete-warning {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #FEE2E2;
  border-radius: 6px;
  margin-bottom: 20px;
  color: #991B1B;
}
.delete-warning svg {
  color: #dc2626;
}
.delete-warning p {
  margin: 0;
  font-size: 14px;
}

.delete-confirm-name {
  font-weight: 600;
  color: #111827;
  margin: 8px 0 12px;
  padding: 8px 12px;
  background: #F5F5F9;
  border-radius: 6px;
}

.messages-tab {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 480px;
  background: #ffffff;
}
.messages-tab__thread {
  flex: 1;
  overflow-y: auto;
  padding: 16px 4px;
  min-height: 0;
}
.messages-tab__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.messages-tab__message {
  display: flex;
  width: 100%;
}
.messages-tab__message--mine {
  justify-content: flex-end;
}
.messages-tab__message--mine .messages-tab__bubble {
  background: #14B8A6;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}
.messages-tab__message--mine .messages-tab__sender,
.messages-tab__message--mine .messages-tab__time {
  color: rgba(255, 255, 255, 0.85);
}
.messages-tab__message--theirs {
  justify-content: flex-start;
}
.messages-tab__message--theirs .messages-tab__bubble {
  background: #f3f4f6;
  color: #111827;
  border-bottom-left-radius: 4px;
}
.messages-tab__bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  word-break: break-word;
}
.messages-tab__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.messages-tab__sender {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
}
.messages-tab__time {
  font-size: 11px;
  color: #6b7280;
  flex-shrink: 0;
}
.messages-tab__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.messages-tab__loading, .messages-tab__empty, .messages-tab__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 240px;
  color: #6b7280;
  gap: 8px;
}
.messages-tab__loading h4, .messages-tab__empty h4, .messages-tab__error h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}
.messages-tab__loading p, .messages-tab__empty p, .messages-tab__error p {
  margin: 0;
  font-size: 14px;
}
.messages-tab__empty-icon {
  color: #D1D5DB;
  margin-bottom: 4px;
}
.messages-tab__send-error {
  padding: 8px 12px;
  margin: 0 0 8px 0;
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
  border-radius: 6px;
  font-size: 13px;
  flex-shrink: 0;
}
.messages-tab__composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #E5E7EB;
  flex-shrink: 0;
}
.messages-tab__textarea {
  flex: 1;
  resize: none;
  padding: 10px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  outline: none;
  transition: all 0.2s;
  background: #ffffff;
}
.messages-tab__textarea:hover:not(:focus):not(:disabled) {
  border-color: #14B8A6;
}
.messages-tab__textarea:focus {
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.messages-tab__textarea::placeholder {
  color: #9CA3AF;
}
.messages-tab__textarea:disabled {
  background: #f3f4f6;
  cursor: not-allowed;
}
.messages-tab__send {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #14B8A6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.messages-tab__send:hover:not(:disabled) {
  background: #0D9488;
}
.messages-tab__send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/**
 * Oaklet - Invoice Modal Styles
 * @copyright (c) 2025-2026 Oaklet
 *
 * Styles for the invoice modals (create/edit, refund, delete).
 * Shared by CreateInvoiceModal, RefundInvoiceModal and DeleteInvoiceModal.
 * All rules are scoped under .create-invoice-modal so nothing leaks into
 * the rest of the app. Buttons use the shared .billing-btn primitives.
 *
 * @module presentation/components/billing/invoices
 */
.create-invoice-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.create-invoice-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
}
.create-invoice-modal__content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.create-invoice-modal__content--narrow {
  max-width: 560px;
}
.create-invoice-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}
.create-invoice-modal__header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.create-invoice-modal__header h2 svg {
  color: #9ca3af;
  flex-shrink: 0;
}
.create-invoice-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.create-invoice-modal__close:hover {
  background: #f3f4f6;
  color: #374151;
}
.create-invoice-modal__form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.create-invoice-modal__body {
  flex: 1;
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
}
.create-invoice-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #f3f4f6;
  flex-shrink: 0;
}
.create-invoice-modal .form-group {
  margin-bottom: 18px;
}
.create-invoice-modal .form-group:last-child {
  margin-bottom: 0;
}
.create-invoice-modal .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.create-invoice-modal .form-group input,
.create-invoice-modal .form-group select,
.create-invoice-modal .form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: all 0.15s ease;
}
.create-invoice-modal .form-group input::placeholder,
.create-invoice-modal .form-group select::placeholder,
.create-invoice-modal .form-group textarea::placeholder {
  color: #9ca3af;
}
.create-invoice-modal .form-group input:focus,
.create-invoice-modal .form-group select:focus,
.create-invoice-modal .form-group textarea:focus {
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.create-invoice-modal .form-group input:disabled,
.create-invoice-modal .form-group select:disabled,
.create-invoice-modal .form-group textarea:disabled {
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}
.create-invoice-modal .form-group input.error,
.create-invoice-modal .form-group select.error,
.create-invoice-modal .form-group textarea.error {
  border-color: #dc2626;
}
.create-invoice-modal .form-group input.error:focus,
.create-invoice-modal .form-group select.error:focus,
.create-invoice-modal .form-group textarea.error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.create-invoice-modal .form-group select {
  cursor: pointer;
}
.create-invoice-modal .form-group textarea {
  resize: vertical;
  min-height: 72px;
}
.create-invoice-modal .form-help {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #6b7280;
}
.create-invoice-modal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.create-invoice-modal .form-section {
  margin-bottom: 20px;
}
.create-invoice-modal .form-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.create-invoice-modal .form-section__header h3 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}
.create-invoice-modal .form-section > .error-message {
  margin: 0 0 10px;
}
.create-invoice-modal .line-items {
  margin-bottom: 14px;
}
.create-invoice-modal .line-item {
  display: grid;
  grid-template-columns: 2fr 60px 90px 90px 32px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.create-invoice-modal .line-item:last-child {
  margin-bottom: 0;
}
.create-invoice-modal .line-item input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: all 0.15s ease;
}
.create-invoice-modal .line-item input::placeholder {
  color: #9ca3af;
}
.create-invoice-modal .line-item input:focus {
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.create-invoice-modal .line-item__quantity {
  text-align: center;
}
.create-invoice-modal .line-item__rate {
  text-align: right;
}
.create-invoice-modal .line-item__total {
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  font-variant-numeric: tabular-nums;
}
.create-invoice-modal .line-item__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s ease;
}
.create-invoice-modal .line-item__remove:hover {
  background: #fef3f2;
  color: #dc2626;
}
.create-invoice-modal .invoice-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 10px;
}
.create-invoice-modal .invoice-total span {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}
.create-invoice-modal .invoice-total strong {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  font-variant-numeric: tabular-nums;
}
.create-invoice-modal .error-message {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #dc2626;
}
.create-invoice-modal .invoice-total + .error-message {
  margin-top: 8px;
}
.create-invoice-modal .billing-error-banner {
  margin-bottom: 16px;
}
.create-invoice-modal .invoice-summary-box {
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: 10px;
  margin-bottom: 16px;
}
.create-invoice-modal .invoice-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.create-invoice-modal .invoice-summary-row:not(:last-child) {
  margin-bottom: 10px;
}
.create-invoice-modal .invoice-summary-row .label {
  font-size: 13px;
  color: #6b7280;
}
.create-invoice-modal .invoice-summary-row .value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.create-invoice-modal .checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.create-invoice-modal .checkbox-wrapper input[type=checkbox] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #14B8A6;
  box-shadow: none;
}
.create-invoice-modal .checkbox-wrapper label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
}
.create-invoice-modal .refund-amount-display {
  padding: 12px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.create-invoice-modal .invoice-delete-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.create-invoice-modal .invoice-delete-warning__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fee2e2;
  color: #991b1b;
  flex-shrink: 0;
}
.create-invoice-modal .invoice-delete-warning__title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 3px;
}
.create-invoice-modal .invoice-delete-warning__text {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 640px) {
  .create-invoice-modal {
    padding: 0;
  }
  .create-invoice-modal__content {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  .create-invoice-modal .form-row {
    grid-template-columns: 1fr;
  }
  .create-invoice-modal .line-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .create-invoice-modal .line-item__total {
    text-align: left;
  }
  .create-invoice-modal .line-item__remove {
    width: 100%;
    margin-top: 4px;
  }
}
/**
 * Oaklet - Create Superbill Modal Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Nolan W. Platt
 *
 * Styles for the create superbill modal component. All form styles are
 * scoped under .create-superbill-modal so nothing leaks globally; the
 * footer/section buttons use the shared .billing-btn / .billing-icon-btn
 * classes.
 *
 * @module presentation/components/billing/superbills
 */
.create-superbill-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.create-superbill-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
}
.create-superbill-modal__content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.create-superbill-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #f3f4f6;
}
.create-superbill-modal__header h2 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.create-superbill-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.create-superbill-modal__close:hover {
  background: #f3f4f6;
  color: #374151;
}
.create-superbill-modal__form {
  padding: 24px;
}
.create-superbill-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  margin: 24px -24px -24px;
  border-top: 1px solid #f3f4f6;
}
.create-superbill-modal input[type=text],
.create-superbill-modal input[type=number],
.create-superbill-modal input[type=date],
.create-superbill-modal select,
.create-superbill-modal textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: all 0.15s ease;
}
.create-superbill-modal input[type=text]::placeholder,
.create-superbill-modal input[type=number]::placeholder,
.create-superbill-modal input[type=date]::placeholder,
.create-superbill-modal select::placeholder,
.create-superbill-modal textarea::placeholder {
  color: #9ca3af;
}
.create-superbill-modal input[type=text]:focus,
.create-superbill-modal input[type=number]:focus,
.create-superbill-modal input[type=date]:focus,
.create-superbill-modal select:focus,
.create-superbill-modal textarea:focus {
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.create-superbill-modal input[type=text].error,
.create-superbill-modal input[type=number].error,
.create-superbill-modal input[type=date].error,
.create-superbill-modal select.error,
.create-superbill-modal textarea.error {
  border-color: #dc2626;
}
.create-superbill-modal textarea {
  resize: vertical;
  min-height: 70px;
}
.create-superbill-modal .form-group {
  margin-bottom: 18px;
}
.create-superbill-modal .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.create-superbill-modal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.create-superbill-modal .form-section {
  margin-bottom: 20px;
}
.create-superbill-modal .form-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.create-superbill-modal .form-section__header h3 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}
.create-superbill-modal .services-list,
.create-superbill-modal .diagnoses-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 12px;
  margin-bottom: 12px;
}
.create-superbill-modal .service-item {
  display: grid;
  grid-template-columns: 1fr 2fr 70px 90px 90px 32px;
  gap: 10px;
  align-items: start;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.create-superbill-modal .service-item__total {
  align-self: center;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  font-variant-numeric: tabular-nums;
}
.create-superbill-modal .diagnosis-item {
  display: grid;
  grid-template-columns: 1fr 2fr 110px 32px;
  gap: 10px;
  align-items: start;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.create-superbill-modal .common-codes {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.create-superbill-modal .common-code-btn {
  padding: 2px 8px;
  border: 1px solid #CCFBF1;
  border-radius: 6px;
  background: #F0FDFA;
  color: #0F766E;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.create-superbill-modal .common-code-btn:hover {
  background: #CCFBF1;
  border-color: #14B8A6;
}
.create-superbill-modal .services-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #F0FDFA;
  border-radius: 10px;
}
.create-superbill-modal .services-total span {
  font-size: 13px;
  font-weight: 500;
  color: #0F766E;
}
.create-superbill-modal .services-total strong {
  font-size: 16px;
  font-weight: 700;
  color: #0F766E;
  font-variant-numeric: tabular-nums;
}
.create-superbill-modal .error-message {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #dc2626;
}
.create-superbill-modal .form-section > .error-message {
  margin: 0 0 10px;
}
.create-superbill-modal .error-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}
.create-superbill-modal .error-banner svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .create-superbill-modal {
    padding: 0;
  }
  .create-superbill-modal__content {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  .create-superbill-modal .form-row {
    grid-template-columns: 1fr;
  }
  .create-superbill-modal .service-item,
  .create-superbill-modal .diagnosis-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
/**
 * Oaklet - Create Claim Modal Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Nolan W. Platt
 *
 * Styles for the create claim modal component. All form styles are scoped
 * under .create-claim-modal so nothing leaks globally; the footer/section
 * buttons use the shared .billing-btn / .billing-icon-btn classes.
 *
 * @module presentation/components/billing/claims
 */
.create-claim-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.create-claim-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
}
.create-claim-modal__content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.create-claim-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #f3f4f6;
}
.create-claim-modal__header h2 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.create-claim-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.create-claim-modal__close:hover {
  background: #f3f4f6;
  color: #374151;
}
.create-claim-modal__form {
  padding: 24px;
}
.create-claim-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  margin: 24px -24px -24px;
  border-top: 1px solid #f3f4f6;
}
.create-claim-modal input[type=text],
.create-claim-modal input[type=number],
.create-claim-modal input[type=date],
.create-claim-modal select,
.create-claim-modal textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: all 0.15s ease;
}
.create-claim-modal input[type=text]::placeholder,
.create-claim-modal input[type=number]::placeholder,
.create-claim-modal input[type=date]::placeholder,
.create-claim-modal select::placeholder,
.create-claim-modal textarea::placeholder {
  color: #9ca3af;
}
.create-claim-modal input[type=text]:focus,
.create-claim-modal input[type=number]:focus,
.create-claim-modal input[type=date]:focus,
.create-claim-modal select:focus,
.create-claim-modal textarea:focus {
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.create-claim-modal input[type=text].error,
.create-claim-modal input[type=number].error,
.create-claim-modal input[type=date].error,
.create-claim-modal select.error,
.create-claim-modal textarea.error {
  border-color: #dc2626;
}
.create-claim-modal textarea {
  resize: vertical;
  min-height: 70px;
}
.create-claim-modal .form-group {
  margin-bottom: 18px;
}
.create-claim-modal .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.create-claim-modal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.create-claim-modal .form-section {
  margin-bottom: 20px;
}
.create-claim-modal .form-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.create-claim-modal .form-section__header h3 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}
.create-claim-modal .services-list,
.create-claim-modal .diagnoses-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 12px;
  margin-bottom: 12px;
}
.create-claim-modal .service-item {
  display: grid;
  grid-template-columns: 1fr 2fr 110px 32px;
  gap: 10px;
  align-items: start;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.create-claim-modal .diagnosis-item {
  display: grid;
  grid-template-columns: 1fr 32px;
  gap: 10px;
  align-items: start;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.create-claim-modal .common-codes {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.create-claim-modal .common-code-btn {
  padding: 2px 8px;
  border: 1px solid #CCFBF1;
  border-radius: 6px;
  background: #F0FDFA;
  color: #0F766E;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.create-claim-modal .common-code-btn:hover {
  background: #CCFBF1;
  border-color: #14B8A6;
}
.create-claim-modal .services-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #F0FDFA;
  border-radius: 10px;
}
.create-claim-modal .services-total span {
  font-size: 13px;
  font-weight: 500;
  color: #0F766E;
}
.create-claim-modal .services-total strong {
  font-size: 16px;
  font-weight: 700;
  color: #0F766E;
  font-variant-numeric: tabular-nums;
}
.create-claim-modal .error-message {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #dc2626;
}
.create-claim-modal .form-section > .error-message {
  margin: 0 0 10px;
}
.create-claim-modal .error-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}
.create-claim-modal .error-banner svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .create-claim-modal {
    padding: 0;
  }
  .create-claim-modal__content {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  .create-claim-modal .form-row {
    grid-template-columns: 1fr;
  }
  .create-claim-modal .service-item,
  .create-claim-modal .diagnosis-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
/**
 * Stripe Onboarding Component Styles
 * @copyright (c) 2025-2026 Oaklet
 *
 * "Connect Stripe to get started" wall shown on the billing page for
 * non-enrolled practices. Rendered as a centered .billing-card inside
 * the shared billing page shell (see pages/billing/_billing.scss).
 *
 * @module assets/scss/components/billing/stripe-onboarding
 */
.stripe-onboarding {
  width: 100%;
  max-width: 560px;
  margin: 24px auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stripe-onboarding__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #F0FDFA;
  color: #0D9488;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.stripe-onboarding__title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.stripe-onboarding__description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 440px;
}
.stripe-onboarding__benefits {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.stripe-onboarding__benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #374151;
}
.stripe-onboarding__benefits li svg {
  color: #14B8A6;
  flex-shrink: 0;
}
.stripe-onboarding .billing-error-banner {
  width: 100%;
  margin-bottom: 16px;
  text-align: left;
}
.stripe-onboarding__cta {
  min-width: 220px;
}
.stripe-onboarding__spin {
  animation: stripe-onboarding-spin 0.8s linear infinite;
}
.stripe-onboarding__footer {
  margin: 16px 0 0;
  font-size: 13px;
  color: #9ca3af;
}

@keyframes stripe-onboarding-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 768px) {
  .stripe-onboarding {
    padding: 24px 20px;
  }
  .stripe-onboarding__cta {
    width: 100%;
    min-width: 0;
  }
}
/**
 * Stripe Callback Component Styles
 * @copyright (c) 2025-2026 Oaklet
 *
 * OAuth return screen for Stripe Connect (processing / success / error).
 * Rendered as a centered .billing-card inside the shared billing page
 * shell (see pages/billing/_billing.scss).
 *
 * @module assets/scss/components/billing/stripe-callback
 */
.stripe-callback {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}
.stripe-callback__card {
  width: 100%;
  max-width: 480px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stripe-callback .billing-spinner {
  margin-bottom: 16px;
}
.stripe-callback__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.stripe-callback__icon--success {
  background: #ecfdf3;
  color: #067647;
}
.stripe-callback__icon--error {
  background: #fee2e2;
  color: #991b1b;
}
.stripe-callback__title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.stripe-callback__description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}
.stripe-callback__button {
  margin-top: 20px;
}

.calendar-settings {
  flex: 1;
  min-height: 0;
  height: 100%;
  background-color: var(--color-bg-card);
  border-radius: 0.5rem;
  border: 1px solid var(--color-border-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.calendar-settings__header {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border-primary);
  background-color: var(--color-bg-secondary);
}
.calendar-settings__title-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.calendar-settings__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}
.calendar-settings__search {
  position: relative;
  margin-top: 0.75rem;
}
.calendar-settings__search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-secondary);
}
.calendar-settings__search-input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border: 1px solid var(--color-border-primary);
  border-radius: 0.375rem;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.calendar-settings__search-input:focus {
  border-color: #2A9D8F;
}
.calendar-settings__content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.calendar-settings__section {
  margin-bottom: 0.5rem;
}
.calendar-settings__section-button {
  width: 100%;
  padding: 0.75rem;
  background-color: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease;
}
.calendar-settings__section-button--expanded {
  background-color: var(--color-bg-secondary);
}
.calendar-settings__section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.calendar-settings__section-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-primary);
}
.calendar-settings__section-content {
  padding: 0.75rem;
  padding-top: 0.5rem;
}
.calendar-settings__filter-badge {
  padding: 0.125rem 0.375rem;
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.schedule-events__meeting-btn {
  width: 100%;
  padding: 0.625rem;
  margin-bottom: 0.5rem;
  background-color: #3B82F6;
  color: #FFFFFF;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s ease;
}
.schedule-events__meeting-btn:hover {
  opacity: 0.9;
}
.schedule-events__telehealth-btn {
  width: 100%;
  padding: 0.625rem;
  margin-bottom: 0.5rem;
  background-color: #3B82F6;
  color: #FFFFFF;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s ease;
}
.schedule-events__telehealth-btn:hover {
  opacity: 0.9;
}
.schedule-events__custom-btn {
  width: 100%;
  padding: 0.625rem;
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-primary);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}
.schedule-events__custom-btn:hover {
  border-color: var(--color-primary);
  background-color: var(--color-bg-secondary);
}

.calendar-sources__item {
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 0.375rem;
  background-color: transparent;
  transition: background-color 0.2s ease;
}
.calendar-sources__item--enabled {
  background-color: var(--color-bg-secondary);
}
.calendar-sources__item--external {
  border: 1px solid var(--color-border-primary);
}
.calendar-sources__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}
.calendar-sources__header--with-controls {
  margin-bottom: 0.5rem;
}
.calendar-sources__info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.calendar-sources__name {
  font-size: 0.875rem;
  color: var(--color-text-primary);
}
.calendar-sources__toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
  padding: 0.375rem;
}
.calendar-sources__toggle-btn--enabled {
  color: var(--color-primary);
}
.calendar-sources__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.calendar-sources__connect-btn {
  padding: 0.375rem 0.75rem;
  background-color: #4285F4;
  color: #FFFFFF;
  border: none;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: opacity 0.2s ease;
}
.calendar-sources__connect-btn:hover {
  opacity: 0.9;
}
.calendar-sources__connect-btn--outlook {
  background-color: #0078D4;
}
.calendar-sources__success-icon {
  color: var(--color-success, #10B981);
}
.calendar-sources__export-btn {
  padding: 0.375rem 0.75rem;
  background-color: #4285F4;
  color: #FFFFFF;
  border: none;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: opacity 0.2s ease;
  opacity: 1;
}
.calendar-sources__export-btn:hover:not(:disabled) {
  opacity: 0.9;
}
.calendar-sources__export-btn:disabled {
  background-color: var(--color-text-disabled);
  cursor: not-allowed;
  opacity: 0.6;
}
.calendar-sources__export-btn--outlook {
  background-color: var(--color-primary);
}
.calendar-sources__disconnect-btn {
  padding: 0.375rem 0.75rem;
  background-color: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-primary);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.2s ease;
}
.calendar-sources__disconnect-btn:hover {
  border-color: var(--color-error);
  color: var(--color-error);
}
.calendar-sources__error {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem;
  margin-bottom: 0.5rem;
  background-color: var(--color-error-bg, #FEF2F2);
  border-radius: 0.25rem;
  border: 1px solid var(--color-error-border, #FECACA);
}
.calendar-sources__error-text {
  font-size: 0.75rem;
  color: var(--color-error, #EF4444);
}

.icon-success {
  color: var(--color-success, #10B981);
}

.icon-error {
  color: var(--color-error, #EF4444);
}

.icon-calendar-toggle--enabled {
  color: var(--color-enabled);
}

.zoom-integration__error {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem;
  margin-bottom: 0.75rem;
  background-color: var(--color-error-bg, #FEF2F2);
  border: 1px solid var(--color-error-border, #FECACA);
  border-radius: 0.375rem;
}
.zoom-integration__error svg {
  color: var(--color-error, #EF4444);
}
.zoom-integration__error span {
  font-size: 0.875rem;
  color: var(--color-error, #EF4444);
}
.zoom-integration__connected {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.zoom-integration__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background-color: var(--color-success-bg, #ECFDF5);
  border: 1px solid var(--color-success-border, #A7F3D0);
  border-radius: 0.375rem;
}
.zoom-integration__status svg {
  color: var(--color-success, #10B981);
}
.zoom-integration__status span {
  font-size: 0.875rem;
  color: var(--color-text-primary);
}
.zoom-integration__disconnect-btn {
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-primary);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}
.zoom-integration__disconnect-btn:hover:not(:disabled) {
  border-color: var(--color-error);
  color: var(--color-error);
}
.zoom-integration__disconnect-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.zoom-integration__disconnected {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.zoom-integration__description {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: 0;
}
.zoom-integration__connect-btn {
  padding: 0.5rem 1rem;
  background-color: #2D8CFF;
  color: #FFFFFF;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.2s ease;
}
.zoom-integration__connect-btn:hover:not(:disabled) {
  opacity: 0.9;
}
.zoom-integration__connect-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status-icon-auto {
  margin-left: auto;
}

.calendar-filters__group {
  margin-bottom: 1rem;
}
.calendar-filters__group:last-child {
  margin-bottom: 0;
}
.calendar-filters__group-header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
}
.calendar-filters__group-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}
.calendar-filters__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.calendar-filters__option {
  padding: 0.25rem 0.5rem;
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-primary);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.calendar-filters__option--active {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.event-colors__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  margin-bottom: 0.375rem;
  border-radius: 0.375rem;
  background-color: var(--color-bg-secondary);
}
.event-colors__label {
  font-size: 0.8125rem;
  color: var(--color-text-primary);
}
.event-colors__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.event-colors__preview {
  width: 24px;
  height: 24px;
  border-radius: 0.25rem;
  border: 2px solid var(--color-border-primary);
}
.event-colors__picker {
  width: 32px;
  height: 24px;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  background-color: transparent;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.spinning {
  animation: spin 1s linear infinite;
}

.temp-inline-replacement.flex-center {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.temp-inline-replacement.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.temp-inline-replacement.text-primary {
  font-size: 0.875rem;
  color: var(--color-text-primary);
}
.temp-inline-replacement.text-error {
  font-size: 0.75rem;
  color: var(--color-error, #EF4444);
}
.temp-inline-replacement.button-base {
  padding: 0.375rem 0.75rem;
  border: none;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.2s ease;
}
.temp-inline-replacement.button-primary {
  background-color: #4285F4;
  color: #FFFFFF;
}
.temp-inline-replacement.button-primary:hover:not(:disabled) {
  opacity: 0.9;
}
.temp-inline-replacement.button-secondary {
  background-color: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-primary);
}
.temp-inline-replacement.button-secondary:hover {
  border-color: var(--color-error);
  color: var(--color-error);
}

.oaklet-day-grid {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  background: #ffffff;
  position: relative;
}

.oaklet-day-row {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  min-height: 3.5rem;
  position: relative;
}
.oaklet-day-row:last-child {
  border-bottom: none;
}
.oaklet-day-row .time-slot {
  width: 4rem;
  padding: 0.5rem;
  font-size: 0.625rem;
  color: #70757a;
  text-align: right;
  border-right: 1px solid #f0f0f0;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  background: #ffffff;
  padding-top: 0.25rem;
}
.oaklet-day-row .content-slot {
  flex: 1;
  position: relative;
  min-height: 3.5rem;
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.oaklet-day-row .content-slot:hover {
  background: rgba(0, 0, 0, 0.01);
}

.day-view__session {
  background-color: rgba(50, 162, 147, 0.12);
  border-left: 3px solid var(--color-primary, #32A293);
  border-radius: 4px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.day-view__session:hover {
  background-color: rgba(50, 162, 147, 0.18);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.day-view__session-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.day-view__session-info {
  flex: 1;
}
.day-view__patient-name {
  font-weight: 500;
  color: #3c4043;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}
.day-view__session-time {
  font-size: 0.75rem;
  color: #5f6368;
  margin-bottom: 0.25rem;
}
.day-view__session-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: 0.5rem;
}
.day-view__join-button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.625rem;
  background-color: var(--color-primary, #32A293);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.day-view__join-button:hover {
  background-color: var(--color-primary-dark, #2b8d7f);
}
.day-view__schedule-button {
  width: 100%;
  height: 100%;
  background-color: transparent;
  border: 1px dashed #dadce0;
  border-radius: 4px;
  color: #5f6368;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}
.day-view__schedule-button:hover {
  border-color: var(--color-primary, #32A293);
  color: var(--color-primary, #32A293);
  background-color: rgba(50, 162, 147, 0.04);
}

.month-view__video-icon {
  flex-shrink: 0;
  margin-left: 0.25rem;
}

/**
 * Oaklet - Week View Component Styles
 * @copyright (c) 2025-2026 Oaklet @author Sahas
 *
 * Styles for the seven-day calendar view with time slots and appointment display.
 * Includes header alignment, grid layout, and session block styling.
 *
 * @module src/assets/scss/components/calendar/_week-view
 */
.oaklet-week-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  overflow: hidden;
}

/* Week Header - Google Calendar Style */
.oaklet-week-header {
  display: flex;
  border-bottom: 1px solid #dadce0;
  background: #f8f9fa;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.oaklet-week-header .time-column {
  width: 60px;
  flex-shrink: 0;
  padding: 0.75rem 0.5rem;
  background-color: #f8f9fa;
  border-right: 1px solid #dadce0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oaklet-week-header .day-column {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0.5rem;
  text-align: center;
  border-right: 1px solid #dadce0;
  background-color: #f8f9fa;
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.oaklet-week-header .day-column:last-child {
  border-right: none;
}
.oaklet-week-header .day-column:hover {
  background-color: rgba(0, 0, 0, 0.02);
}
.oaklet-week-header .day-column.today {
  background-color: rgba(50, 162, 147, 0.03);
}
.oaklet-week-header .day-column.today .day-name {
  color: var(--color-primary, #32A293);
  font-weight: 600;
}
.oaklet-week-header .day-column.today .day-number {
  background: var(--color-primary, #32A293);
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}
.oaklet-week-header .day-column .day-name {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #70757a;
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.oaklet-week-header .day-column .day-number {
  font-size: 1.625rem;
  font-weight: 400;
  color: #3c4043;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.oaklet-week-header .day-column .day-number.today {
  font-weight: 500;
}

/* Week Grid - Google Calendar Style */
.oaklet-week-grid {
  overflow: auto;
  flex: 1;
  min-height: 0;
  background: #ffffff;
  position: relative;
  /* Custom scrollbar styling */
}
.oaklet-week-grid::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
.oaklet-week-grid::-webkit-scrollbar-track {
  background: #f1f3f4;
}
.oaklet-week-grid::-webkit-scrollbar-thumb {
  background: #dadce0;
  border-radius: 6px;
  border: 2px solid #f1f3f4;
}
.oaklet-week-grid::-webkit-scrollbar-thumb:hover {
  background: #bdc1c6;
}

/* Week Rows - Time Slots */
.oaklet-week-row {
  display: flex;
  border-bottom: 1px solid #e8eaed;
  height: 3.5rem;
  position: relative;
}
.oaklet-week-row:last-child {
  border-bottom: 1px solid #dadce0;
}
.oaklet-week-row {
  /* Hour row - darker border */
}
.oaklet-week-row:nth-child(2n) {
  border-bottom: 1px solid #dadce0;
}
.oaklet-week-row .time-label {
  border-right: 1px solid #dadce0;
  padding: 0 0.5rem;
  width: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  background-color: #ffffff;
  font-size: 0.625rem;
  color: #70757a;
  padding-top: 0.375rem;
  font-weight: 400;
  position: sticky;
  left: 0;
  z-index: 10;
}
.oaklet-week-row .day-cell {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 3.5rem;
  border-right: 1px solid #e8eaed;
  background-color: #ffffff;
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.oaklet-week-row .day-cell:last-child {
  border-right: none;
}
.oaklet-week-row .day-cell {
  /* Subtle hover effect for empty slots */
}
.oaklet-week-row .day-cell:hover:not(:has(.session-block)) {
  background-color: rgba(50, 162, 147, 0.02);
  cursor: pointer;
}
.oaklet-week-row .day-cell {
  /* Session Block - Google Calendar Style with Teal Theme */
}
.oaklet-week-row .day-cell .session-block {
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  z-index: 5;
  background-color: rgba(50, 162, 147, 0.12);
  border-left: 3px solid var(--color-primary, #32A293);
  border-radius: 4px;
  padding: 0.375rem 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  min-height: 20px;
  overflow: hidden;
}
.oaklet-week-row .day-cell .session-block:hover {
  background-color: rgba(50, 162, 147, 0.18);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  z-index: 15;
}
.oaklet-week-row .day-cell .session-block:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.oaklet-week-row .day-cell .session-block .session-name {
  font-weight: 500;
  color: #3c4043;
  font-size: 0.75rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.oaklet-week-row .day-cell .session-block .session-details {
  font-size: 0.6875rem;
  font-weight: 400;
  color: #5f6368;
  line-height: 1.3;
  margin-top: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.oaklet-week-row .day-cell .empty-slot {
  width: 100%;
  height: 100%;
}

/* All-day events section (if needed in future) */
.oaklet-week-allday {
  border-bottom: 1px solid #dadce0;
  background: #fafafa;
  min-height: 2rem;
  padding: 0.5rem 0;
}

/* Current time indicator (if needed in future) */
.current-time-indicator {
  position: absolute;
  left: 60px;
  right: 0;
  height: 2px;
  background-color: var(--color-primary, #32A293);
  z-index: 30;
  pointer-events: none;
}
.current-time-indicator::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-primary, #32A293);
}

/**
 * Oaklet - Schedule Modal Component Styles
 * @copyright (c) 2025-2026 Oaklet @author Sahas
 *
 * Styles for the appointment scheduling modal dialog.
 * Includes form styling, conflict detection warnings, and modal layout.
 *
 * @module src/assets/scss/components/calendar/_schedule-modal
 */
.schedule-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

.schedule-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 800px;
  min-width: 600px;
  background: var(--color-bg-card, #ffffff);
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  z-index: 1001;
  overflow: hidden;
  animation: fadeInScale 0.3s ease;
}

.schedule-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border-primary, #e5e7eb);
  background: var(--color-bg-secondary, #f8f9fa);
}
.schedule-modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary, #111827);
}
.schedule-modal-header .close-button {
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-text-secondary, #6b7280);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.schedule-modal-header .close-button:hover {
  background: var(--color-bg-hover, rgba(0, 0, 0, 0.05));
  color: var(--color-text-primary, #111827);
}

.schedule-modal-content {
  padding: 1.5rem;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.schedule-section {
  background: var(--color-bg-card, #ffffff);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-border-primary, #e5e7eb);
}
.schedule-section:last-child {
  margin-bottom: 0;
}
.schedule-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary, #111827);
  margin: 0 0 1rem 0;
}
.schedule-section h3 svg {
  color: var(--color-primary, #3b82f6);
}
.schedule-section .form-group {
  margin-bottom: 1rem;
}
.schedule-section .form-group:last-child {
  margin-bottom: 0;
}
.schedule-section .form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary, #6b7280);
  margin-bottom: 0.5rem;
}
.schedule-section .form-group input, .schedule-section .form-group select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-border-primary, #e5e7eb);
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--color-text-primary, #111827);
  background: var(--color-bg-input, #ffffff);
  transition: all 0.2s;
}
.schedule-section .form-group input:focus, .schedule-section .form-group select:focus {
  outline: none;
  border-color: var(--color-primary, #2A9D8F);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}
.schedule-section .form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}
.schedule-section .form-group .input-with-icon {
  position: relative;
}
.schedule-section .form-group .input-with-icon svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary, #9ca3af);
}
.schedule-section .form-group .input-with-icon input {
  padding-left: 2.5rem;
}
.schedule-section .form-group .styled-select {
  width: 100%;
}
.schedule-section .schedule-preview {
  padding: 1rem;
  background: var(--color-bg-secondary, #f8f9fa);
  border-radius: 6px;
  margin-top: 1rem;
}
.schedule-section .schedule-preview span {
  font-size: 0.875rem;
  color: var(--color-text-secondary, #6b7280);
}
.schedule-section .schedule-preview strong {
  font-size: 0.875rem;
  color: var(--color-text-primary, #111827);
  font-weight: 600;
}

.conflict-error {
  padding: 0.75rem;
  background-color: var(--color-error-light, #fee2e2);
  border: 1px solid var(--color-error, #dc2626);
  border-radius: 0.375rem;
  margin-top: 1rem;
}
.conflict-error .conflict-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-error, #dc2626);
  font-size: 0.875rem;
  font-weight: 500;
}
.conflict-error .conflict-message {
  font-size: 0.75rem;
  color: var(--color-error-dark, #991b1b);
  margin-top: 0.25rem;
}

.schedule-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg-secondary, #f8f9fa);
  border-top: 1px solid var(--color-border-primary, #e5e7eb);
}
.schedule-actions .cancel-button, .schedule-actions .submit-button {
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.schedule-actions .cancel-button {
  background: transparent;
  border: 1px solid var(--color-border-primary, #e5e7eb);
  color: var(--color-text-primary, #111827);
}
.schedule-actions .cancel-button:hover {
  background: var(--color-bg-hover, rgba(0, 0, 0, 0.05));
}
.schedule-actions .submit-button {
  background: var(--color-primary, #3b82f6);
  border: 1px solid transparent;
  color: white;
}
.schedule-actions .submit-button:hover {
  background: var(--color-primary-dark, #2563eb);
}
.schedule-actions .submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
/**
 * Oaklet - Current Time Indicator Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author sahas
 *
 * Styles for the current time indicator bar shown in Day and Week calendar views.
 *
 * @module src/assets/scss/components/calendar/_current-time-indicator
 */
.current-time-indicator {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #ea4335;
  z-index: 30;
  pointer-events: none;
  transition: top 0.3s ease-in-out;
}
.current-time-indicator::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ea4335;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.oaklet-day-view .current-time-indicator {
  left: 4rem;
}

.oaklet-week-view .current-time-indicator {
  left: 60px;
}

.current-time-indicator.primary-color {
  background-color: var(--color-primary, #32A293);
}
.current-time-indicator.primary-color::before {
  background-color: var(--color-primary, #32A293);
}

.oaklet-logo {
  display: inline-block;
  position: relative;
}

.logo-link-wrapper {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.oaklet-logo-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.beta-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: lowercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  white-space: nowrap;
  align-self: center;
  margin-top: 0;
}
.beta-badge--icon {
  font-size: 8px;
}

/**
 * MFA Settings Styles
 * @copyright (c) 2025-2026 Oaklet
 * 
 * Styles for the Multi-Factor Authentication settings component
 * 
 * @module assets/scss/components/mfa-settings
 */
.mfa-settings {
  padding: 20px;
  max-width: 600px;
}
.mfa-settings .loading-spinner {
  text-align: center;
  color: #666;
  padding: 20px;
}
.mfa-settings .settings-section {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.mfa-settings .settings-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}
.mfa-settings .settings-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 24px;
}
.mfa-settings .alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}
.mfa-settings .alert.alert-error {
  background-color: #fee;
  color: #c00;
  border: 1px solid #fcc;
}
.mfa-settings .alert.alert-success {
  background-color: #efe;
  color: #060;
  border: 1px solid #cfc;
}
.mfa-settings .mfa-toggle-container {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
}
.mfa-settings .toggle-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.mfa-settings .toggle-switch input[type=checkbox] {
  display: none;
}
.mfa-settings .toggle-switch .toggle-slider {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  background-color: #ccc;
  border-radius: 24px;
  transition: background-color 0.3s;
}
.mfa-settings .toggle-switch .toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: white;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
}
.mfa-settings .toggle-switch input:checked + .toggle-slider {
  background-color: #1a73e8;
}
.mfa-settings .toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}
.mfa-settings .toggle-switch input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}
.mfa-settings .toggle-switch .toggle-label {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}
.mfa-settings .toggle-help-text {
  margin-top: 12px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}
.mfa-settings .mfa-info {
  background: #f0f7ff;
  border: 1px solid #cce0ff;
  border-radius: 6px;
  padding: 16px;
}
.mfa-settings .mfa-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #0052cc;
  margin-bottom: 12px;
}
.mfa-settings .mfa-info ul {
  margin: 0;
  padding-left: 20px;
}
.mfa-settings .mfa-info ul li {
  font-size: 13px;
  color: #344563;
  line-height: 1.6;
  margin-bottom: 6px;
}
.mfa-settings .mfa-info ul li:last-child {
  margin-bottom: 0;
}

@media (prefers-color-scheme: dark) {
  .mfa-settings .settings-section {
    background: #2a2a2a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }
  .mfa-settings .settings-title {
    color: #e0e0e0;
  }
  .mfa-settings .settings-description {
    color: #aaa;
  }
  .mfa-settings .mfa-toggle-container {
    background: #1f1f1f;
  }
  .mfa-settings .toggle-switch .toggle-label {
    color: #e0e0e0;
  }
  .mfa-settings .toggle-help-text {
    color: #aaa;
  }
  .mfa-settings .mfa-info {
    background: #1a2332;
    border-color: #2a3f5f;
  }
  .mfa-settings .mfa-info h4 {
    color: #4a9eff;
  }
  .mfa-settings .mfa-info ul li {
    color: #b0b8c0;
  }
}
/**
 * Oaklet AI Chat - Chat Messages Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Gonzalo
 */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-messages::-webkit-scrollbar {
  width: 4px;
}
.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}
.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}
.chat-messages .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 16px;
}
.chat-messages .empty-state .icon-wrapper {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.chat-messages .empty-state .icon-wrapper svg {
  width: 48px;
  height: 48px;
}
.chat-messages .empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}
.chat-messages .empty-state p {
  font-size: 14px;
  color: #6b7280;
  max-width: 320px;
}
.chat-messages .message-item {
  display: flex;
  gap: 12px;
}
.chat-messages .message-item.user-message {
  justify-content: flex-end;
}
.chat-messages .message-item.assistant-message {
  justify-content: flex-start;
}
.chat-messages .message-item .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-messages .message-item .avatar.assistant-avatar {
  background: transparent;
}
.chat-messages .message-item .avatar.assistant-avatar svg {
  width: 20px;
  height: 20px;
}
.chat-messages .message-item .avatar.user-avatar {
  background: #e5e7eb;
}
.chat-messages .message-item .avatar.user-avatar svg {
  width: 20px;
  height: 20px;
  color: #4b5563;
}
.chat-messages .message-item .message-bubble {
  max-width: 80%;
  border-radius: 16px;
  padding: 8px 16px;
  user-select: text; /* Allow text selection for copying */
  cursor: text;
}
.chat-messages .message-item .message-bubble.user-bubble {
  background: #1f2937;
  color: white;
}
.chat-messages .message-item .message-bubble.assistant-bubble {
  background: #f3f4f6;
  color: #1f2937;
}
.chat-messages .message-item .message-bubble p {
  font-size: 14px;
  white-space: pre-wrap;
  margin: 0;
  user-select: text; /* Allow text selection */
}
.chat-messages .message-item .message-bubble .message-content {
  font-size: 14px;
  line-height: 1.6;
  user-select: text;
}
.chat-messages .message-item .message-bubble .message-content p {
  margin: 0 0 8px 0;
}
.chat-messages .message-item .message-bubble .message-content p:last-child {
  margin-bottom: 0;
}
.chat-messages .message-item .message-bubble .message-content strong {
  font-weight: 600;
  color: #111827;
}
.chat-messages .message-item .message-bubble .message-content em {
  font-style: italic;
}
.chat-messages .message-item .message-bubble .message-content code {
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Monaco", "Menlo", monospace;
  font-size: 13px;
}
.chat-messages .message-item .message-bubble .message-content pre {
  background: rgba(0, 0, 0, 0.05);
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 8px 0;
}
.chat-messages .message-item .message-bubble .message-content pre code {
  background: none;
  padding: 0;
}
.chat-messages .message-item .message-bubble .message-content ul, .chat-messages .message-item .message-bubble .message-content ol {
  margin: 8px 0;
  padding-left: 24px;
}
.chat-messages .message-item .message-bubble .message-content li {
  margin: 4px 0;
}
.chat-messages .message-item .message-bubble .message-content a {
  color: #2563eb;
  text-decoration: underline;
}
.chat-messages .message-item .message-bubble .message-content a:hover {
  color: #1d4ed8;
}
.chat-messages .message-item .message-bubble .loading-dots {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}
.chat-messages .message-item .message-bubble .loading-dots .dot {
  width: 8px;
  height: 8px;
  background: #9ca3af;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out;
}
.chat-messages .message-item .message-bubble .loading-dots .dot:nth-child(1) {
  animation-delay: 0ms;
}
.chat-messages .message-item .message-bubble .loading-dots .dot:nth-child(2) {
  animation-delay: 150ms;
}
.chat-messages .message-item .message-bubble .loading-dots .dot:nth-child(3) {
  animation-delay: 300ms;
}
.chat-messages .sources-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.chat-messages .sources-section .sources-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.chat-messages .sources-section .sources-label svg {
  width: 14px;
  height: 14px;
}
.chat-messages .sources-section .sources-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-messages .sources-section .sources-list .source-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}
.chat-messages .sources-section .sources-list .source-link:hover {
  background: #dbeafe;
  color: #1d4ed8;
  transform: translateY(-1px);
}
.chat-messages .sources-section .sources-list .source-link:active {
  transform: translateY(0);
}
.chat-messages .loading-indicator {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}
.chat-messages .loading-indicator .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-messages .loading-indicator .avatar svg {
  width: 20px;
  height: 20px;
}
.chat-messages .loading-indicator .loading-bubble {
  background: #f3f4f6;
  border-radius: 16px;
  padding: 8px 16px;
  display: flex;
  gap: 4px;
}
.chat-messages .loading-indicator .loading-bubble .dot {
  width: 8px;
  height: 8px;
  background: #9ca3af;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out;
}
.chat-messages .loading-indicator .loading-bubble .dot:nth-child(1) {
  animation-delay: 0ms;
}
.chat-messages .loading-indicator .loading-bubble .dot:nth-child(2) {
  animation-delay: 150ms;
}
.chat-messages .loading-indicator .loading-bubble .dot:nth-child(3) {
  animation-delay: 300ms;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}
/**
 * Oaklet AI Chat - Light Prompt Input Box Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Gonzalo
 */
.light-prompt-input {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: white;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}
.light-prompt-input:focus-within {
  border-color: #32A293;
  box-shadow: 0 2px 12px rgba(50, 162, 147, 0.15);
}
.light-prompt-input .file-preview-section {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
}
.light-prompt-input .file-preview-section .preview-item {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}
.light-prompt-input .file-preview-section .preview-item:hover {
  transform: scale(1.05);
}
.light-prompt-input .file-preview-section .preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.light-prompt-input .file-preview-section .preview-item .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.light-prompt-input .file-preview-section .preview-item .remove-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}
.light-prompt-input .file-preview-section .preview-item .remove-btn svg {
  width: 12px;
  height: 12px;
  color: white;
}
.light-prompt-input .input-textarea {
  width: 100%;
  resize: none;
  border: none;
  background: transparent;
  padding: 8px;
  font-size: 14px;
  color: #1f2937;
  outline: none;
  font-family: inherit;
}
.light-prompt-input .input-textarea::placeholder {
  color: #9ca3af;
}
.light-prompt-input .input-textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.light-prompt-input .recording-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  gap: 12px;
}
.light-prompt-input .recording-container .recording-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.light-prompt-input .recording-container .recording-header .recording-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse 1.5s ease-in-out infinite;
}
.light-prompt-input .recording-container .recording-header .recording-time {
  font-size: 14px;
  font-family: monospace;
  color: #1f2937;
}
.light-prompt-input .recording-container .recording-visualizer {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 16px;
}
.light-prompt-input .recording-container .recording-visualizer .visualizer-bar {
  width: 2px;
  min-height: 15%;
  background: #9ca3af;
  border-radius: 2px;
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.light-prompt-input .actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
}
.light-prompt-input .actions-row .left-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.light-prompt-input .actions-row .left-actions .upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}
.light-prompt-input .actions-row .left-actions .upload-btn:hover {
  background: #f3f4f6;
  color: #374151;
}
.light-prompt-input .actions-row .left-actions .upload-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.light-prompt-input .actions-row .left-actions .upload-btn svg {
  width: 16px;
  height: 16px;
}
.light-prompt-input .actions-row .left-actions .upload-btn input {
  display: none;
}
.light-prompt-input .actions-row .left-actions .mode-toggles {
  display: flex;
  align-items: center;
  gap: 2px;
}
.light-prompt-input .actions-row .left-actions .mode-toggles .mode-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  height: 28px;
  border-radius: 14px;
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.light-prompt-input .actions-row .left-actions .mode-toggles .mode-toggle svg {
  width: 14px;
  height: 14px;
}
.light-prompt-input .actions-row .left-actions .mode-toggles .mode-toggle:hover {
  background: #f3f4f6;
  color: #374151;
}
.light-prompt-input .actions-row .left-actions .mode-toggles .mode-toggle.active-email {
  background: #fef3c7;
  color: #d97706;
}
.light-prompt-input .actions-row .left-actions .mode-toggles .mode-toggle.active-scribe {
  background: #f0fdf4;
  color: #16a34a;
}
.light-prompt-input .actions-row .left-actions .mode-toggles .mode-toggle.active-schedule {
  background: #f0f9ff;
  color: #0284c7;
}
.light-prompt-input .actions-row .left-actions .mode-toggles .divider {
  width: 1px;
  height: 16px;
  background: #e5e7eb;
  margin: 0 2px;
}
.light-prompt-input .actions-row .submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.light-prompt-input .actions-row .submit-btn svg {
  width: 16px;
  height: 16px;
}
.light-prompt-input .actions-row .submit-btn.has-content {
  background: #1f2937;
  color: white;
}
.light-prompt-input .actions-row .submit-btn.has-content:hover {
  background: #374151;
}
.light-prompt-input .actions-row .submit-btn.no-content {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: pointer;
}
.light-prompt-input .actions-row .submit-btn.no-content:hover {
  background: #e5e7eb;
  color: #6b7280;
}
.light-prompt-input .actions-row .submit-btn.recording {
  background: #fef2f2;
  color: #ef4444;
}
.light-prompt-input .actions-row .submit-btn.recording:hover {
  background: #fee2e2;
}
.light-prompt-input .actions-row .submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/**
 * Mesh Gradient Background Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Gonzalo
 */
.mesh-gradient-background {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
.mesh-gradient-background canvas {
  width: 100%;
  height: 100%;
}
.mesh-gradient-background .mesh-gradient-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-page.with-mesh-gradient {
  position: relative;
  min-height: 100vh;
}
.auth-page.with-mesh-gradient .auth-container {
  position: relative;
  z-index: 1;
}

:root {
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 3rem;
  --font-size-base: 16px;
  --background-color: #ffffff;
}

.shimmer {
  position: relative;
  display: inline-block;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(90deg, transparent 0%, rgb(255, 255, 255) 50%, transparent 100%), linear-gradient(#666, #666);
  background-size: 200% 100%, auto;
  background-repeat: no-repeat;
  animation: shimmerTextEffect var(--shimmer-duration, 1.5s) linear infinite;
}

@keyframes shimmerTextEffect {
  0% {
    background-position: 200% center, 0 0;
  }
  100% {
    background-position: -200% center, 0 0;
  }
}
@keyframes recommendationPillFadeInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes recommendationPillTextShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
@keyframes recommendationPillCircleToCheckmark {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.8);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes recommendationPillCheckmarkStrokeDraw {
  0% {
    stroke-dashoffset: 16;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes recommendationPillBackgroundToBlack {
  0% {
    background-color: #f5f5f5;
  }
  100% {
    background-color: #000;
  }
}
@keyframes recommendationPillClickEffect {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes recommendationPillFadeOutUp {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-50px);
  }
}
.recommendation-pills {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md, 1rem);
  padding: var(--spacing-xl, 3rem);
  height: 100%;
  justify-content: center;
}
.recommendation-pills__pill {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm, 0.5rem);
  padding: var(--spacing-md, 1rem) 15px;
  border: none;
  border-radius: 50px;
  background-color: #f5f5f5;
  color: #333;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 400px;
  white-space: nowrap;
  justify-content: flex-start;
  cursor: pointer;
}
.recommendation-pills__pill:not(.recommendation-pills__pill--animated) {
  opacity: 0;
  transform: translateY(50px);
}
.recommendation-pills__pill.pill-black {
  background-color: #000 !important;
  color: #fff !important;
}
.recommendation-pills__pill--animated {
  animation: recommendationPillFadeInFromBottom 0.6s ease forwards;
}
.recommendation-pills__pill--selected {
  background-color: #000 !important;
  color: #fff !important;
  animation: recommendationPillBackgroundToBlack 0.4s ease forwards, recommendationPillClickEffect 0.2s ease;
}
.recommendation-pills__pill--clicking {
  animation: recommendationPillClickEffect 0.2s ease;
}
.recommendation-pills__pill--fade-out {
  animation: recommendationPillFadeOutUp 0.6s ease forwards;
}
.recommendation-pills__circle {
  width: 24px;
  height: 24px;
  border: 1px solid #ccc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background-color: transparent;
}
.recommendation-pills__pill--selected .recommendation-pills__circle {
  border-color: #fff;
  background-color: #fff;
  color: #000;
  animation: recommendationPillCircleToCheckmark 0.4s ease;
}
.recommendation-pills__checkmark {
  width: 14px;
  height: 14px;
  stroke: #000;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
}
.recommendation-pills__pill--selected .recommendation-pills__checkmark {
  animation: recommendationPillCheckmarkStrokeDraw 0.6s ease 0.3s forwards;
}
.recommendation-pills__icon {
  width: 24px;
  height: 24px;
  opacity: 0.7;
}
.recommendation-pills__text {
  font-size: var(--font-size-base, 16px);
  font-weight: 500;
  position: relative;
}

.checkmark-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}
.checkmark-container .checkmark-svg {
  display: block;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 0.6s ease;
}

.recommendation-pills__pill--selected .checkmark-container .checkmark-svg {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition-delay: 0.3s;
}

.welcome-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.welcome-content {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 100%;
}

.welcome-text-group {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.welcome-text-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 60px;
}

.welcome-main-text {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.welcome-name-space {
  position: relative;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: transparent;
}
.welcome-name-space::after {
  content: "John";
}

.welcome-name-text {
  font-size: 32px;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  will-change: opacity;
}

.blur-text {
  display: inline-block;
  text-align: left;
}
.blur-text span {
  display: inline-block;
  will-change: transform, filter, opacity;
}

.mission-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.mission-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.mission-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  max-width: 750px;
  text-align: center;
  margin: 0 auto;
  padding: 0 20px;
}

.mission-text-line {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.mission-main-text {
  font-size: 35px;
  line-height: 1.3;
  margin: 0;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.75);
}

.mission-emphasis-text {
  font-size: 35px;
  line-height: 1.3;
  margin: 0;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 900;
}

.mission-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

@keyframes zoomout {
  from {
    background-size: 40%;
  }
  to {
    background-size: 10%;
  }
}
.animation-container {
  isolation: isolate;
  contain: layout style paint;
}

.animation-manager {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.welcome-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.features-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.features-layer .recommendation-pills {
  position: relative;
  background-color: var(--background-color, #ffffff);
}
.features-layer .recommendation-pills::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: -1;
}

.oakletfeat-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oakletai-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
}

.logo-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.animation-logo-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.03) 0%, rgba(42, 157, 143, 0.08) 100%);
  z-index: 1000;
  overflow: visible;
}
.animation-logo-container svg {
  position: relative;
  z-index: 2;
  overflow: visible;
  width: 240px;
  height: 240px;
}

.logo-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 157, 143, 0.4) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.logo-beta-text {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}
.logo-beta-text__closed-beta {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #7c3aed;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.logo-beta-text__date {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #a78bfa;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.email-composer {
  width: 100%;
  max-width: 350px;
  position: relative;
  margin: 0 auto;
  transform: scale(0.9);
  transform-origin: center center;
}

.calendar-3d {
  transform: scale(0.7);
  transform-origin: center center;
}

.document-status {
  transform: scale(0.95);
  transform-origin: center center;
}

.container-tilt-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.75);
  z-index: -10;
  pointer-events: none;
}
@media (min-width: 768px) {
  .container-tilt-wrapper {
    padding: 0;
  }
}

.container-tilt-perspective {
  width: 100%;
  max-width: 80rem;
  position: relative;
  perspective: 1000px;
  perspective-origin: center top;
}

.container-tilt-card {
  width: 100%;
  max-width: 28rem;
  height: 14rem;
  margin: -1rem auto 0;
  border: 2px solid #6c6c6c;
  padding: 0.2rem;
  background: #222222;
  border-radius: 16px;
  box-shadow: 0 0 rgba(0, 0, 0, 0.3019607843), 0 3px 8px rgba(0, 0, 0, 0.2901960784), 0 12px 12px rgba(0, 0, 0, 0.2588235294), 0 28px 18px rgba(0, 0, 0, 0.1490196078), 0 50px 20px rgba(0, 0, 0, 0.0392156863), 0 80px 22px rgba(0, 0, 0, 0.0117647059);
  transform-style: preserve-3d;
  will-change: transform;
}
@media (min-width: 768px) {
  .container-tilt-card {
    height: 14rem;
    padding: 3px;
  }
}

.container-tilt-content {
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  background: #f3f4f6;
  padding: 1rem;
}
@media (prefers-color-scheme: dark) {
  .container-tilt-content {
    background: #18181b;
  }
}
@media (min-width: 768px) {
  .container-tilt-content {
    border-radius: 1rem;
    padding: 1rem;
  }
}

.oaklet-feat {
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}
.oaklet-feat__email-phase {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 300px;
  overflow: hidden;
}
.oaklet-feat__calendar-phase {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  z-index: 100;
  overflow: hidden;
}
.oaklet-feat__document-phase {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 300px;
  overflow: hidden;
}
.oaklet-feat__ai-phase {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  z-index: 100;
}

.text-shimmer {
  display: inline-block;
  font-weight: 500;
  background: linear-gradient(to right, #d2e3f2 0%, #828b9d 35%, #585c73 50%, #979ba7 65%, #d9e7f1 100%);
  background-size: 200% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerEffect 2.5s linear infinite;
}

@keyframes shimmerEffect {
  0% {
    background-position: 200% 50%;
  }
  100% {
    background-position: -200% 50%;
  }
}
.oaklet-ai-animation {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.oaklet-ai-animation__video-wrapper, .oaklet-ai-animation__glass-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

@keyframes shrinkToPill {
  0% {
    width: 400px;
    height: 225px;
    border-radius: 14px;
  }
  100% {
    width: 100px;
    height: 40px;
    border-radius: 20px;
  }
}
.video-container {
  position: relative;
  will-change: transform, width, height, border-radius;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.video-container--scaling {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.liquid-glass-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 0.5rem;
  white-space: nowrap;
  height: 3.5rem;
  padding: 0 2.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--primary, #333);
  transition: all 300ms;
  flex-shrink: 0;
  outline: none;
  border: none;
}
.liquid-glass-button:hover {
  transform: scale(1.05);
}
.liquid-glass-button:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.liquid-glass-shadow {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  transition: all 300ms;
  box-shadow: inset 3px 3px 0.5px -3px rgba(0, 0, 0, 0.9), inset -3px -3px 0.5px -3px rgba(0, 0, 0, 0.85), inset 1px 1px 1px -0.5px rgba(0, 0, 0, 0.6), inset -1px -1px 1px -0.5px rgba(0, 0, 0, 0.6), inset 0 0 6px 6px rgba(0, 0, 0, 0.12), inset 0 0 2px 2px rgba(0, 0, 0, 0.06);
}

.liquid-glass-content {
  pointer-events: none;
  z-index: 10;
}

.email-composer {
  width: 100%;
  max-width: 350px;
  position: relative;
  margin: 0 auto;
  transform: scale(0.9);
  transform-origin: center center;
}

.email-composer__stack-container {
  position: relative;
  width: 100%;
  min-height: 280px;
  max-height: 350px;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.email-composer__card {
  background: white;
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 12px;
  padding: 12px;
  position: absolute;
  width: 100%;
  max-width: 320px;
  min-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.email-composer__card--default {
  animation: emailSlideIn 0.5s ease-out forwards;
}
.email-composer__card--patient {
  top: 40px;
  left: 45%;
  transform: translateX(-50%);
  z-index: 1;
  animation: patientCardSlide 0.6s ease-out forwards;
}
.email-composer__card--doctor {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: doctorCardSlide 0.6s ease-out forwards;
}
.email-composer__card--bubble-pop {
  animation: bubblePop 0.6s ease-out forwards !important;
}

@keyframes emailSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes patientCardSlide {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
@keyframes doctorCardSlide {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
.email-composer__email-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.email-composer__field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.email-composer__label {
  font-size: 12px;
  color: #333;
  font-weight: 500;
  min-width: 40px;
}

.email-composer__user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #333;
  font-weight: 450;
}

.email-composer__avatar {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.email-composer__avatar--doctor {
  background: rgba(59, 131, 246, 0.8196078431);
}
.email-composer__avatar--patient {
  background: rgba(133, 145, 172, 0.8);
}

.email-composer__divider {
  height: 1px;
  background: rgba(128, 128, 128, 0.3);
  margin: 12px 0;
}

.email-composer__message {
  line-height: 1.4;
  font-size: 12px;
  color: #333;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.email-composer__greeting {
  margin-bottom: 12px;
  font-weight: 450;
  color: #333;
}

.email-composer__content {
  margin-bottom: 10px;
  line-height: 1.4;
  color: #333;
  font-size: 11px;
}

.email-composer__signature {
  color: #333;
  font-size: 12px;
}

.email-composer__text-generating .char-span {
  display: inline;
  opacity: 0;
  animation: charFadeIn 0.05s ease forwards;
}

@keyframes charFadeIn {
  to {
    opacity: 1;
  }
}
.email-composer__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.email-composer__actions-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.email-composer__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.email-composer__btn--explain {
  background: rgba(107, 114, 128, 0.15);
  color: #6b7280;
  border: 1px solid rgba(107, 114, 128, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.email-composer__btn--explain:hover {
  background: rgba(107, 114, 128, 0.25);
  transform: translateY(-1px);
}
.email-composer__btn--explain--bouncing {
  animation: explainBounce 0.6s ease;
}
.email-composer__btn--edit {
  background: #333;
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.email-composer__btn--edit:hover {
  background: #404040;
  transform: translateY(-1px);
}
.email-composer__btn--edit--bouncing {
  animation: editBounce 0.6s ease;
}
.email-composer__btn--approve {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
}
.email-composer__btn--approve:hover {
  background: #2563eb;
  transform: translateY(-1px);
}
.email-composer__btn--approve--clicked {
  animation: approveClick 0.6s ease forwards;
}
.email-composer__btn--approve--bouncing {
  animation: approveBounce 0.6s ease;
}

.email-composer__btn-icon {
  font-size: 14px;
}

.email-composer__explanation-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 12px;
  z-index: 999;
  animation: explanationOverlay 0.3s ease forwards;
}

.email-composer__explanation {
  position: absolute;
  color: black;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(170, 170, 170, 0.2);
  border-radius: 12px;
  z-index: 1000;
  animation: explanationPopup 0.3s ease-out forwards;
}

@keyframes explanationOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes explanationPopup {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
.email-composer__explanation-title {
  font-size: 13px;
  font-weight: 500;
  color: black;
  margin-bottom: 12px;
}

.email-composer__explanation-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.email-composer__explanation-list li {
  font-size: 11px;
  color: black;
  margin-bottom: 8px;
  padding-left: 12px;
  position: relative;
  line-height: 1.4;
}
.email-composer__explanation-list li::before {
  content: "•";
  color: rgb(59, 130, 246);
  position: absolute;
  left: 0;
  font-weight: bold;
}

@keyframes approveClick {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(0.95);
  }
  50% {
    transform: scale(1.05);
    background: linear-gradient(135deg, #047857, #10b981);
  }
  100% {
    transform: scale(1);
    background: linear-gradient(135deg, #059669, #047857);
  }
}
@keyframes buttonBounce {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.15);
  }
  50% {
    transform: scale(0.95);
  }
  70% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes explainBounce {
  0% {
    transform: scale(1);
    background: rgba(107, 114, 128, 0.15);
  }
  30% {
    transform: scale(1.2);
    background: rgba(107, 114, 128, 0.25);
  }
  50% {
    transform: scale(0.9);
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    background: rgba(107, 114, 128, 0.15);
  }
}
@keyframes editBounce {
  0% {
    transform: scale(1);
    background: #333;
  }
  30% {
    transform: scale(1.2);
    background: #404040;
  }
  50% {
    transform: scale(0.9);
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    background: #333;
  }
}
@keyframes approveBounce {
  0% {
    transform: scale(1);
    background: #3b82f6;
  }
  30% {
    transform: scale(1.15);
    background: #2563eb;
  }
  50% {
    transform: scale(0.95);
  }
  70% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    background: #3b82f6;
  }
}
.email-composer__confirmation {
  position: absolute;
  color: black;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(170, 170, 170, 0.2);
  border-radius: 12px;
  z-index: 1000;
  animation: explanationPopup 0.3s ease-out forwards;
}

.email-composer__confirmation-title {
  font-size: 13px;
  font-weight: 500;
  color: black;
  margin-bottom: 12px;
}

.email-composer__confirmation-content p {
  font-size: 11px;
  color: black;
  line-height: 1.4;
  margin: 0;
}

.email-composer__calendar-success {
  position: absolute;
  color: black;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(170, 170, 170, 0.2);
  border-radius: 12px;
  z-index: 1000;
  animation: explanationPopup 0.3s ease-out forwards;
}

.email-composer__calendar-success-title {
  font-size: 13px;
  font-weight: 500;
  color: black;
  margin-bottom: 12px;
}

.email-composer__calendar-success-content p {
  font-size: 11px;
  color: black;
  line-height: 1.4;
  margin: 0 0 12px 0;
}

.email-composer__mini-calendar {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px;
  animation: calendarSlideIn 0.5s ease forwards;
}

.email-composer__calendar-header {
  font-size: 10px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.email-composer__time-slots {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.email-composer__time-slot {
  padding: 4px 6px;
  font-size: 9px;
  color: #666;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  border: 1px dashed rgba(0, 0, 0, 0.1);
  animation: slotFadeIn 0.3s ease forwards;
}
.email-composer__time-slot--blocked {
  background: rgba(42, 157, 143, 0.15);
  border: 1px solid rgba(42, 157, 143, 0.3);
  color: #2a9d8f;
  font-weight: 500;
  animation: slotBlockIn 0.5s ease forwards;
  animation-delay: 0.2s;
}
.email-composer__time-slot--blocked::before {
  content: "●";
  margin-right: 4px;
  color: #2a9d8f;
}

@keyframes calendarSlideIn {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slotFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes slotBlockIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.4);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    background: rgba(42, 157, 143, 0.15);
  }
}
@keyframes bubblePop {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: translateX(-50%) scale(0);
    opacity: 0;
  }
}
@keyframes sentOverlay {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes sentBounce {
  0% {
    transform: scale(0.8) translateY(10px);
    opacity: 0;
  }
  50% {
    transform: scale(1.1) translateY(0);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
@keyframes calendarOverlay {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes calendarBounce {
  0% {
    transform: scale(0.8) translateY(10px);
    opacity: 0;
  }
  50% {
    transform: scale(1.1) translateY(0);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
@keyframes circleToRectangle {
  0% {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    opacity: 0.3;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    overflow: hidden;
  }
  30% {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    opacity: 0.7;
    overflow: hidden;
  }
  60% {
    width: 100%;
    height: 60px;
    border-radius: 30px;
    opacity: 0.9;
    overflow: hidden;
  }
  80% {
    width: 100%;
    height: 120px;
    border-radius: 20px;
    opacity: 0.95;
    overflow: hidden;
  }
  100% {
    width: 100%;
    height: auto;
    border-radius: 12px;
    opacity: 1;
    transform: translate(0, 0);
    left: 0;
    top: 0;
    overflow: visible;
  }
}
.email-composer__reading-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  border-radius: inherit;
  overflow: hidden;
}
.email-composer__reading-overlay--active {
  opacity: 1;
}

.email-composer__card--patient:has(.email-composer__reading-overlay--active) .email-composer__field,
.email-composer__card--patient:has(.email-composer__reading-overlay--active) .email-composer__greeting,
.email-composer__card--patient:has(.email-composer__reading-overlay--active) .email-composer__content {
  background: linear-gradient(90deg, #333 25%, rgba(16, 185, 129, 0.8) 50%, #333 75%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: textShimmer 2s linear infinite;
}

@supports not selector(:has(*)) {
  .email-composer__reading-overlay--active ~ * .email-composer__field,
  .email-composer__reading-overlay--active ~ * .email-composer__greeting,
  .email-composer__reading-overlay--active ~ * .email-composer__content {
    background: linear-gradient(90deg, #333 25%, rgba(16, 185, 129, 0.8) 50%, #333 75%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: textShimmer 2s linear infinite;
  }
}
@keyframes textShimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}
@keyframes readingSweep {
  0% {
    left: -100%;
  }
  50% {
    left: 0%;
  }
  100% {
    left: 100%;
  }
}
.email-composer__auto-cursor {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.6), transparent);
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
}
.email-composer__auto-cursor--active {
  opacity: 1;
  animation: autoClick 0.3s ease-out;
}
.email-composer__auto-cursor::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.4);
  animation: clickRipple 0.3s ease-out;
}

@keyframes autoClick {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
@keyframes clickRipple {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
.email-composer__edit-highlight {
  color: #3b82f6 !important;
  position: relative;
  line-height: 1.4;
}
.email-composer__edit-highlight::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  right: 0;
  height: 2px;
  background: #3b82f6;
  opacity: 1;
  transform: scaleX(1);
  animation: editUnderlineIn 0.5s ease;
}

@keyframes editUnderlineIn {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}
.email-composer__calendar-update {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 8px;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(10px);
}
.email-composer__calendar-update--active {
  opacity: 1;
  transform: translateY(0);
  animation: calendarSlideIn 0.6s ease-out forwards;
}

.email-composer__calendar-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  color: #333;
  font-size: 12px;
  animation: slotAppear 0.4s ease-out forwards;
}

.email-composer__calendar-icon {
  width: 16px;
  height: 16px;
  background: #10b981;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
}

@keyframes calendarSlideIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slotAppear {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.email-composer__patient-email {
  opacity: 0;
  transform: translateX(-20px);
}
.email-composer__patient-email--visible {
  opacity: 1;
  transform: translateX(0);
  animation: emailFadeIn 1s ease-out forwards;
}

@keyframes emailFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (max-width: 768px) {
  .email-composer__actions {
    gap: 6px;
  }
  .email-composer__btn {
    justify-content: center;
  }
  .email-composer__explanation {
    width: calc(100vw - 40px);
    max-width: 280px;
  }
}
.calendar-viz {
  width: 100%;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  transform: scale(0.18);
  transform-origin: center center;
}
@media (max-width: 768px) {
  .calendar-viz {
    min-height: 600px;
  }
}
.calendar-viz__cursor {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 157, 143, 0.6), transparent);
  pointer-events: none;
  z-index: 1000;
  animation: clickPulse 0.3s ease-out;
}
.calendar-viz__cursor::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(42, 157, 143, 0.4);
  animation: clickRipple 0.3s ease-out;
}
.calendar-viz__container {
  width: 100%;
  min-height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.calendar-viz__calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  animation: fadeInScale 0.4s ease;
}
.calendar-viz__calendar--week .calendar-viz__day {
  height: 36px;
  font-size: 0.7rem;
}
.calendar-viz__day {
  position: relative;
  height: 28px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  cursor: default;
}
.calendar-viz__day-number {
  font-size: 0.5rem;
  color: #333;
  font-weight: 500;
  line-height: 1;
}
.calendar-viz__day-dot {
  position: absolute;
  bottom: 2px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #2a9d8f;
}
.calendar-viz__day-check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2a9d8f;
  animation: checkIn 0.3s ease;
}
.calendar-viz__day-check svg {
  width: 8px;
  height: 8px;
}
.calendar-viz__day--booked {
  background: rgba(220, 53, 69, 0.12);
  border-color: rgba(220, 53, 69, 0.3);
}
.calendar-viz__day--booked .calendar-viz__day-number {
  color: #dc3545;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  font-weight: 500;
}
.calendar-viz__day--booked::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 3px;
  background: linear-gradient(135deg, transparent, rgba(220, 53, 69, 0.1));
}
.calendar-viz__day--selected {
  background: rgba(13, 110, 253, 0.12);
  border-color: rgba(13, 110, 253, 0.4);
  animation: selectPulse 0.4s ease;
}
.calendar-viz__day--selected .calendar-viz__day-number {
  color: #0d6efd;
  font-weight: 600;
}
.calendar-viz__day--selected::before {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0d6efd;
}
.calendar-viz__day--available {
  background: rgba(42, 157, 143, 0.15);
  border-color: #2a9d8f;
  box-shadow: inset 0 0 4px rgba(42, 157, 143, 0.1);
}
.calendar-viz__day--available .calendar-viz__day-number {
  color: rgb(31.2361809045, 116.7638190955, 106.351758794);
  font-weight: 600;
}
.calendar-viz__day--optimizing {
  background: rgba(255, 193, 7, 0.08);
  border-color: rgba(255, 193, 7, 0.25);
  position: relative;
  overflow: hidden;
}
.calendar-viz__day--optimizing::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.15), transparent);
  animation: shimmer 1.5s infinite;
}
.calendar-viz__day--optimizing .calendar-viz__day-number {
  color: #f59e0b;
  font-weight: 500;
}
.calendar-viz__day--pulsing {
  animation: aiClick 0.5s ease;
  background: rgba(147, 51, 234, 0.1);
  border-color: rgba(147, 51, 234, 0.4);
  box-shadow: 0 0 8px rgba(147, 51, 234, 0.3);
}
.calendar-viz__day--pulsing .calendar-viz__day-number {
  color: #7c3aed;
  font-weight: 600;
}
.calendar-viz__timeline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  animation: fadeInScale 0.4s ease;
}
.calendar-viz__slot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 3px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  min-height: 20px;
}
.calendar-viz__slot-time {
  font-size: 0.5rem;
  color: #666;
  font-weight: 500;
  min-width: 28px;
  line-height: 1;
}
.calendar-viz__slot-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.calendar-viz__slot-label {
  font-size: 0.55rem;
  color: #333;
  font-weight: 500;
  line-height: 1.1;
}
.calendar-viz__slot-indicator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #2a9d8f;
  animation: pulse 2s infinite;
}
.calendar-viz__slot--appointment {
  background: rgba(13, 110, 253, 0.08);
  border-color: rgba(13, 110, 253, 0.25);
  border-left: 2px solid #0d6efd;
}
.calendar-viz__slot--appointment .calendar-viz__slot-label {
  color: #0856c7;
  font-weight: 500;
}
.calendar-viz__slot--available {
  opacity: 0.6;
  border-style: dashed;
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.1);
}
.calendar-viz__slot--available .calendar-viz__slot-label {
  color: #999;
}
.calendar-viz__slot--documentation {
  background: rgba(42, 157, 143, 0.08);
  border-color: rgba(42, 157, 143, 0.2);
  border-left: 2px solid #2a9d8f;
}
.calendar-viz__slot--documentation .calendar-viz__slot-label {
  color: #2a9d8f;
  font-weight: 500;
}
.calendar-viz__slot--break {
  background: rgba(255, 193, 7, 0.06);
  border-color: rgba(255, 193, 7, 0.15);
  border-style: dashed;
}
.calendar-viz__slot--break .calendar-viz__slot-label {
  color: #f59e0b;
  font-style: italic;
}
.calendar-viz__slot--highlighted {
  background: rgba(42, 157, 143, 0.1);
  border-color: #2a9d8f;
  box-shadow: 0 0 4px rgba(42, 157, 143, 0.15);
}
.calendar-viz__slot--moving {
  animation: slideInGlow 0.5s ease forwards;
}
.calendar-viz__action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}
.calendar-viz__action-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2a9d8f;
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}
.calendar-viz__action-text {
  font-size: 0.875rem;
  color: #333;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.01em;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}
@keyframes checkIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes selectPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(42, 157, 143, 0.3);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(42, 157, 143, 0);
  }
}
@keyframes aiClick {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(0.97);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 6px rgba(42, 157, 143, 0.3);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes slideInGlow {
  from {
    opacity: 0;
    transform: translateX(-5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    box-shadow: 0 0 3px rgba(42, 157, 143, 0.1);
  }
}
@keyframes clickPulse {
  from {
    transform: scale(0);
    opacity: 1;
  }
  to {
    transform: scale(1);
    opacity: 0;
  }
}
@keyframes clickRipple {
  from {
    transform: scale(0.5);
    opacity: 1;
  }
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}
.document-status {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 0;
  overflow: visible !important;
  position: relative;
  transform: scale(0.95);
  transform-origin: center center;
}

.document-status__header {
  text-align: center;
}

.document-status__title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.document-status__cards-container {
  position: relative;
  width: 100%;
  min-height: 200px;
  perspective: 1000px;
}

.document-status__cards-container--phase-1 {
  overflow: visible !important;
  min-width: 200px;
}
.document-status__cards-container--phase-1 .document-status__card {
  position: absolute;
  width: 90px;
  height: 130px;
  top: 30px;
}
.document-status__cards-container--phase-1 .document-status__card--left {
  left: 50%;
  margin-left: -80px;
  transform: rotate(-6deg);
  z-index: 1;
  background-color: white;
}
.document-status__cards-container--phase-1 .document-status__card--middle {
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background-color: white;
}
.document-status__cards-container--phase-1 .document-status__card--right {
  left: 50%;
  transform: rotate(6deg);
  z-index: 1;
  background-color: white;
}

.document-status__cards-container--phase-2,
.document-status__cards-container--phase-3 {
  overflow: hidden;
}
.document-status__cards-container--phase-2 .document-status__card--left,
.document-status__cards-container--phase-2 .document-status__card--right,
.document-status__cards-container--phase-3 .document-status__card--left,
.document-status__cards-container--phase-3 .document-status__card--right {
  display: none;
}
.document-status__cards-container--phase-2 .document-status__card,
.document-status__cards-container--phase-3 .document-status__card {
  position: absolute;
  top: 20px;
}
.document-status__cards-container--phase-2 .document-status__card--middle,
.document-status__cards-container--phase-3 .document-status__card--middle {
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 280px;
}

.document-status__cards-container--phase-3 {
  overflow: visible;
}
.document-status__cards-container--phase-3 .document-status__card--middle {
  width: 240px;
  height: 300px;
  padding: 15px;
  transform: translateX(-50%);
  transition: all 0.6s ease;
}

.search-bar--integration .document-status__cards-container--phase-3 {
  overflow: visible !important;
  min-height: 300px;
}

.document-status__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(128, 128, 128, 0.1);
  border-radius: 8px;
  padding: 10px;
  transition: all 0.4s ease;
  position: relative;
}
.document-status__card--middle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(128, 128, 128, 0.1);
}
.document-status__card--left, .document-status__card--right {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(128, 128, 128, 0.1);
}
.document-status__card--single {
  animation: fadeIn 0.5s ease;
}
.document-status__card--shimmer {
  animation: cardShimmer 2s ease-in-out infinite;
}

@keyframes cardShimmer {
  0%, 100% {
    background: rgba(255, 255, 255, 0.05);
  }
  50% {
    background: rgba(255, 255, 255, 0.08);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}
.document-status__card-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.document-status__card-line {
  height: 3px;
  background: rgba(74, 85, 104, 0.2);
  border-radius: 2px;
  width: 100%;
}
.document-status__card-line:nth-child(2) {
  width: 70%;
}
.document-status__card-line:nth-child(4) {
  width: 85%;
}

.document-status__phase-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.document-status__phase-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: phasePulse 2s ease-in-out infinite;
}

@keyframes phasePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}
.document-status__phase-text {
  font-size: 11px;
  color: #6b7280;
  font-weight: 450;
  letter-spacing: 0.02em;
}

.document-status__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 110px;
  overflow: hidden;
  position: relative;
}

.document-status__line {
  height: 3px;
  background: rgba(74, 85, 104, 0.15);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  width: 100%;
  transition: all 0.3s ease;
}
.document-status__line--fragmented {
  width: 45%;
  background: rgba(74, 85, 104, 0.25);
}
.document-status__line--declassified {
  position: relative;
  overflow: hidden;
}
.document-status__line--declassified::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: rgba(239, 68, 68, 0.4);
  animation: redactSweep 0.6s ease-out forwards;
}
.document-status__line--short {
  width: 35%;
}
.document-status__line--medium {
  width: 65%;
}
.document-status__line--long {
  width: 85%;
}
.document-status__line--continuation {
  width: 70%;
  margin-left: 15px;
}
.document-status__line--manual-entry {
  position: relative;
  overflow: hidden;
}
.document-status__line--manual-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: rgba(147, 51, 234, 0.4);
  animation: purpleSweep 0.8s ease-out forwards;
}
.document-status__line--reading {
  background: rgba(74, 85, 104, 0.15);
  animation: lineShimmer 2s ease-in-out infinite;
}
.document-status__line--waiting {
  opacity: 0;
  width: 0;
}
.document-status__line--generated {
  animation: lineAppear 0.3s ease-out forwards;
}

@keyframes lineShimmer {
  0%, 100% {
    background: rgba(74, 85, 104, 0.15);
  }
  50% {
    background: rgba(74, 85, 104, 0.3);
  }
}
@keyframes redactSweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes purpleSweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes lineAppear {
  from {
    opacity: 0;
    width: 0;
  }
  to {
    opacity: 1;
    width: var(--line-width, 100%);
  }
}
.document-status__line-bar {
  display: block;
  height: 3px;
  width: 100%;
  background: inherit;
  border-radius: inherit;
}

.document-status__fade-bottom {
  color: white;
}

.text-shimmer {
  display: inline-block;
  font-weight: 500;
  background: linear-gradient(to right, #d2e3f2 0%, #828b9d 35%, #585c73 50%, #979ba7 65%, #d9e7f1 100%);
  background-size: 200% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerEffect 2.5s linear infinite;
}

@keyframes shimmerEffect {
  0% {
    background-position: 200% 50%;
  }
  100% {
    background-position: -200% 50%;
  }
}
.text-generate-effect .word-span {
  display: inline-block;
  margin-right: 0.25em;
  opacity: 0;
  transform: translateY(5px);
  animation: wordFadeIn 0.5s ease forwards;
}
.text-generate-effect .word-span:nth-child(1) {
  animation-delay: 0.05s;
}
.text-generate-effect .word-span:nth-child(2) {
  animation-delay: 0.1s;
}
.text-generate-effect .word-span:nth-child(3) {
  animation-delay: 0.15s;
}
.text-generate-effect .word-span:nth-child(4) {
  animation-delay: 0.2s;
}
.text-generate-effect .word-span:nth-child(5) {
  animation-delay: 0.25s;
}
.text-generate-effect .word-span:nth-child(6) {
  animation-delay: 0.3s;
}
.text-generate-effect .word-span:nth-child(7) {
  animation-delay: 0.35s;
}
.text-generate-effect .word-span:nth-child(8) {
  animation-delay: 0.4s;
}
.text-generate-effect .word-span:nth-child(9) {
  animation-delay: 0.45s;
}
.text-generate-effect .word-span:nth-child(10) {
  animation-delay: 0.5s;
}
.text-generate-effect .word-span:nth-child(11) {
  animation-delay: 0.55s;
}
.text-generate-effect .word-span:nth-child(12) {
  animation-delay: 0.6s;
}
.text-generate-effect .word-span:nth-child(13) {
  animation-delay: 0.65s;
}
.text-generate-effect .word-span:nth-child(14) {
  animation-delay: 0.7s;
}
.text-generate-effect .word-span:nth-child(15) {
  animation-delay: 0.75s;
}
.text-generate-effect .word-span:nth-child(16) {
  animation-delay: 0.8s;
}
.text-generate-effect .word-span:nth-child(17) {
  animation-delay: 0.85s;
}
.text-generate-effect .word-span:nth-child(18) {
  animation-delay: 0.9s;
}
.text-generate-effect .word-span:nth-child(19) {
  animation-delay: 0.95s;
}
.text-generate-effect .word-span:nth-child(20) {
  animation-delay: 1s;
}

@keyframes wordFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.calendar-3d {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(20px);
  overflow: hidden;
  transform: scale(0.85);
  transform-origin: center center;
}
.calendar-3d__header {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: 400px;
  z-index: 100;
  animation: fade-in 0.6s ease;
  padding: 0 10px;
}
.calendar-3d__title {
  font-size: 11px;
  font-weight: 500;
  color: #333;
  margin: 0;
  letter-spacing: 0.3px;
  line-height: 1.5;
  transition: all 0.3s ease;
}
.calendar-3d__wall-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: visible;
  transform-style: preserve-3d;
  position: relative;
}
.calendar-3d__wall {
  margin: 0 auto;
  transform-style: preserve-3d;
}
.calendar-3d__grid {
  transform-style: preserve-3d;
}
.calendar-3d__day-container {
  transform-style: preserve-3d;
}
.calendar-3d__header-old {
  position: absolute;
  top: 16rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: 600px;
  z-index: 100;
  animation: fade-in 0.6s ease;
  padding: 0 20px;
}
.calendar-3d__title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin: 0;
  letter-spacing: 0.3px;
  line-height: 1.5;
  transition: all 0.3s ease;
}
.calendar-3d__wall-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: visible;
  transform-style: preserve-3d;
  position: relative;
}
.calendar-3d__wall {
  margin: 0 auto;
  transform-style: preserve-3d;
}
.calendar-3d__grid {
  transform-style: preserve-3d;
}
.calendar-3d__day-container {
  transform-style: preserve-3d;
}
.calendar-3d__day {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 4px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
}
.calendar-3d__day:hover {
  transform: translateZ(20px) scale(1.05);
  background: rgb(255, 255, 255);
  border-color: #2a9d8f;
}
.calendar-3d__day-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2px;
}
.calendar-3d__day-number {
  font-size: 11px;
  font-weight: 600;
  color: #333;
  line-height: 1;
}
.calendar-3d__day-weekday {
  font-size: 7px;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.calendar-3d__day-footer {
  position: absolute;
  bottom: 2px;
  left: 4px;
  right: 4px;
  font-size: 6px;
  color: #888;
  text-align: center;
  font-weight: 500;
}
.calendar-3d__day--conflict {
  background: rgba(220, 53, 69, 0.15);
  border-color: rgba(220, 53, 69, 0.4);
}
.calendar-3d__day--conflict .calendar-3d__day-number {
  color: #dc3545;
}
.calendar-3d__day--conflict::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 6px;
  background: linear-gradient(135deg, transparent, rgba(220, 53, 69, 0.1));
  pointer-events: none;
}
.calendar-3d__day--highlighted {
  background: rgba(42, 157, 143, 0.15);
  border-color: #2a9d8f;
}
.calendar-3d__day--highlighted .calendar-3d__day-number {
  color: rgb(25.8542713568, 96.6457286432, 88.027638191);
}
.calendar-3d__day--highlighted::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2a9d8f;
}
.calendar-3d__day--optimizing {
  background: rgba(255, 193, 7, 0.15);
  border-color: rgba(255, 193, 7, 0.4);
  position: relative;
  overflow: hidden;
}
.calendar-3d__day--optimizing::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.2), transparent);
  animation: shimmer-3d 1.5s infinite;
  pointer-events: none;
}
.calendar-3d__day--optimizing .calendar-3d__day-number {
  color: #f59e0b;
}
.calendar-3d__day--available {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
}
.calendar-3d__day--available .calendar-3d__day-number {
  color: #16a34a;
}
.calendar-3d__day--available::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: rgba(34, 197, 94, 0.6);
  font-weight: bold;
  animation: checkmark-pulse 1s ease infinite;
}
.calendar-3d__day--pulsing {
  animation: pulse-3d 0.8s ease infinite;
  border-color: rgba(147, 51, 234, 0.6);
}
.calendar-3d__day--pulsing .calendar-3d__day-number {
  color: #7c3aed;
}
.calendar-3d__events {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.calendar-3d__event {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}
.calendar-3d__event:hover {
  transform: translateZ(25px) scale(1.4);
}
.calendar-3d__event--consultation {
  background: #3b82f6;
}
.calendar-3d__event--procedure {
  background: #8b5cf6;
}
.calendar-3d__event--follow-up {
  background: #10b981;
}
.calendar-3d__event--emergency {
  background: #ef4444;
  animation: emergency-pulse 1.5s ease infinite;
}
.calendar-3d__action {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.05);
  animation: float-up 0.5s ease;
  z-index: 1000;
}
.calendar-3d__action-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a9d8f;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}
.calendar-3d__action-text {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.3px;
  max-width: 400px;
}

@keyframes shimmer-3d {
  0% {
    transform: translateX(-100%) rotateY(0deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(200%) rotateY(15deg);
    opacity: 0;
  }
}
@keyframes pulse-3d {
  0%, 100% {
    transform: scale(1) translateZ(0px);
  }
  50% {
    transform: scale(1.05) translateZ(10px);
  }
}
@keyframes checkmark-pulse {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}
@keyframes emergency-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}
@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}
@keyframes float-up {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@media (max-width: 1200px) {
  .calendar-3d__wall {
    transform: scale(0.9);
  }
  .calendar-3d__title {
    font-size: 1.75rem;
  }
}
@media (max-width: 768px) {
  .calendar-3d {
    padding: 1rem;
  }
  .calendar-3d__wall {
    transform: scale(0.7);
  }
  .calendar-3d__title {
    font-size: 1.5rem;
  }
  .calendar-3d__action {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    transform: none;
  }
  .calendar-3d__action-text {
    font-size: 13px;
  }
}
.calendar-3d__day,
.calendar-3d__event {
  will-change: transform;
  backface-visibility: hidden;
}

.calendar-3d__wall {
  will-change: transform;
  transform-style: preserve-3d;
}

.password-strength-meter {
  margin-top: 16px;
  margin-bottom: 16px;
}
.password-strength-meter .strength-bar {
  width: 100%;
  height: 6px;
  background-color: #FAFAFE;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: inset 2px 2px 4px rgba(241, 241, 245, 0.6), inset -2px -2px 4px rgba(255, 255, 255, 0.8);
}
.password-strength-meter .strength-bar .strength-bar-fill {
  height: 100%;
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 3px;
}
.password-strength-meter .strength-label {
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.password-strength-meter .password-requirements {
  background-color: #FAFAFE;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: inset 3px 3px 6px rgba(241, 241, 245, 0.5), inset -3px -3px 6px rgba(255, 255, 255, 0.7);
}
.password-strength-meter .password-requirements .requirements-title {
  font-size: 12px;
  font-weight: 600;
  color: #1E1E1E;
  margin-bottom: 8px;
}
.password-strength-meter .password-requirements .requirement {
  font-size: 12px;
  color: #979797;
  padding: 4px 0;
  transition: color 0.3s ease;
}
.password-strength-meter .password-requirements .requirement.met {
  color: #2A9D8F;
  font-weight: 500;
}

.verification-code-input {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}
.verification-code-input .code-digit {
  width: 48px;
  height: 56px;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 8px;
  background-color: #FAFAFE;
  color: #1E1E1E;
  outline: none;
  transition: all 0.3s ease;
  font-family: "Courier New", monospace;
  box-shadow: inset 4px 4px 8px rgba(241, 241, 245, 0.6), inset 2px 2px 4px rgba(241, 241, 245, 0.8), inset -4px -4px 8px rgba(255, 255, 255, 0.7), inset -2px -2px 4px rgba(255, 255, 255, 0.9);
}
.verification-code-input .code-digit:focus, .verification-code-input .code-digit.active {
  box-shadow: inset 5px 5px 10px rgba(241, 241, 245, 0.7), inset 3px 3px 6px rgba(241, 241, 245, 0.9), inset -5px -5px 10px rgba(255, 255, 255, 0.8), inset -3px -3px 6px rgb(255, 255, 255), 0 0 0 2px rgba(42, 157, 143, 0.3);
}
.verification-code-input .code-digit.filled {
  color: #2A9D8F;
  font-weight: 700;
}
.verification-code-input .code-digit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.verification-code-input .code-digit:-webkit-autofill {
  -webkit-box-shadow: inset 4px 4px 8px rgba(241, 241, 245, 0.6), inset 2px 2px 4px rgba(241, 241, 245, 0.8), inset -4px -4px 8px rgba(255, 255, 255, 0.7), inset -2px -2px 4px rgba(255, 255, 255, 0.9);
  -webkit-text-fill-color: #1E1E1E;
}
@media (max-width: 480px) {
  .verification-code-input {
    gap: 6px;
  }
  .verification-code-input .code-digit {
    width: 40px;
    height: 48px;
    font-size: 20px;
  }
}

.dashboard-page {
  height: calc(100vh - 72px);
  padding: 20px 24px;
  background: #F5F5F9;
  overflow-y: auto;
}
.dashboard-page__wrapper {
  max-width: 1280px;
  margin: 0 auto;
}

.dashboard-welcome {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.dashboard-welcome__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dashboard-welcome__greeting {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.dashboard-welcome__context {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}
.dashboard-welcome__date {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-metric-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.dashboard-metric-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dashboard-metric-card__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dashboard-metric-card__value {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}
.dashboard-metric-card__label {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}
.dashboard-metric-card--blue .dashboard-metric-card__icon {
  background: #EFF6FF;
  color: #3B82F6;
}
.dashboard-metric-card--green .dashboard-metric-card__icon {
  background: #F0FDF4;
  color: #22C55E;
}
.dashboard-metric-card--orange .dashboard-metric-card__icon {
  background: #FFF7ED;
  color: #F97316;
}
.dashboard-metric-card--purple .dashboard-metric-card__icon {
  background: #F5F3FF;
  color: #8B5CF6;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dashboard-card {
  background: #fff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.dashboard-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #F3F4F6;
}
.dashboard-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashboard-card__title svg {
  color: #6b7280;
}
.dashboard-card__count {
  background: #EFF6FF;
  color: #3B82F6;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
}
.dashboard-card__body {
  padding: 0;
  flex: 1;
  overflow-y: auto;
  max-height: 440px;
}
.dashboard-card__loading {
  padding: 32px 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}
.dashboard-card__empty {
  padding: 48px 20px;
  text-align: center;
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.dashboard-card__empty svg {
  opacity: 0.4;
}
.dashboard-card__empty p {
  margin: 0;
  font-size: 14px;
}

.dashboard-appointments-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dashboard-appointments-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #F9FAFB;
}
.dashboard-appointments-list__item:last-child {
  border-bottom: none;
}
.dashboard-appointments-list__item:hover {
  background: #F9FAFB;
}
.dashboard-appointments-list__time {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  min-width: 72px;
  flex-shrink: 0;
}
.dashboard-appointments-list__details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dashboard-appointments-list__patient {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-appointments-list__type {
  font-size: 12px;
  color: #9ca3af;
}
.dashboard-appointments-list__status {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: capitalize;
  flex-shrink: 0;
}

.dashboard-status-icon--confirmed {
  color: #22C55E;
}
.dashboard-status-icon--cancelled {
  color: #EF4444;
}
.dashboard-status-icon--pending {
  color: #F59E0B;
}
.dashboard-status-icon--default {
  color: #9ca3af;
}

.dashboard-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dashboard-activity-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #F9FAFB;
}
.dashboard-activity-list__item:last-child {
  border-bottom: none;
}
.dashboard-activity-list__item:hover {
  background: #F9FAFB;
}
.dashboard-activity-list__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dashboard-activity-list__icon--payment {
  background: #F0FDF4;
  color: #22C55E;
}
.dashboard-activity-list__icon--invoice {
  background: #EFF6FF;
  color: #3B82F6;
}
.dashboard-activity-list__icon--claim {
  background: #FFF7ED;
  color: #F97316;
}
.dashboard-activity-list__icon--superbill {
  background: #F5F3FF;
  color: #8B5CF6;
}
.dashboard-activity-list__details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dashboard-activity-list__description {
  font-size: 14px;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-activity-list__patient {
  font-size: 12px;
  color: #9ca3af;
}
.dashboard-activity-list__amount {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  flex-shrink: 0;
}
.dashboard-activity-list__time {
  font-size: 12px;
  color: #9ca3af;
  flex-shrink: 0;
  min-width: 56px;
  text-align: right;
}

.dashboard-skeleton__header {
  height: 32px;
  background: #E5E7EB;
  border-radius: 8px;
  width: 300px;
  margin-bottom: 24px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.dashboard-skeleton__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.dashboard-skeleton__card {
  height: 88px;
  background: #E5E7EB;
  border-radius: 16px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.dashboard-skeleton__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dashboard-skeleton__panel {
  height: 360px;
  background: #E5E7EB;
  border-radius: 16px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@media (max-width: 1024px) {
  .dashboard-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-welcome {
    flex-direction: column;
    gap: 4px;
  }
}
@media (max-width: 480px) {
  .dashboard-metrics {
    grid-template-columns: 1fr;
  }
  .dashboard-page {
    padding: 16px;
  }
}
/**
 * Oaklet - Business Hours Editor Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Nolan W. Platt
 */
.business-hours-editor {
  background: white;
  border-radius: 8px;
  overflow: hidden;
}
.business-hours-editor .hours-table {
  width: 100%;
  border-collapse: collapse;
}
.business-hours-editor .hours-table thead tr {
  background: #f9fafb;
}
.business-hours-editor .hours-table thead tr th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border-bottom: 1px solid #e5e7eb;
}
.business-hours-editor .hours-table thead tr th:first-child {
  width: 15%;
}
.business-hours-editor .hours-table thead tr th:nth-child(2) {
  width: 25%;
}
.business-hours-editor .hours-table thead tr th:nth-child(3) {
  width: 30%;
}
.business-hours-editor .hours-table thead tr th:nth-child(4) {
  width: 30%;
  text-align: left;
}
.business-hours-editor .hours-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s ease;
}
.business-hours-editor .hours-table tbody tr:hover {
  background: #fafafa;
}
.business-hours-editor .hours-table tbody tr.closed {
  background: #fafafa;
}
.business-hours-editor .hours-table tbody tr.closed .day-label {
  color: #9ca3af;
}
.business-hours-editor .hours-table tbody tr.closed .status-text {
  color: #9ca3af;
}
.business-hours-editor .hours-table tbody tr td {
  padding: 1rem;
  vertical-align: middle;
}
.business-hours-editor .hours-table tbody tr td.day-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1f2937;
}
.business-hours-editor .hours-table tbody tr td.status-cell::before {
  content: "";
  display: inline-block;
  height: 38px;
  width: 0;
  vertical-align: middle;
}
.business-hours-editor .hours-table tbody tr td.status-cell .switch {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  width: 44px;
  height: 24px;
}
.business-hours-editor .hours-table tbody tr td.status-cell .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.business-hours-editor .hours-table tbody tr td.status-cell .switch input:checked + .slider {
  background-color: #374151;
}
.business-hours-editor .hours-table tbody tr td.status-cell .switch input:checked + .slider:before {
  transform: translateX(20px);
}
.business-hours-editor .hours-table tbody tr td.status-cell .switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  transition: 0.2s;
  border-radius: 24px;
}
.business-hours-editor .hours-table tbody tr td.status-cell .switch .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}
.business-hours-editor .hours-table tbody tr td.status-cell .status-text {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}
.business-hours-editor .hours-table tbody tr td.time-cell::before {
  content: "";
  display: inline-block;
  height: 38px;
  width: 0;
  vertical-align: middle;
}
.business-hours-editor .hours-table tbody tr td.time-cell .time-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
  background: white;
  width: 120px;
  vertical-align: middle;
  transition: all 0.15s ease;
}
.business-hours-editor .hours-table tbody tr td.time-cell .time-input:hover {
  border-color: #9ca3af;
}
.business-hours-editor .hours-table tbody tr td.time-cell .time-input:focus {
  outline: none;
  border-color: #374151;
  box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.1);
}
.business-hours-editor .hours-table tbody tr td.time-cell .disabled-time {
  display: inline-block;
  width: 120px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #d1d5db;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
}
.business-hours-editor .save-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
}
.business-hours-editor .save-section .save-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #374151;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.business-hours-editor .save-section .save-btn:hover:not(:disabled) {
  background: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(55, 65, 81, 0.2);
}
.business-hours-editor .save-section .save-btn:active:not(:disabled) {
  transform: translateY(0);
}
.business-hours-editor .save-section .save-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}
.business-hours-editor .save-section .save-btn svg {
  width: 18px;
  height: 18px;
}
.business-hours-editor .save-section .unsaved-notice {
  font-size: 0.875rem;
  color: #f59e0b;
  font-weight: 500;
}

@media (max-width: 768px) {
  .business-hours-editor {
    padding: 1rem;
  }
  .business-hours-editor .hours-table thead {
    display: none;
  }
  .business-hours-editor .hours-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.75rem;
  }
  .business-hours-editor .hours-table tbody tr:hover {
    background: white;
  }
  .business-hours-editor .hours-table tbody tr td {
    padding: 0;
  }
  .business-hours-editor .hours-table tbody tr td.day-label {
    grid-column: 1/-1;
    font-weight: 600;
    font-size: 1rem;
  }
  .business-hours-editor .hours-table tbody tr td.status-cell {
    grid-column: 1/-1;
  }
  .business-hours-editor .hours-table tbody tr td.time-cell .time-input {
    width: 100%;
  }
  .business-hours-editor .hours-table tbody tr td.status-indicator {
    grid-column: 1/-1;
    text-align: left;
  }
}
.auth-page {
  font-family: "Inter", sans-serif;
  background-color: #FAFAFE;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-page .auth-container {
  border-style: solid;
  border-width: 2px;
  border-color: white;
  background-color: #FAFAFE;
  border-radius: 24px;
  padding: 60px 50px;
  width: 100%;
  max-width: 680px;
  position: relative;
  box-shadow: inset 16px 16px 32px rgba(241, 241, 245, 0.5), inset 12px 12px 24px rgba(241, 241, 245, 0.6), inset 8px 8px 16px rgba(241, 241, 245, 0.7), inset 4px 4px 8px rgba(241, 241, 245, 0.8), inset -16px -16px 32px rgba(255, 255, 255, 0.5), inset -12px -12px 24px rgba(255, 255, 255, 0.6), inset -8px -8px 16px rgba(255, 255, 255, 0.7), inset -4px -4px 8px rgba(255, 255, 255, 0.8);
}
@media (max-width: 768px) {
  .auth-page .auth-container {
    max-width: 90%;
    padding: 50px 40px;
  }
}
@media (max-width: 480px) {
  .auth-page .auth-container {
    padding: 40px 30px;
    max-width: 100%;
  }
}
.auth-page .logo-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 40px;
  gap: 12px;
}
.auth-page .logo-container .logo-image {
  height: 32px;
  width: auto;
}
.auth-page .logo-container .logo-text {
  font-size: 28px;
  font-weight: 500;
  color: #2A9D8F;
}
.auth-page h1 {
  font-size: 32px;
  font-weight: 500;
  color: #1E1E1E;
  margin-bottom: 12px;
  text-align: left;
}
@media (max-width: 480px) {
  .auth-page h1 {
    font-size: 28px;
  }
}
.auth-page .subtitle {
  font-size: 14px;
  color: #1E1E1E;
  text-align: left;
  margin-bottom: 40px;
  font-weight: 400;
}
.auth-page .auth-form .form-group {
  margin-bottom: 24px;
}
.auth-page .auth-form .form-group.delivery-method-group {
  margin-bottom: 30px;
}
.auth-page .auth-form .form-group .delivery-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1E1E1E;
  margin-bottom: 16px;
  text-align: left;
}
.auth-page .auth-form .form-group .delivery-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-page .auth-form .form-group .delivery-option {
  position: relative;
  display: flex;
  align-items: center;
  padding: 16px;
  background-color: #FAFAFE;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: inset 3px 3px 6px rgba(241, 241, 245, 0.5), inset -3px -3px 6px rgba(255, 255, 255, 0.7);
}
.auth-page .auth-form .form-group .delivery-option:hover {
  box-shadow: inset 4px 4px 8px rgba(241, 241, 245, 0.6), inset -4px -4px 8px rgba(255, 255, 255, 0.8);
}
.auth-page .auth-form .form-group .delivery-option input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.auth-page .auth-form .form-group .delivery-option input[type=radio]:checked + .radio-custom {
  border-color: #2A9D8F;
  background-color: #2A9D8F;
  box-shadow: inset 2px 2px 4px rgba(34, 122, 113, 0.4), inset -2px -2px 4px rgba(46, 175, 163, 0.4);
}
.auth-page .auth-form .form-group .delivery-option input[type=radio]:checked + .radio-custom::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: white;
}
.auth-page .auth-form .form-group .delivery-option input[type=radio]:checked ~ .delivery-option-label .delivery-icon {
  color: #2A9D8F;
}
.auth-page .auth-form .form-group .delivery-option input[type=radio]:checked ~ .delivery-option-label strong {
  color: #2A9D8F;
}
.auth-page .auth-form .form-group .delivery-option .radio-custom {
  position: relative;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background-color: #FAFAFE;
  border: 2px solid #D1D1D5;
  margin-right: 12px;
  transition: all 0.3s ease;
  box-shadow: inset 2px 2px 4px rgba(241, 241, 245, 0.6), inset -2px -2px 4px rgba(255, 255, 255, 0.8);
}
.auth-page .auth-form .form-group .delivery-option .delivery-option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.auth-page .auth-form .form-group .delivery-option .delivery-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #979797;
  transition: color 0.3s ease;
}
.auth-page .auth-form .form-group .delivery-option .delivery-icon svg {
  width: 100%;
  height: 100%;
}
.auth-page .auth-form .form-group .delivery-option .delivery-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.auth-page .auth-form .form-group .delivery-option .delivery-text strong {
  font-size: 15px;
  font-weight: 600;
  color: #1E1E1E;
  transition: color 0.3s ease;
}
.auth-page .auth-form .form-group .delivery-option .delivery-text small {
  font-size: 12px;
  color: #979797;
  font-weight: 400;
}
.auth-page .auth-form .form-group .delivery-option:has(input:disabled) {
  opacity: 0.6;
  cursor: not-allowed;
}
.auth-page .auth-form .form-group input[type=email],
.auth-page .auth-form .form-group input[type=password],
.auth-page .auth-form .form-group input[type=text] {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  border: none;
  border-radius: 12px;
  background-color: #FAFAFE;
  color: #1E1E1E;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 5px 5px 10px rgba(241, 241, 245, 0.6), inset 3px 3px 6px rgba(241, 241, 245, 0.8), inset -5px -5px 10px rgba(255, 255, 255, 0.7), inset -3px -3px 6px rgba(255, 255, 255, 0.9);
}
.auth-page .auth-form .form-group input[type=email]:focus,
.auth-page .auth-form .form-group input[type=password]:focus,
.auth-page .auth-form .form-group input[type=text]:focus {
  box-shadow: inset 6px 6px 12px rgba(241, 241, 245, 0.7), inset 4px 4px 8px rgba(241, 241, 245, 0.9), inset -6px -6px 12px rgba(255, 255, 255, 0.8), inset -4px -4px 8px rgb(255, 255, 255);
}
.auth-page .auth-form .form-group input[type=email]::placeholder,
.auth-page .auth-form .form-group input[type=password]::placeholder,
.auth-page .auth-form .form-group input[type=text]::placeholder {
  color: #979797;
  font-weight: 400;
}
.auth-page .auth-form .remember-device {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  gap: 8px;
}
.auth-page .auth-form .remember-device .checkbox-wrapper {
  position: relative;
  width: 20px;
  height: 20px;
}
.auth-page .auth-form .remember-device .checkbox-wrapper input[type=checkbox] {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}
.auth-page .auth-form .remember-device .checkbox-wrapper input[type=checkbox]:checked + .checkbox-custom {
  background-color: #2A9D8F;
  border: 1px solid #2A9D8F;
  box-shadow: inset 2px 2px 4px rgba(34, 122, 113, 0.4), inset -2px -2px 4px rgba(46, 175, 163, 0.4);
}
.auth-page .auth-form .remember-device .checkbox-wrapper input[type=checkbox]:checked + .checkbox-custom::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: 600;
}
.auth-page .auth-form .remember-device .checkbox-wrapper .checkbox-custom {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background-color: #FAFAFE;
  border: 1px solid #D1D1D5;
  box-shadow: inset 2px 2px 4px rgba(241, 241, 245, 0.8), inset -2px -2px 4px rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}
.auth-page .auth-form .remember-device .remember-label {
  font-size: 14px;
  color: #979797;
  cursor: pointer;
  user-select: none;
}
.auth-page .auth-form .btn-primary,
.auth-page .auth-form button[type=submit] {
  width: 100%;
  padding: 14px;
  background-color: #2A9D8F;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: block;
  box-shadow: inset -2px -2px 4px rgba(46, 175, 163, 0.3), inset 2px 2px 4px rgba(34, 122, 113, 0.3);
}
.auth-page .auth-form .btn-primary:hover:not(:disabled),
.auth-page .auth-form button[type=submit]:hover:not(:disabled) {
  background-color: #238176;
  transform: translateY(-1px);
  box-shadow: inset -3px -3px 6px rgba(46, 175, 163, 0.4), inset 3px 3px 6px rgba(34, 122, 113, 0.4);
}
.auth-page .auth-form .btn-primary:active:not(:disabled),
.auth-page .auth-form button[type=submit]:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: inset 3px 3px 6px rgba(34, 122, 113, 0.5), inset -3px -3px 6px rgba(46, 175, 163, 0.5);
}
.auth-page .auth-form .btn-primary:disabled,
.auth-page .auth-form button[type=submit]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.auth-page .auth-links {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
}
.auth-page .auth-links a {
  color: #2A9D8F;
  text-decoration: none;
  transition: color 0.3s ease;
}
.auth-page .auth-links a:hover {
  color: #238176;
  text-decoration: underline;
}
.auth-page .auth-links .separator {
  color: #979797;
  margin: 0 8px;
}
.auth-page .admin-text {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #979797;
}
.auth-page .admin-text a {
  color: #2A9D8F;
  text-decoration: none;
}
.auth-page .admin-text a:hover {
  text-decoration: underline;
}
.auth-page .error-message {
  color: #ef4444;
  font-size: 13px;
  margin-top: 8px;
  margin-bottom: 16px;
  text-align: left;
}
.auth-page .success-message {
  text-align: center;
  margin: 40px 0;
}
.auth-page .success-message p {
  font-size: 14px;
  color: #1E1E1E;
  margin-bottom: 16px;
}
.auth-page .success-message p:first-child {
  font-weight: 500;
}
.auth-page .success-message .btn-primary {
  margin-top: 24px;
}
.auth-page .loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(250, 250, 254, 0.9);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/**
 * Oaklet Auth Redesign - Split Layout with Shader
 * @copyright (c) 2025-2026 Oaklet
 * @author Gonzalo
 */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0px);
  }
}
@keyframes slideRightIn {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    filter: blur(0px);
    transform: translateX(0px);
  }
}
@keyframes testimonialIn {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0px) scale(1);
  }
}
.auth-split-layout {
  display: flex;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  background: white;
}
.auth-split-layout .auth-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  max-width: 100%;
}
@media (min-width: 768px) {
  .auth-split-layout .auth-left {
    max-width: 50%;
  }
}
.auth-split-layout .auth-left .auth-form-container {
  width: 100%;
  max-width: 448px;
  animation: slideRightIn 0.6s ease-out forwards;
  animation-delay: 0.1s;
  opacity: 0;
}
.auth-split-layout .auth-left .auth-form-container .logo-container {
  margin-bottom: 32px;
}
.auth-split-layout .auth-left .auth-form-container .logo-container .logo-image {
  width: 120px;
  height: auto;
}
.auth-split-layout .auth-left .auth-title {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 8px;
  animation: fadeSlideIn 0.6s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
}
@media (min-width: 768px) {
  .auth-split-layout .auth-left .auth-title {
    font-size: 3rem;
  }
}
.auth-split-layout .auth-left .auth-description {
  color: #6b7280;
  margin-bottom: 24px;
  animation: fadeSlideIn 0.6s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
}
.auth-split-layout .auth-left .auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.auth-split-layout .auth-left .auth-form .form-field {
  animation: fadeSlideIn 0.6s ease-out forwards;
  opacity: 0;
}
.auth-split-layout .auth-left .auth-form .form-field:nth-child(1) {
  animation-delay: 0.4s;
}
.auth-split-layout .auth-left .auth-form .form-field:nth-child(2) {
  animation-delay: 0.5s;
}
.auth-split-layout .auth-left .auth-form .form-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 8px;
}
.auth-split-layout .auth-left .auth-form .form-field .glass-input-wrapper {
  border-radius: 16px;
  background: transparent;
  transition: all 0.2s;
}
.auth-split-layout .auth-left .auth-form .form-field .glass-input-wrapper:focus-within {
  background: rgba(139, 92, 246, 0.05);
}
.auth-split-layout .auth-left .auth-form .form-field .glass-input-wrapper input {
  width: 100%;
  background: transparent;
  font-size: 14px;
  padding: 16px;
  border-radius: 16px;
  border: none;
  outline: none;
}
.auth-split-layout .auth-left .auth-form .form-field .glass-input-wrapper input::placeholder {
  color: #9ca3af;
}
.auth-split-layout .auth-left .auth-form .form-field .glass-input-wrapper .password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s;
}
.auth-split-layout .auth-left .auth-form .form-field .glass-input-wrapper .password-toggle:hover {
  color: #2A9D8F;
}
.auth-split-layout .auth-left .auth-form .auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  animation: fadeSlideIn 0.6s ease-out forwards;
  animation-delay: 0.6s;
  opacity: 0;
}
.auth-split-layout .auth-left .auth-form .auth-options .remember-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.auth-split-layout .auth-left .auth-form .auth-options .remember-checkbox input[type=checkbox] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.auth-split-layout .auth-left .auth-form .auth-options .remember-checkbox span {
  color: #2A9D8F;
}
.auth-split-layout .auth-left .auth-form .auth-options .reset-link {
  color: #2A9D8F;
  text-decoration: none;
  transition: text-decoration 0.2s;
}
.auth-split-layout .auth-left .auth-form .auth-options .reset-link:hover {
  text-decoration: underline;
}
.auth-split-layout .auth-left .auth-form .btn-sign-in {
  width: 100%;
  border-radius: 16px;
  background: #2A9D8F;
  padding: 16px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  animation: fadeSlideIn 0.6s ease-out forwards;
  animation-delay: 0.7s;
  opacity: 0;
}
.auth-split-layout .auth-left .auth-form .btn-sign-in:hover:not(:disabled) {
  background: #70dbcf;
}
.auth-split-layout .auth-left .auth-form .btn-sign-in:disabled {
  background: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
  pointer-events: none;
}
.auth-split-layout .auth-left .auth-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
  animation: fadeSlideIn 0.6s ease-out forwards;
  animation-delay: 0.8s;
  opacity: 0;
}
.auth-split-layout .auth-left .auth-divider::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background: #e5e7eb;
}
.auth-split-layout .auth-left .auth-divider span {
  position: relative;
  padding: 0 16px;
  font-size: 14px;
  color: #6b7280;
  background: white;
}
.auth-split-layout .auth-left .btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
  animation: fadeSlideIn 0.6s ease-out forwards;
  animation-delay: 0.9s;
  opacity: 0;
}
.auth-split-layout .auth-left .btn-google:hover {
  background: #f9fafb;
}
.auth-split-layout .auth-left .auth-footer {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin-top: 24px;
  animation: fadeSlideIn 0.6s ease-out forwards;
  animation-delay: 1s;
  opacity: 0;
}
.auth-split-layout .auth-left .auth-footer a {
  color: #2A9D8F;
  text-decoration: none;
  transition: text-decoration 0.2s;
}
.auth-split-layout .auth-left .auth-footer a:hover {
  text-decoration: underline;
}
.auth-split-layout .auth-left .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  animation: fadeSlideIn 0.6s ease-out forwards;
  opacity: 0;
  animation-delay: 0.4s;
}
.auth-split-layout .auth-right {
  display: none;
  flex: 1;
  position: relative;
  padding: 16px;
  max-width: 50%;
}
@media (min-width: 768px) {
  .auth-split-layout .auth-right {
    display: block;
  }
}
.auth-split-layout .auth-right .beta-program-title {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 20;
  animation: fadeSlideIn 0.8s ease-out forwards;
  animation-delay: 0.5s;
  opacity: 0;
}
.auth-split-layout .auth-right .beta-program-title h2 {
  font-size: 1.125rem;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin: 0;
}
.auth-split-layout .auth-right .shader-container {
  position: relative;
  width: 100%;
  height: 700px;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  animation: slideRightIn 0.8s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
}
.auth-split-layout .auth-right .shader-container .mesh-gradient-background {
  position: absolute;
  inset: 0;
}
.auth-split-layout .auth-right .welcome-message {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  padding: 0 32px;
  width: 100%;
  justify-content: center;
  z-index: 10;
}
.auth-split-layout .auth-right .welcome-message .message-card {
  display: flex;
  align-items: start;
  gap: 16px;
  border-radius: 24px;
  background: rgba(31, 41, 55, 0.9);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  width: 100%;
  max-width: 480px;
  animation: testimonialIn 0.6s ease-out forwards;
  animation-delay: 1.2s;
  opacity: 0;
}
.auth-split-layout .auth-right .welcome-message .message-card .message-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
  background: white;
  padding: 4px;
}
.auth-split-layout .auth-right .welcome-message .message-card .message-content {
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}
.auth-split-layout .auth-right .welcome-message .message-card .message-content .message-name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  margin-bottom: 2px;
  color: white;
}
.auth-split-layout .auth-right .welcome-message .message-card .message-content .message-handle {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  font-size: 13px;
}
.auth-split-layout .auth-right .welcome-message .message-card .message-content .message-text {
  color: rgba(255, 255, 255, 0.95);
}
.auth-split-layout .auth-right .animation-wrapper {
  position: relative;
  width: 100%;
  height: 700px;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(42, 157, 143, 0.2);
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.05), rgba(114, 185, 187, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideRightIn 0.8s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
  box-shadow: 0 8px 32px rgba(42, 157, 143, 0.1);
}
.auth-split-layout .auth-right .animation-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.3), rgba(114, 185, 187, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.auth-page-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (min-width: 1024px) {
  .auth-page-wrapper {
    padding: 0 80px;
  }
}
@media (min-width: 1280px) {
  .auth-page-wrapper {
    padding: 0 120px;
  }
}
@media (min-width: 1536px) {
  .auth-page-wrapper {
    padding: 0 160px;
  }
}
.auth-page-wrapper {
  padding: 0 48px;
}
@media (min-width: 1024px) {
  .auth-page-wrapper {
    padding: 0 80px;
  }
}
@media (min-width: 1280px) {
  .auth-page-wrapper {
    padding: 0 120px;
  }
}
@media (min-width: 1536px) {
  .auth-page-wrapper {
    padding: 0 160px;
  }
}

/**
 * Accept Invite page styles
 * @copyright (c) 2025-2026 Oaklet
 *
 * Builds on the auth-redesign split layout (.auth-page-wrapper /
 * .auth-split-layout); only invite-specific pieces live here: the
 * invitation-context card, the live password-rules checklist, and the
 * invalid/expired status card.
 */
.auth-page-wrapper .glass-input-wrapper--with-toggle {
  position: relative;
}
.auth-page-wrapper .invite-page .logo-container {
  margin-bottom: 16px;
}
.auth-page-wrapper .invite-page .auth-title {
  font-size: 1.875rem;
  margin-bottom: 6px;
}
.auth-page-wrapper .invite-page .auth-description {
  margin-bottom: 16px;
}
.auth-page-wrapper .invite-page .auth-form {
  gap: 14px;
}
.auth-page-wrapper .invite-page .password-strength-meter {
  margin-top: 10px;
  margin-bottom: 0;
}
.auth-page-wrapper .invite-page .password-strength-meter .strength-bar {
  margin-bottom: 6px;
}
.auth-page-wrapper .invite-page .password-strength-meter .strength-label {
  margin-bottom: 8px;
}
.auth-page-wrapper .invite-page .password-strength-meter .password-requirements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  padding: 8px 14px;
}
.auth-page-wrapper .invite-page .password-strength-meter .password-requirements .requirements-title {
  grid-column: 1/-1;
  margin-bottom: 2px;
}
.auth-page-wrapper .invite-page .password-strength-meter .password-requirements .requirement {
  font-size: 12px;
  padding: 2px 0;
}
.auth-page-wrapper .invite-page .btn-sign-in {
  padding: 13px;
}
.auth-page-wrapper .invite-page .auth-footer {
  margin-top: 14px;
}
.auth-page-wrapper .invite-context {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(42, 157, 143, 0.06);
  border: 1px solid rgba(42, 157, 143, 0.15);
  animation: fadeSlideIn 0.6s ease-out forwards;
  animation-delay: 0.35s;
  opacity: 0;
}
.auth-page-wrapper .invite-context__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
}
.auth-page-wrapper .invite-context__row svg {
  color: #2A9D8F;
  flex-shrink: 0;
}
.auth-page-wrapper .invite-context__row--muted {
  font-weight: 400;
  color: #6b7280;
}
.auth-page-wrapper .invite-context__row--muted svg {
  color: #9ca3af;
}
.auth-page-wrapper .invite-context__role {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 999px;
  background: #2A9D8F;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.auth-page-wrapper .invite-field-hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: #b45309;
}
.auth-page-wrapper .invite-status-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  animation: fadeSlideIn 0.6s ease-out forwards;
  opacity: 0;
}
.auth-page-wrapper .invite-status-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
}
.auth-page-wrapper .invite-status-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 16px 32px;
  border-radius: 16px;
  background: #2A9D8F;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.auth-page-wrapper .invite-status-card__action:hover {
  background: #70dbcf;
}

.auth-page .auth-container .reset-password-form .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #1E1E1E;
  margin-bottom: 8px;
  text-align: left;
}
.auth-page .auth-container .reset-password-form .form-group .password-input-wrapper {
  position: relative;
}
.auth-page .auth-container .reset-password-form .form-group .password-input-wrapper input {
  padding-right: 45px;
}
.auth-page .auth-container .reset-password-form .form-group .password-input-wrapper .password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #979797;
}
.auth-page .auth-container .reset-password-form .form-group .password-input-wrapper .password-toggle svg {
  width: 20px;
  height: 20px;
}
.auth-page .auth-container .reset-password-form .form-group .password-input-wrapper .password-toggle:hover {
  opacity: 1;
}
.auth-page .auth-container .reset-password-form .form-group .field-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 6px;
  text-align: left;
}
.auth-page .auth-container .reset-password-form .form-group .code-timer {
  margin-top: 8px;
  font-size: 12px;
  color: #2A9D8F;
  text-align: center;
  font-weight: 500;
}
.auth-page .auth-container .reset-password-form .form-group .code-expired {
  margin-top: 8px;
  font-size: 12px;
  color: #ef4444;
  text-align: center;
  font-weight: 500;
}
.auth-page .auth-container .reset-password-form .resend-code-section {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}
.auth-page .auth-container .reset-password-form .resend-code-section p {
  font-size: 13px;
  color: #979797;
  margin-bottom: 8px;
}
.auth-page .auth-container .reset-password-form .resend-code-section .btn-link {
  background: none;
  border: none;
  color: #2A9D8F;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  transition: all 0.3s ease;
}
.auth-page .auth-container .reset-password-form .resend-code-section .btn-link:hover:not(:disabled) {
  color: #238176;
  text-decoration: underline;
}
.auth-page .auth-container .reset-password-form .resend-code-section .btn-link:disabled {
  color: #979797;
  cursor: not-allowed;
  text-decoration: none;
}
.auth-page .auth-container .success-message .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #2A9D8F;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
  box-shadow: inset -2px -2px 4px rgba(46, 175, 163, 0.3), inset 2px 2px 4px rgba(34, 122, 113, 0.3);
}
.auth-page .auth-container .success-message .success-title {
  font-size: 18px;
  font-weight: 600;
  color: #1E1E1E;
  margin-bottom: 12px;
}
.auth-page .auth-container .success-message .redirect-notice {
  font-size: 13px;
  color: #979797;
  font-style: italic;
}
.auth-page .auth-container .info-message {
  color: #2A9D8F;
  background-color: rgba(42, 157, 143, 0.1);
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 3px solid #2A9D8F;
}

/**
 * MFA Verification Styles
 * @copyright (c) 2025-2026 Oaklet
 * 
 * Styles for the Multi-Factor Authentication verification page
 * 
 * @module assets/scss/pages/auth/mfa
 */
.mfa-container {
  max-width: 450px;
}

.mfa-form {
  margin-top: 2rem;
}

.message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}
.message.error {
  background-color: #fee;
  color: #c00;
  border: 1px solid #fcc;
}
.message.success {
  background-color: #efe;
  color: #060;
  border: 1px solid #cfc;
}

.code-inputs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 2rem 0;
}

.code-input {
  width: 50px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  transition: all 0.2s ease;
  outline: none;
}
.code-input:focus {
  border-color: #2A9D8F;
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}
.code-input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}
.code-input::placeholder {
  color: #ccc;
}

.mfa-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-secondary {
  width: 100%;
  padding: 12px 24px;
  background: white;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover:not(:disabled) {
  background: #f8f8f8;
  border-color: #bbb;
}
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-link {
  background: none;
  border: none;
  color: #1a73e8;
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
  text-decoration: underline;
  transition: color 0.2s ease;
}
.btn-link:hover:not(:disabled) {
  color: #1557b0;
}
.btn-link:disabled {
  color: #999;
  cursor: not-allowed;
  text-decoration: none;
}

.mfa-info {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.security-note {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  text-align: center;
}
.security-note strong {
  color: #333;
  font-weight: 600;
}

@media (max-width: 480px) {
  .code-inputs {
    gap: 8px;
  }
  .code-input {
    width: 42px;
    height: 48px;
    font-size: 20px;
  }
}
@media (prefers-color-scheme: dark) {
  .code-input {
    background: #2a2a2a;
    border-color: #444;
    color: white;
  }
  .code-input:focus {
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.2);
  }
  .btn-secondary {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #444;
  }
  .btn-secondary:hover:not(:disabled) {
    background: #333;
    border-color: #555;
  }
  .message.error {
    background-color: #3a1f1f;
    color: #ff9999;
    border-color: #663333;
  }
  .message.success {
    background-color: #1f3a1f;
    color: #99ff99;
    border-color: #336633;
  }
  .security-note {
    color: #aaa;
  }
  .security-note strong {
    color: #ddd;
  }
}
.onboarding-page {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.onboarding-page .onboarding-container {
  background-color: #ffffff;
  padding: 60px 50px;
  width: 100%;
  max-width: 680px;
}
@media (max-width: 768px) {
  .onboarding-page .onboarding-container {
    max-width: 90%;
    padding: 50px 40px;
  }
}
@media (max-width: 480px) {
  .onboarding-page .onboarding-container {
    padding: 40px 30px;
    max-width: 100%;
  }
}
.onboarding-page .progress-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 40px 0;
  padding: 0 20px;
}
.onboarding-page .progress-stepper .step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}
.onboarding-page .progress-stepper .step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #D1D1D5;
  background-color: #ffffff;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-bottom: 8px;
}
.onboarding-page .progress-stepper .step-circle.active {
  border-color: #14B8A6;
  color: #14B8A6;
}
.onboarding-page .progress-stepper .step-circle.completed {
  background-color: #14B8A6;
  border-color: #14B8A6;
  color: #ffffff;
}
.onboarding-page .progress-stepper .step-label {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  max-width: 100px;
  line-height: 1.3;
}
.onboarding-page .progress-stepper .step-line {
  flex: 1;
  height: 2px;
  background-color: #D1D1D5;
  margin: 20px 8px 0 8px;
  transition: background-color 0.3s ease;
}
.onboarding-page .progress-stepper .step-line.completed {
  background-color: #14B8A6;
}
.onboarding-page .logo-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 40px;
}
.onboarding-page .logo-container .logo-image {
  height: 32px;
  width: auto;
}
.onboarding-page h1 {
  font-size: 32px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 12px;
  text-align: left;
}
@media (max-width: 480px) {
  .onboarding-page h1 {
    font-size: 28px;
  }
}
.onboarding-page .subtitle {
  font-size: 14px;
  color: #6b7280;
  text-align: left;
  margin-bottom: 40px;
  font-weight: 400;
}
.onboarding-page .onboarding-form .step-content {
  min-height: 200px;
  margin-bottom: 32px;
}
.onboarding-page .onboarding-form .form-group {
  margin-bottom: 24px;
}
.onboarding-page .onboarding-form .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 8px;
}
.onboarding-page .onboarding-form .form-group input[type=email],
.onboarding-page .onboarding-form .form-group input[type=tel],
.onboarding-page .onboarding-form .form-group input[type=text] {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  border: 1px solid #D1D1D5;
  border-radius: 8px;
  background-color: #ffffff;
  color: #111827;
  outline: none;
  transition: border-color 0.2s ease;
}
.onboarding-page .onboarding-form .form-group input[type=email]:focus,
.onboarding-page .onboarding-form .form-group input[type=tel]:focus,
.onboarding-page .onboarding-form .form-group input[type=text]:focus {
  border-color: #14B8A6;
}
.onboarding-page .onboarding-form .form-group input[type=email]::placeholder,
.onboarding-page .onboarding-form .form-group input[type=tel]::placeholder,
.onboarding-page .onboarding-form .form-group input[type=text]::placeholder {
  color: #6b7280;
  font-weight: 400;
}
.onboarding-page .onboarding-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 480px) {
  .onboarding-page .onboarding-form .form-row {
    grid-template-columns: 1fr;
  }
}
.onboarding-page .onboarding-form .checkbox-group {
  margin-bottom: 32px;
}
.onboarding-page .onboarding-form .checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: #111827;
  line-height: 1.5;
}
.onboarding-page .onboarding-form .checkbox-group label input[type=checkbox] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.onboarding-page .onboarding-form .form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  width: 100%;
}
.onboarding-page .onboarding-form .form-actions:has(.btn-primary:only-child) {
  justify-content: flex-end;
}
.onboarding-page .onboarding-form .form-actions button {
  padding: 14px 40px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
  flex: 0 0 auto;
  width: auto;
}
.onboarding-page .onboarding-form .form-actions button.btn-primary {
  background-color: #14B8A6;
  color: #ffffff;
}
.onboarding-page .onboarding-form .form-actions button.btn-primary:hover:not(:disabled) {
  background-color: #0D9488;
}
.onboarding-page .onboarding-form .form-actions button.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.onboarding-page .onboarding-form .form-actions button.btn-secondary {
  background-color: #ffffff;
  color: #4b5563;
  border: 1px solid #D1D1D5;
}
.onboarding-page .onboarding-form .form-actions button.btn-secondary:hover:not(:disabled) {
  border-color: #6b7280;
  color: #111827;
}
.onboarding-page .onboarding-form .form-actions button.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.onboarding-page .error-message {
  color: #dc2626;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: left;
}
.onboarding-page .loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.waiting-room-page {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.waiting-room-page .waiting-room-container {
  background-color: #ffffff;
  padding: 60px 50px;
  width: 100%;
  max-width: 680px;
  text-align: center;
}
@media (max-width: 768px) {
  .waiting-room-page .waiting-room-container {
    max-width: 90%;
    padding: 50px 40px;
  }
}
@media (max-width: 480px) {
  .waiting-room-page .waiting-room-container {
    padding: 40px 30px;
    max-width: 100%;
  }
}
.waiting-room-page .logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}
.waiting-room-page .logo-container .logo-image {
  height: 32px;
  width: auto;
}
.waiting-room-page h1 {
  font-size: 32px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 12px;
}
@media (max-width: 480px) {
  .waiting-room-page h1 {
    font-size: 28px;
  }
}
.waiting-room-page .subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.6;
}
.waiting-room-page .status-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #14B8A6;
  border-radius: 50%;
  color: #14B8A6;
  font-size: 40px;
}
.waiting-room-page .action-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.waiting-room-page .action-buttons button {
  width: auto;
  padding: 14px 40px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.waiting-room-page .action-buttons button.btn-primary {
  background-color: #14B8A6;
  color: #ffffff;
}
.waiting-room-page .action-buttons button.btn-primary:hover:not(:disabled) {
  background-color: #0D9488;
}
.waiting-room-page .action-buttons button.btn-secondary {
  background-color: #ffffff;
  color: #4b5563;
  border: 1px solid #D1D1D5;
}
.waiting-room-page .action-buttons button.btn-secondary:hover:not(:disabled) {
  border-color: #6b7280;
  color: #111827;
}
.waiting-room-page .action-buttons button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.waiting-room-page .loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Main Tab Navigation */
.main-patient-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.5rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
  margin-bottom: 1rem;
}

.main-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  color: var(--color-text-secondary, #64748b);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.main-tab:hover {
  color: var(--color-text-primary, #1e293b);
  background: var(--color-surface-hover, #f8fafc);
  border-radius: 0.375rem 0.375rem 0 0;
}
.main-tab.main-tab-active {
  color: var(--color-primary, #3b82f6);
  border-bottom-color: var(--color-primary, #3b82f6);
  font-weight: 600;
}

.patients-container {
  display: flex;
  height: calc(100vh - 72px);
  gap: 20px;
}

.patient-sidebar-container {
  width: 240px;
  border-right: 1px solid #eaeaea;
  background-color: #ffffff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.patient-sidebar-container .patient-list {
  overflow-y: auto;
  flex: 1;
}

.patient-content-area {
  flex: 1;
  background-color: #ffffff;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.patient-content-area .patient-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.patient-info-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  text-align: center;
}
.patient-info-empty h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px 0;
}
.patient-info-empty p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.patient-content-container {
  height: 100%;
}
.patient-content-container .tab-content-container {
  height: 100%;
}

.overview-tab h2 {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 20px 0;
}
.overview-tab .patient-details {
  background: #F9FAFB;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.overview-tab .patient-details p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #4b5563;
}
.overview-tab .patient-details p:last-child {
  margin-bottom: 0;
}
.overview-tab .patient-details p strong {
  color: #111827;
  font-weight: 500;
  margin-right: 8px;
}

.session-notes-tab h2 {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 20px 0;
}
.session-notes-tab p {
  color: #6b7280;
  font-size: 14px;
}

.schedule-button {
  padding: 12px 24px;
  background: #3B82F6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}
.schedule-button:hover {
  background: #2563EB;
}

.oaklet-dashboard-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 72px);
  width: calc(100vw - 72px);
}
.oaklet-dashboard-loading__content {
  text-align: center;
}
.oaklet-dashboard-loading__text {
  margin-top: 16px;
  color: #6b7280;
  font-size: 14px;
}

.oaklet-spinner {
  align-items: center;
  justify-content: center;
  display: flex;
  width: 40px;
  height: 40px;
  border: 3px solid #E5E7EB;
  border-top-color: #3B82F6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.oaklet-dashboard-loading__text--error {
  color: #ef4444;
}

.patients-retry-button {
  margin-top: 1rem;
}

.dashboard-content .content-wrapper {
  max-width: none !important;
  padding: 0 !important;
}

.appointments-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.appointments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.appointment-item {
  padding: 1rem;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 0.5rem;
  background: var(--color-surface, #ffffff);
  transition: all 0.2s ease;
}
.appointment-item:hover {
  border-color: var(--color-primary-light, #93c5fd);
  background: var(--color-surface-hover, #f8fafc);
}

.appointment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.session-type {
  font-weight: 600;
  color: var(--color-text-primary, #1e293b);
  text-transform: capitalize;
}

.appointment-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.appointment-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary, #64748b);
}
.appointment-detail svg {
  color: var(--color-primary, #3b82f6);
}
.appointment-detail a {
  color: var(--color-primary, #3b82f6);
  text-decoration: none;
}
.appointment-detail a:hover {
  text-decoration: underline;
}

.appointment-notes {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border, #e2e8f0);
}
.appointment-notes p {
  font-size: 0.875rem;
  color: var(--color-text-secondary, #64748b);
  margin: 0;
}

.loading-text {
  text-align: center;
  color: var(--color-text-secondary, #64748b);
  font-size: 0.875rem;
}

.error-message {
  color: var(--color-error, #ef4444);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.create-appointment-modal {
  max-width: 500px;
}
.create-appointment-modal .patient-info-banner {
  padding: 0.75rem 1rem;
  background: var(--color-primary-light, #dbeafe);
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text-primary, #1e293b);
}
.create-appointment-modal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.create-appointment-modal .meeting-type-selector {
  display: flex;
  gap: 0.5rem;
}
.create-appointment-modal .meeting-type-btn {
  flex: 1;
  padding: 0.75rem;
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary, #64748b);
  transition: all 0.2s ease;
}
.create-appointment-modal .meeting-type-btn:hover {
  border-color: var(--color-primary, #3b82f6);
  color: var(--color-primary, #3b82f6);
}
.create-appointment-modal .meeting-type-btn.active {
  background: var(--color-primary, #3b82f6);
  border-color: var(--color-primary, #3b82f6);
  color: #ffffff;
}
.create-appointment-modal .meeting-type-btn.active svg {
  color: #ffffff;
}

/**
 * Oaklet - Session Notes Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Sahas
 * 
 * SCSS styles for session notes interface
 */
.session-notes-container {
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* Back row (detail view) — top-left return to the notes list */
.session-notes-back {
  padding: 0 clamp(1rem, 3vw, 2rem) clamp(0.75rem, 1.5vh, 1rem);
}

/* Header */
.session-notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(1rem, 2vh, 2rem) clamp(1rem, 3vw, 2rem) clamp(0.75rem, 1.5vh, 1.5rem);
  border-bottom: none;
  background: transparent;
  gap: clamp(0.5rem, 1vw, 1rem);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.session-notes-title {
  display: flex;
  flex-direction: column;
  gap: clamp(0.25rem, 0.5vw, 0.5rem);
  min-width: 0;
}
.session-notes-title h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-notes-stats span {
  color: #6b7280;
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
  font-weight: 500;
}

.session-notes-actions {
  display: flex;
  gap: clamp(0.5rem, 1vw, 0.75rem);
  align-items: center;
  flex-wrap: wrap;
}

/* Controls */
.session-notes-controls {
  display: flex;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  padding: 0 clamp(1rem, 3vw, 2rem) clamp(0.75rem, 1.5vh, 1.5rem);
  border-bottom: none;
  background: transparent;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

.search-bar {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  min-width: clamp(180px, 30vw, 200px);
  max-width: clamp(300px, 50vw, 400px);
  align-items: center;
}
.search-bar svg {
  position: absolute;
  left: clamp(0.5rem, 1vw, 0.75rem);
  color: var(--color-text-secondary);
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: clamp(0.5rem, 1vh, 0.75rem) clamp(0.5rem, 1vw, 0.75rem) clamp(0.5rem, 1vh, 0.75rem) clamp(2rem, 3vw, 2.5rem);
  border: 1px solid #E5E7EB;
  border-radius: clamp(0.375rem, 0.5vw, 0.5rem);
  background: white;
  color: #1f2937;
  font-size: clamp(0.8125rem, 1vw, 0.875rem);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-input:focus {
  outline: none;
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
  background: #F9FAFB;
}
.search-input::placeholder {
  color: #9ca3af;
}

.filters {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #E5E7EB;
  border-radius: 0.375rem;
  background: white;
  color: #1f2937;
  font-size: 0.875rem;
  min-width: 120px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.filter-select:focus {
  outline: none;
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.filter-select:hover {
  border-color: #D1D5DB;
}

/* Notes list — full-width column, page scrolls as one document */
.session-notes-list {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1vh, 0.625rem);
  padding: 0 clamp(1rem, 3vw, 2rem) clamp(1rem, 2vh, 1.5rem);
  background: transparent;
}

/* Note Items */
.note-item {
  padding: clamp(0.875rem, 1.5vh, 1.125rem) clamp(0.875rem, 1.5vw, 1.125rem);
  margin-bottom: clamp(0.5rem, 1vh, 0.625rem);
  border: none;
  border-left: 3px solid transparent;
  border-radius: clamp(0.375rem, 0.5vw, 0.5rem);
  background: white;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.note-item:hover {
  background: white;
  border-left-color: #14B8A6;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}
.note-item:active {
  transform: translateX(2px);
}

.note-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  gap: 0.75rem;
}

.note-title {
  flex: 1 1 auto;
  margin: 0;
  font-size: clamp(0.875rem, 1.2vw, 0.95rem);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

.note-type {
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}
.note-type.soap {
  background: #E0F2F1;
  color: #0F766E;
  border: 1px solid #5EEAD4;
}
.note-type.standard {
  background: #F0FDFA;
  color: #0D9488;
  border: 1px solid #99F6E4;
}

.note-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.note-status {
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}
.note-status.status-draft {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}
.note-status.status-complete {
  background: #CCFBF1;
  color: #0F766E;
  border: 1px solid #5EEAD4;
}
.note-status.status-signed {
  background: #CCFBF1;
  color: #0F766E;
  border: 1px solid #5EEAD4;
}
.note-status.status-locked {
  background: #F3F4F6;
  color: #4B5563;
  border: 1px solid #D1D5DB;
}

.note-date {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.note-preview {
  margin: 0.5rem 0 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--color-text-secondary);
}

.note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.note-tag {
  padding: 0.25rem 0.5rem;
  background: #F0FDFA;
  color: #0F766E;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  border: 1px solid #99F6E4;
}

.note-tag-more {
  padding: 0.25rem 0.5rem;
  background: #F3F4F6;
  color: #6b7280;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  border: 1px solid #E5E7EB;
}

/* Detail View — normal block flow, page scrolls as one document */
.note-detail-content {
  display: block;
  padding: 0 clamp(1rem, 3vw, 2rem) clamp(1rem, 2vh, 1.5rem);
  background: transparent;
  min-width: 0;
  max-width: 100%;
}
.note-detail-content > * {
  background: white;
  border-radius: clamp(0.375rem, 0.5vw, 0.5rem);
  padding: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(0.5rem, 1vh, 0.75rem);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
  max-width: 100%;
}
.note-detail-content > *:last-child {
  margin-bottom: 0;
}

.note-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0 !important;
  padding: clamp(1rem, 2vw, 1.5rem) !important;
  border-bottom: none !important;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.note-detail-title {
  flex: 1 1 auto;
  min-width: 0;
}
.note-detail-title h3 {
  margin: 0 0 clamp(0.5rem, 1vh, 0.75rem) 0;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.note-detail-meta {
  display: flex;
  gap: clamp(0.375rem, 0.75vw, 0.5rem);
  flex-wrap: wrap;
}

.note-detail-actions {
  display: flex;
  gap: clamp(0.375rem, 0.75vw, 0.5rem);
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.note-detail-actions button {
  width: auto;
}

.note-detail-info {
  flex: 0 0 auto;
  margin-bottom: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  max-width: 100%;
  overflow: hidden;
  min-width: 0;
}

.note-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(140px, 20vw, 180px), 1fr));
  gap: clamp(0.875rem, 1.5vw, 1.25rem);
  margin-bottom: clamp(1rem, 2vh, 1.5rem);
  padding: clamp(0.875rem, 1.5vw, 1.25rem);
  background: #F9FAFB;
  border-radius: clamp(0.25rem, 0.5vw, 0.375rem);
  border: 1px solid #E5E7EB;
  overflow: hidden;
  max-width: 100%;
}

.note-info-item {
  min-width: 0;
}
.note-info-item label {
  display: block;
  font-size: clamp(0.6875rem, 0.9vw, 0.75rem);
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: clamp(0.25rem, 0.5vh, 0.375rem);
}
.note-info-item span {
  font-size: clamp(0.875rem, 1.2vw, 0.9375rem);
  color: #1f2937;
  font-weight: 500;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.note-detail-tags {
  padding: clamp(0.875rem, 1.5vw, 1.25rem);
  background: #F9FAFB;
  border-radius: clamp(0.25rem, 0.5vw, 0.375rem);
  border: 1px solid #E5E7EB;
  max-width: 100%;
  overflow: hidden;
}
.note-detail-tags label {
  font-size: clamp(0.6875rem, 0.9vw, 0.75rem);
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: clamp(0.5rem, 1vh, 0.75rem);
  display: block;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.375rem, 0.75vw, 0.5rem);
  max-width: 100%;
}
.tags-list .note-tag {
  padding: clamp(0.3125rem, 0.5vh, 0.375rem) clamp(0.625rem, 1vw, 0.75rem);
  font-size: clamp(0.75rem, 1vw, 0.8125rem);
  flex-shrink: 0;
}

/* SOAP Template */
.soap-template, .standard-template {
  padding: 0 !important;
  margin-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  max-width: 100%;
  overflow: hidden;
}
.soap-template .soap-section, .soap-template .standard-section, .standard-template .soap-section, .standard-template .standard-section {
  margin-bottom: 0 !important;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: white !important;
  border-left: 4px solid #14B8A6;
  border-radius: clamp(0.375rem, 0.5vw, 0.5rem);
  border: 1px solid #E5E7EB;
  border-left: 4px solid #14B8A6;
  box-shadow: none !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  overflow: hidden;
}
.soap-template .soap-section h4, .soap-template .standard-section h4, .standard-template .soap-section h4, .standard-template .standard-section h4 {
  margin: 0 0 clamp(0.5rem, 1vh, 0.75rem) 0;
  font-size: clamp(0.8125rem, 1.1vw, 0.875rem);
  font-weight: 600;
  color: #0F766E;
  padding-bottom: clamp(0.375rem, 0.75vh, 0.5rem);
  border-bottom: 1px solid #F0FDFA;
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 0.5vw, 0.375rem);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}
.soap-template .soap-section p, .soap-template .standard-section p, .standard-template .soap-section p, .standard-template .standard-section p {
  margin: 0;
  line-height: 1.7;
  color: #374151;
  white-space: pre-wrap;
  font-size: clamp(0.875rem, 1.2vw, 0.9375rem);
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}
.soap-template .soap-section ul, .soap-template .standard-section ul, .standard-template .soap-section ul, .standard-template .standard-section ul {
  margin: clamp(0.625rem, 1vh, 0.75rem) 0 0 clamp(1.25rem, 2vw, 1.5rem);
  max-width: 100%;
  overflow: hidden;
}
.soap-template .soap-section ul li, .soap-template .standard-section ul li, .standard-template .soap-section ul li, .standard-template .standard-section ul li {
  margin-bottom: clamp(0.375rem, 0.75vh, 0.5rem);
  line-height: 1.6;
  color: #374151;
  font-size: clamp(0.875rem, 1.2vw, 0.9375rem);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.soap-template .soap-section ul li::marker, .soap-template .standard-section ul li::marker, .standard-template .soap-section ul li::marker, .standard-template .standard-section ul li::marker {
  color: #14B8A6;
}

/* Note Detail Body Container */
.note-detail-body {
  flex: 0 0 auto;
  max-width: 100%;
  overflow: hidden;
  min-width: 0;
}

/* Note Content */
.note-content {
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
  max-width: 100%;
  overflow: hidden;
}
.note-content p {
  line-height: 1.7;
  color: #374151;
  white-space: pre-wrap;
  font-size: clamp(0.875rem, 1.2vw, 0.9375rem);
  margin: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: white;
  border-radius: clamp(0.375rem, 0.5vw, 0.5rem);
  border: 1px solid #E5E7EB;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

/* Empty States */
.session-notes-empty,
.notes-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto;
  text-align: center;
  color: #6b7280;
  padding: 3rem 2rem;
  animation: fadeIn 0.3s ease-in;
  position: relative;
  background: white;
  border-radius: 0.5rem;
  margin: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.session-notes-empty::before,
.notes-empty::before {
  display: none !important;
}
.session-notes-empty svg,
.notes-empty svg {
  margin-bottom: 1.25rem;
  color: #D1D5DB;
  opacity: 0.5;
}
.session-notes-empty h3, .session-notes-empty h4,
.notes-empty h3,
.notes-empty h4 {
  margin: 0 0 0.75rem 0;
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 600;
}
.session-notes-empty p,
.notes-empty p {
  margin: 0 0 1.5rem 0;
  max-width: 320px;
  color: #6b7280;
  line-height: 1.6;
  font-size: 0.9375rem;
}
.session-notes-empty button.btn-primary,
.notes-empty button.btn-primary {
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25), 0 2px 6px rgba(20, 184, 166, 0.15);
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  line-height: 1 !important;
}
.session-notes-empty button.btn-primary svg,
.notes-empty button.btn-primary svg {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
  margin: 0 !important;
  stroke-width: 3 !important;
  stroke: currentColor !important;
  color: white !important;
}
.session-notes-empty button.btn-primary:hover,
.notes-empty button.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3), 0 4px 10px rgba(20, 184, 166, 0.2);
}
.session-notes-empty button.btn-primary:active,
.notes-empty button.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(20, 184, 166, 0.2);
}

.notes-empty {
  margin: 0 auto;
  padding: clamp(2rem, 4vh, 3rem) clamp(1.5rem, 3vw, 2rem);
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.notes-empty svg {
  width: 48px;
  height: 48px;
}
.notes-empty h4 {
  font-size: 1.125rem;
}
.notes-empty p {
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.session-notes-empty-icon {
  opacity: 0.3;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Loading States */
.notes-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  gap: 1rem;
  color: #6b7280;
}
.notes-loading .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #E5E7EB;
  border-top-color: #14B8A6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.notes-loading p {
  font-size: 0.9375rem;
  font-weight: 500;
}

.notes-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: #DC2626;
  background: white;
  border-radius: 0.75rem;
  margin: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.notes-error p {
  margin-bottom: 1.5rem;
  color: #6b7280;
}
.notes-error button {
  margin-top: 0;
}

/* Responsive Breakpoints for Different Zoom Levels */
@media (max-width: 1200px) {
  .session-notes-header {
    padding: clamp(0.875rem, 1.5vh, 1.5rem) clamp(0.875rem, 2vw, 1.5rem) clamp(0.625rem, 1vh, 1rem);
  }
  .note-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.75rem, 1.5vh, 1rem);
  }
  .note-detail-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
/* Mobile and small screen adjustments */
@media (max-width: 768px) {
  .session-notes-controls {
    flex-direction: column;
    gap: clamp(0.625rem, 1vh, 0.75rem);
    align-items: stretch;
  }
  .search-bar {
    max-width: 100%;
  }
  .filters {
    justify-content: space-between;
    width: 100%;
  }
  /* Note items on mobile */
  .note-item:hover {
    transform: none;
  }
}
/* Create Note Modal Styles */
.note-type-description {
  margin-bottom: 2rem;
  color: var(--color-text-secondary);
  text-align: center;
}

.note-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.note-type-card {
  padding: 2.5rem 2rem;
  border: 2px solid #E5E7EB;
  border-radius: 0.75rem;
  background: white;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.note-type-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #14B8A6;
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.note-type-card:hover {
  border-color: #14B8A6;
  background: #FAFAFA;
  box-shadow: 0 10px 20px rgba(20, 184, 166, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}
.note-type-card:hover::before {
  transform: scaleX(1);
}
.note-type-card.selected {
  border-color: #14B8A6;
  background: #F0FDFA;
  box-shadow: 0 8px 16px rgba(20, 184, 166, 0.18), 0 4px 8px rgba(20, 184, 166, 0.12);
}
.note-type-card.selected::before {
  transform: scaleX(1);
}

.note-type-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem;
  width: 64px;
  height: 64px;
  background: #F0FDFA;
  border-radius: 50%;
  color: #14B8A6;
}
.note-type-icon svg {
  width: 32px;
  height: 32px;
}

.note-type-card h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  letter-spacing: -0.01em;
}

.note-type-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
  font-size: 0.875rem;
}

.form-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #F3F4F6;
}
.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.form-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  letter-spacing: -0.01em;
}
.form-section h3 svg {
  color: #14B8A6;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group-full {
  grid-column: 1/-1;
}

.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  letter-spacing: -0.01em;
}
.form-group label .required {
  color: #EF4444;
  margin-left: 0.125rem;
}
.form-group input, .form-group textarea, .form-group select {
  padding: 0.75rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 0.5rem;
  background: white;
  color: #1f2937;
  font-size: 0.875rem;
  line-height: 1.5;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: #14B8A6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
  background: #FEFEFE;
}
.form-group input:hover:not(:focus), .form-group textarea:hover:not(:focus), .form-group select:hover:not(:focus) {
  border-color: #D1D5DB;
  background: #FAFBFC;
}
.form-group input::placeholder, .form-group textarea::placeholder, .form-group select::placeholder {
  color: #9ca3af;
}
.form-group input[type=date] {
  width: 100%;
  padding: 0.6rem 0.75rem;
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.selected-note-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #F9FAFB;
  border-radius: 0.5rem;
  border: 1px solid #E5E7EB;
}

.note-type-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #F0FDFA;
  color: #14B8A6;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1.5px solid #5EEAD4;
}
.note-type-badge svg {
  width: 16px;
  height: 16px;
}

.list-item {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}
.list-item input {
  flex: 1;
}
.list-item button {
  padding: 0.5rem 0.625rem;
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.list-item button svg {
  width: 16px;
  height: 16px;
}
.list-item button:hover {
  background: #DC2626;
  color: white;
  border-color: #DC2626;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}
.list-item button:active {
  transform: translateY(1px);
}

.btn-link {
  background: none;
  border: none;
  color: #14B8A6;
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-link:hover {
  color: #0D9488;
  text-decoration: underline;
}

.session-notes-footer {
  justify-content: space-between !important;
}
.session-notes-footer .modal-footer-left,
.session-notes-footer .modal-footer-right {
  display: flex;
  gap: 0.75rem;
}
.session-notes-footer button {
  width: auto !important;
  min-width: fit-content !important;
}

/* Button Styles - Base */
.btn-primary, .btn-secondary, .btn-success, .btn-danger {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.375rem, 0.75vw, 0.5rem);
  padding: clamp(0.5rem, 1vh, 0.625rem) clamp(0.875rem, 1.5vw, 1.25rem);
  border: none;
  border-radius: clamp(0.375rem, 0.5vw, 0.5rem);
  font-size: clamp(0.8125rem, 1.1vw, 0.875rem);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}
.btn-primary svg, .btn-secondary svg, .btn-success svg, .btn-danger svg {
  width: clamp(14px, 2vw, 16px);
  height: clamp(14px, 2vw, 16px);
  flex-shrink: 0;
}
.btn-primary:disabled, .btn-secondary:disabled, .btn-success:disabled, .btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary:active:not(:disabled), .btn-secondary:active:not(:disabled), .btn-success:active:not(:disabled), .btn-danger:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary {
  background: #14B8A6;
  color: white;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.btn-primary:hover:not(:disabled) {
  background: #0D9488;
  box-shadow: 0 4px 6px rgba(20, 184, 166, 0.2), 0 2px 4px rgba(20, 184, 166, 0.1);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #F9FAFB;
  color: #6B7280;
  border: 1px solid #D1D5DB;
  padding: 0.625rem 1rem;
  font-weight: 500;
  font-size: 0.8125rem;
}
.btn-secondary:hover:not(:disabled) {
  background: white;
  border-color: #14B8A6;
  color: #14B8A6;
  box-shadow: 0 2px 4px rgba(20, 184, 166, 0.1);
}

.btn-success {
  background: #14B8A6;
  color: white;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.btn-success:hover:not(:disabled) {
  background: #0D9488;
  box-shadow: 0 4px 6px rgba(20, 184, 166, 0.2), 0 2px 4px rgba(20, 184, 166, 0.1);
  transform: translateY(-1px);
}

.btn-danger {
  background: #EF4444;
  color: white;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.btn-danger:hover:not(:disabled) {
  background: #DC2626;
  box-shadow: 0 4px 6px rgba(239, 68, 68, 0.25), 0 2px 4px rgba(239, 68, 68, 0.15);
  transform: translateY(-1px);
}
.btn-danger:disabled {
  background: #FCA5A5;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
} /**
* Enhanced Session Notes Styling
* Additional styles for new features: export, delete, revision history, auto-save
*/
.auto-save-indicator {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  margin-left: 1rem;
}
.auto-save-indicator .saving {
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.auto-save-indicator .saving::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid #f59e0b;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.auto-save-indicator .saved {
  color: #14B8A6;
  font-weight: 500;
}
.auto-save-indicator .unsaved {
  color: #f59e0b;
  font-weight: 500;
}

.search-indicator {
  font-style: italic;
  color: #6b7280;
  font-weight: normal;
}

.export-info .export-patient {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.export-info .export-patient svg {
  color: #14B8A6;
}
.export-info .export-patient h4 {
  margin: 0 0 0.25rem 0;
  color: #1f2937;
}
.export-info .export-patient p {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
}

.format-options {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.format-option {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.format-option:hover {
  border-color: #d1d5db;
  background-color: #f9fafb;
}
.format-option.selected {
  border-color: #14B8A6;
  background-color: #F0FDFA;
}
.format-option .format-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.format-option .format-header input[type=radio] {
  margin: 0;
}
.format-option .format-header .format-label {
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}
.format-option .format-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  padding-left: 1.5rem;
}

.date-range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--color-surface-light, #f8fafc);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  width: fit-content;
}
.checkbox-group input[type=checkbox] {
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  cursor: pointer;
  font-weight: 500;
  color: var(--color-text-primary);
  width: fit-content;
}
.checkbox-group label svg {
  color: var(--color-primary);
}

.delete-warning {
  text-align: center;
}
.delete-warning .warning-icon {
  margin-bottom: 1rem;
}
.delete-warning .warning-content h3 {
  color: #dc2626;
  margin-bottom: 0.5rem;
}
.delete-warning .warning-content p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.note-details {
  background: #F9FAFB;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
  text-align: left;
  border: 2px solid #E5E7EB;
}
.note-details h4 {
  margin: 0 0 1rem 0;
  color: #1f2937;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.detail-grid {
  display: grid;
  gap: 0.75rem;
}

.detail-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: center;
}
.detail-item label {
  font-weight: 500;
  color: #4b5563;
  margin: 0;
}
.detail-item span {
  color: #1f2937;
}

.protection-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #FFFBEB;
  border: 2px solid #FCD34D;
  border-radius: 0.75rem;
  margin-top: 1rem;
  box-shadow: 0 1px 3px rgba(251, 191, 36, 0.1);
}
.protection-warning svg {
  color: #F59E0B;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.protection-warning p {
  margin: 0;
  color: #92400E;
  font-size: 0.875rem;
  line-height: 1.5;
}

.revision-loading,
.revision-error,
.revision-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: #6b7280;
}
.revision-loading svg,
.revision-error svg,
.revision-empty svg {
  margin-bottom: 1rem;
  color: #d1d5db;
}
.revision-loading h4,
.revision-error h4,
.revision-empty h4 {
  margin: 0.5rem 0;
  color: #4b5563;
}
.revision-loading p,
.revision-error p,
.revision-empty p {
  margin: 0;
}

.revision-timeline .timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.revision-timeline .timeline-header h3 {
  margin: 0;
  color: #1f2937;
}
.revision-timeline .timeline-header .revision-count {
  font-size: 0.875rem;
  color: #14B8A6;
  background: #F0FDFA;
  padding: 0.375rem 1rem;
  border-radius: 1rem;
  font-weight: 600;
  border: 1px solid #99F6E4;
}
.revision-timeline .revision-timeline-list {
  position: relative;
}
.revision-timeline .revision-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
}
.revision-timeline .revision-item:last-child {
  margin-bottom: 0;
}
.revision-timeline .revision-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: -2rem;
  width: 2px;
  background: linear-gradient(to bottom, #D1D5DB 0%, #E5E7EB 50%, transparent 100%);
  z-index: 0;
}
.revision-timeline .revision-marker {
  position: relative;
  flex-shrink: 0;
}
.revision-timeline .revision-marker .revision-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 8px rgba(20, 184, 166, 0.25), 0 2px 4px rgba(20, 184, 166, 0.15);
}
.revision-timeline .revision-marker .revision-icon svg {
  flex-shrink: 0;
}
.revision-timeline .revision-content {
  flex: 1;
  background: white;
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 2px solid #E5E7EB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.revision-timeline .revision-content:hover {
  border-color: #D1D5DB;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.revision-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.revision-header .revision-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}
.revision-header .revision-meta .revision-date {
  font-weight: 500;
}
.revision-header .revision-author {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.revision-changes .changes-list h5 {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b5563;
}
.revision-changes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.change-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: #1f2937;
}
.change-item .change-icon-svg {
  flex-shrink: 0;
  color: #6b7280;
}
.change-item .change-text {
  flex: 1;
}

.no-changes {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  font-style: italic;
}

.change-details {
  margin-top: 1rem;
}
.change-details summary {
  cursor: pointer;
  color: #14B8A6;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  list-style: none;
}
.change-details summary::-webkit-details-marker {
  display: none;
}
.change-details summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.change-details summary:hover {
  background: #F0FDFA;
  color: #0D9488;
}
.change-details[open] summary::before {
  transform: rotate(90deg);
}
.change-details .additional-changes {
  margin-top: 0.75rem;
  padding-left: 1.5rem;
  padding-top: 0.5rem;
  border-left: 2px solid #99F6E4;
}

.timeline-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}
.timeline-footer .timeline-legend h4 {
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
  color: #4b5563;
}
.timeline-footer .timeline-legend .legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.timeline-footer .timeline-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}
.timeline-footer .timeline-legend .legend-item svg {
  flex-shrink: 0;
  color: #9ca3af;
}

.templates-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}
.templates-loading .spin {
  animation: spin 1s linear infinite;
}

.btn-sm {
  padding: clamp(0.375rem, 0.75vh, 0.5rem) clamp(0.625rem, 1.2vw, 1rem) !important;
  font-size: clamp(0.75rem, 1vw, 0.8125rem) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  gap: clamp(0.25rem, 0.5vw, 0.375rem) !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-sm svg {
  width: clamp(12px, 1.8vw, 14px) !important;
  height: clamp(12px, 1.8vw, 14px) !important;
  flex-shrink: 0;
}

.modal-content-small {
  max-width: 500px;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  background: white;
}
.modal-content-small .modal-body {
  padding: 2rem 2.5rem;
  background: white;
}
.modal-content-small .modal-body::-webkit-scrollbar {
  width: 8px;
}
.modal-content-small .modal-body::-webkit-scrollbar-track {
  background: #F3F4F6;
  border-radius: 4px;
}
.modal-content-small .modal-body::-webkit-scrollbar-thumb {
  background: #14B8A6;
  border-radius: 4px;
}
.modal-content-small .modal-body::-webkit-scrollbar-thumb:hover {
  background: #0D9488;
}
.modal-content-small .modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #E5E7EB;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.modal-content-small .modal-footer .modal-footer-left {
  display: flex;
  gap: 0.75rem;
}
.modal-content-small .modal-footer .modal-footer-right {
  display: flex;
  gap: 0.75rem;
}
.modal-content-small .modal-footer button {
  padding: 0.625rem 1.25rem;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  min-width: fit-content;
}
.modal-content-small .modal-footer .btn-secondary {
  background: white;
  border: 1px solid #E5E7EB;
  color: #6B7280;
}
.modal-content-small .modal-footer .btn-secondary:hover {
  background: #F9FAFB;
  border-color: #D1D5DB;
}
.modal-content-small .modal-footer .btn-primary {
  background: #2A9D8F;
  color: white;
  border: 1px solid #2A9D8F;
}
.modal-content-small .modal-footer .btn-primary:hover {
  background: #238276;
}
.modal-content-small .modal-footer .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.modal-content-small .modal-header {
  padding: 2rem 2.5rem 1.5rem 2.5rem;
  border-bottom: 2px solid #E5E7EB;
  background: linear-gradient(to bottom, #FAFBFC 0%, white 100%);
  position: relative;
  overflow: hidden;
}
.modal-content-small .modal-header::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #14B8A6 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-content-small .modal-header:hover::before {
  opacity: 1;
}
.modal-content-small .modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1F2937;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.modal-content-small .modal-header h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.5rem;
  background: linear-gradient(to bottom, #14B8A6, #0D9488);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(20, 184, 166, 0.3);
}
.modal-content-small .modal-header .modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  color: #6B7280;
  border-radius: 0.5rem;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-content-small .modal-header .modal-close:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #DC2626;
  transform: rotate(90deg);
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.15);
}
.modal-content-small .modal-header .modal-close:active {
  transform: rotate(90deg) scale(0.95);
}

.modal-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding-right: 3rem;
}
.modal-title-group h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1F2937;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.modal-title-group h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.5rem;
  background: linear-gradient(to bottom, #14B8A6, #0D9488);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(20, 184, 166, 0.3);
}
.modal-title-group .modal-subtitle {
  font-size: 0.875rem;
  color: #6B7280;
  margin: 0;
  padding-left: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.modal-title-group .modal-subtitle::before {
  content: "→";
  color: #14B8A6;
  font-weight: 700;
}

.missing-id-warning {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  color: #92400e;
  padding: clamp(0.375rem, 0.75vh, 0.5rem) clamp(0.625rem, 1vw, 0.75rem);
  border-radius: clamp(0.375rem, 0.5vw, 0.5rem);
  font-size: clamp(0.6875rem, 0.9vw, 0.75rem);
  margin-bottom: clamp(0.375rem, 0.75vh, 0.5rem);
  text-align: center;
  grid-column: 1/-1;
  width: 100%;
  max-width: 100%;
  flex-basis: 100%;
  order: -1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .format-options {
    grid-template-columns: 1fr;
  }
  .date-range-inputs {
    grid-template-columns: 1fr;
  }
  .revision-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .timeline-legend .legend-items {
    flex-direction: column;
    gap: 0.5rem;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
/**
 * Oaklet - Patient onboarding SCSS
 * @copyright (c) 2025-2026 Oaklet
 * @author Nolan W. Platt
 * 
 * SCSS for public-facing patient onboarding page
 */
.patient-onboarding {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
}
.patient-onboarding .onboarding-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 800px;
  width: 100%;
  overflow: hidden;
}
@media (max-width: 768px) {
  .patient-onboarding .onboarding-container {
    margin: 0 10px;
    max-width: calc(100vw - 20px);
  }
}

.onboarding-header {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  padding: 30px;
  text-align: center;
}
.onboarding-header .oaklet-logo {
  height: 40px;
}
.onboarding-header .oaklet-logo img {
  height: 40px;
  width: auto;
}
.onboarding-header .oaklet-logo h1 {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.onboarding-loading {
  padding: 60px 40px;
  text-align: center;
}
.onboarding-loading .spinner.large {
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
}
.onboarding-loading p {
  color: #6b7280;
  font-size: 1.1rem;
  margin: 0;
}

.onboarding-section {
  padding: 30px 40px;
}
@media (max-width: 768px) {
  .onboarding-section {
    padding: 20px 24px;
  }
}
.onboarding-section:not(:last-child) {
  border-bottom: 1px solid #f3f4f6;
}

.onboarding-sections .onboarding-section {
  border-bottom: 1px solid #f3f4f6;
}
.onboarding-sections .onboarding-section:last-child {
  border-bottom: none;
}

.patient-onboarding .section-header {
  display: block !important;
  text-align: center !important;
  margin-bottom: 16px;
}
.patient-onboarding .section-header .section-icon {
  color: #3b82f6 !important;
  width: 32px !important;
  height: 32px !important;
  margin: 0 auto 16px !important;
  display: block !important;
  position: relative !important;
  float: none !important;
}
.patient-onboarding .section-header h2, .patient-onboarding .section-header h3 {
  margin: 0 !important;
  color: #1f2937;
  font-weight: 600;
  display: block !important;
  text-align: center !important;
  width: 100% !important;
}
.patient-onboarding .section-header h2 {
  font-size: 1.5rem;
}
.patient-onboarding .section-header h3 {
  font-size: 1.25rem;
}

.section-subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0 0 32px;
  line-height: 1.5;
}

.welcome-section {
  padding: 40px;
  text-align: center;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}
.welcome-section .welcome-icon {
  color: #10b981;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}
.welcome-section h2 {
  color: #1f2937;
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 8px;
}
.welcome-section p {
  color: #6b7280;
  font-size: 1.1rem;
  margin: 0;
}

.verification-form .form-group, .onboarding-form .form-group {
  margin-bottom: 20px;
}
.verification-form .form-group:last-child, .onboarding-form .form-group:last-child {
  margin-bottom: 0;
}
.verification-form .form-label, .onboarding-form .form-label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.verification-form .form-label .required, .onboarding-form .form-label .required {
  color: #dc2626;
  margin-left: 2px;
}
.verification-form .form-input, .onboarding-form .form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: white;
}
.verification-form .form-input:focus, .onboarding-form .form-input:focus {
  outline: none;
  border-color: #2A9D8F;
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}
.verification-form .form-input.error, .onboarding-form .form-input.error {
  border-color: #dc2626;
}
.verification-form .form-input.error:focus, .onboarding-form .form-input.error:focus {
  border-color: #2A9D8F;
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}
.verification-form .form-input::placeholder, .onboarding-form .form-input::placeholder {
  color: #9ca3af;
}
.verification-form .form-input:disabled, .onboarding-form .form-input:disabled {
  background-color: #f9fafb;
  color: #6b7280;
  cursor: not-allowed;
}
.verification-form .form-row, .onboarding-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .verification-form .form-row, .onboarding-form .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.verification-form .form-row.three-col, .onboarding-form .form-row.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 768px) {
  .verification-form .form-row.three-col, .onboarding-form .form-row.three-col {
    grid-template-columns: 1fr;
  }
}
.verification-form .form-error, .onboarding-form .form-error {
  display: block;
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 4px;
  font-weight: 500;
}

.form-actions {
  padding: 30px 40px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}
@media (max-width: 768px) {
  .form-actions {
    padding: 24px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}
.btn.btn-primary {
  background: #3b82f6;
  color: white;
}
.btn.btn-primary:hover:not(:disabled) {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.btn.btn-primary:active {
  transform: translateY(0);
}
.btn.btn-secondary {
  background: white;
  color: #374151;
  border-color: #d1d5db;
}
.btn.btn-secondary:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
}
.btn.btn-full {
  width: 100%;
}
.btn.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
}

.patient-mode-selection {
  padding: 30px 40px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}
@media (max-width: 768px) {
  .patient-mode-selection {
    padding: 24px;
  }
}
.patient-mode-selection .mode-option {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.patient-mode-selection .mode-option:last-child {
  margin-bottom: 0;
}
.patient-mode-selection .mode-option input[type=radio] {
  margin-right: 12px;
  transform: scale(1.2);
  accent-color: #3b82f6;
}
.patient-mode-selection .mode-option label {
  font-size: 1.1rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  user-select: none;
}

.magic-link-info {
  padding: 40px;
  text-align: center;
}
.magic-link-info .info-message {
  max-width: 500px;
  margin: 0 auto;
}
.magic-link-info .info-message p {
  margin: 0 0 16px;
  color: #6b7280;
}
.magic-link-info .info-message p:last-of-type {
  margin-bottom: 24px;
}
.magic-link-info .info-message p strong {
  color: #1f2937;
}

.onboarding-success {
  padding: 60px 40px;
  text-align: center;
}
.onboarding-success .success-icon {
  color: #10b981;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
}
.onboarding-success h2 {
  color: #1f2937;
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 16px;
}
.onboarding-success p {
  color: #6b7280;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 32px;
}
.onboarding-success .success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.onboarding-error {
  padding: 60px 40px;
  text-align: center;
}
.onboarding-error .error-icon {
  color: #dc2626;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
}
.onboarding-error h2 {
  color: #1f2937;
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 16px;
}
.onboarding-error p {
  color: #6b7280;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 32px;
}
.onboarding-error .error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 40px;
  font-weight: 500;
}
@media (max-width: 768px) {
  .alert {
    margin: 16px 24px;
  }
}
.alert.alert-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.alert.alert-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.alert svg {
  flex-shrink: 0;
}

.info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  margin-top: 24px;
}
.info-box svg {
  color: #0284c7;
  margin-top: 2px;
  flex-shrink: 0;
}
.info-box p {
  margin: 0 0 12px;
  color: #0369a1;
  font-weight: 500;
}
.info-box p:last-child {
  margin-bottom: 0;
}
.info-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #075985;
}
.info-box ul li {
  margin-bottom: 4px;
}
.info-box ul li:last-child {
  margin-bottom: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  border-top-color: #3b82f6;
  animation: spin 1s ease-in-out infinite;
}
.spinner.large {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

/* Modal overlay styles for Magic Link Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-content .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px;
  border-bottom: 1px solid #e5e7eb;
}
.modal-content .modal-header .modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}
.modal-content .modal-header .modal-close-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.modal-content .modal-header .modal-close-btn:hover {
  color: #374151;
  background: #f3f4f6;
}
.modal-content .modal-header .modal-close-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.modal-content .modal-body {
  padding: 30px;
}
.modal-content .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 30px;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
}

/**
 * Oaklet - Billing Section Styles
 * @copyright (c) 2025-2026 Oaklet
 *
 * Shared billing shell + primitives (buttons, cards, tables, metric cards)
 * and the billing overview page. All billing pages build on these classes.
 *
 * @module presentation/pages/billing
 */
.billing-page-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 72px);
  padding: 20px;
  background-color: #f5f5f9;
  position: relative;
  overflow: hidden;
}

.billing-page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  min-height: 0;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.billing-page-header {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.billing-page-header__info {
  flex: 1;
  min-width: 240px;
}
.billing-page-header__title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0 0 4px 0;
}
.billing-page-header__subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}
.billing-page-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.billing-section-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.billing-section-actions .billing-period-switch {
  background: #e5e7eb;
}

.billing-page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
}

.billing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.billing-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.billing-btn--primary {
  background: #14B8A6;
  color: #ffffff;
}
.billing-btn--primary:hover:not(:disabled) {
  background: #0D9488;
}
.billing-btn--secondary {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
}
.billing-btn--secondary:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
}
.billing-btn--ghost {
  background: transparent;
  color: #6b7280;
}
.billing-btn--ghost:hover:not(:disabled) {
  background: #f3f4f6;
  color: #374151;
}
.billing-btn--danger {
  background: #dc2626;
  color: #ffffff;
}
.billing-btn--danger:hover:not(:disabled) {
  background: #b91c1c;
}
.billing-btn--danger-ghost {
  background: transparent;
  color: #dc2626;
  border: 1px solid #fecdca;
}
.billing-btn--danger-ghost:hover:not(:disabled) {
  background: #fef3f2;
  border-color: #dc2626;
}
.billing-btn--small {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 8px;
}

.billing-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.billing-icon-btn:hover {
  background: #f3f4f6;
  color: #374151;
}
.billing-icon-btn--accent:hover {
  background: #F0FDFA;
  color: #0D9488;
}
.billing-icon-btn--danger:hover {
  background: #fef3f2;
  color: #dc2626;
}

.billing-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
}
.billing-card--flush {
  padding: 0;
  overflow: hidden;
}
.billing-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.billing-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}
.billing-card__title svg {
  color: #9ca3af;
}

.billing-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  flex-shrink: 0;
}

.billing-metric-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.15s ease;
}
.billing-metric-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.billing-metric-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.billing-metric-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.billing-metric-card__icon--revenue {
  background: #F0FDFA;
  color: #0D9488;
}
.billing-metric-card__icon--outstanding {
  background: #fef3c7;
  color: #92400e;
}
.billing-metric-card__icon--available {
  background: #d1fae5;
  color: #065f46;
}
.billing-metric-card__icon--patients {
  background: #f1f5f9;
  color: #475569;
}
.billing-metric-card__change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}
.billing-metric-card__change svg {
  width: 13px;
  height: 13px;
}
.billing-metric-card__change--positive {
  background: #ecfdf5;
  color: #10b981;
}
.billing-metric-card__change--negative {
  background: #fef2f2;
  color: #ef4444;
}
.billing-metric-card__change--stable {
  background: #f3f4f6;
  color: #6b7280;
}
.billing-metric-card__value {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.1;
  margin: 0;
}
.billing-metric-card__title {
  font-size: 13px;
  color: #6b7280;
}

.billing-period-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: #f3f4f6;
  border-radius: 10px;
}
.billing-period-switch__btn {
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: #6b7280;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.billing-period-switch__btn:hover {
  color: #374151;
}
.billing-period-switch__btn--active {
  background: #ffffff;
  color: #111827;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.billing-subtabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.billing-subtabs__tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: #6b7280;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.billing-subtabs__tab svg {
  flex-shrink: 0;
}
.billing-subtabs__tab:hover {
  color: #374151;
}
.billing-subtabs__tab--active {
  color: #0D9488;
  border-bottom-color: #14B8A6;
  font-weight: 600;
}
.billing-subtabs__count {
  padding: 1px 8px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}
.billing-subtabs__tab--active .billing-subtabs__count {
  background: #CCFBF1;
  color: #0F766E;
}

.billing-table {
  overflow-x: auto;
}
.billing-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.billing-table thead th {
  text-align: left;
  padding: 10px 14px;
  color: #6b7280;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #f3f4f6;
  white-space: nowrap;
}
.billing-table thead th.billing-table__sortable {
  cursor: pointer;
  user-select: none;
}
.billing-table thead th.billing-table__sortable:hover {
  color: #0D9488;
}
.billing-table thead th.billing-table__sortable svg {
  vertical-align: -2px;
  margin-left: 3px;
}
.billing-table thead th.billing-table__right {
  text-align: right;
}
.billing-table tbody td {
  padding: 12px 14px;
  color: #374151;
  border-bottom: 1px solid #f9fafb;
  vertical-align: middle;
}
.billing-table tbody td.billing-table__right {
  text-align: right;
}
.billing-table tbody tr {
  transition: background 0.1s ease;
}
.billing-table tbody tr:hover {
  background: #f9fafb;
}
.billing-table tbody tr.billing-table__row--clickable {
  cursor: pointer;
}
.billing-table tbody tr:last-child td {
  border-bottom: none;
}
.billing-table__primary {
  font-weight: 600;
  color: #111827;
}
.billing-table__muted {
  color: #9ca3af;
  font-size: 13px;
}
.billing-table__amount {
  font-weight: 600;
  color: #111827;
  font-variant-numeric: tabular-nums;
}
.billing-table__empty {
  padding: 48px 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}
.billing-table__empty svg {
  color: #d1d5db;
  margin-bottom: 10px;
}
.billing-table__empty p {
  margin: 0;
}
.billing-table__actions {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  position: relative;
}

.billing-table-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 170px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 4px;
  z-index: 50;
}
.billing-table-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: none;
  border-radius: 7px;
  color: #374151;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s ease;
}
.billing-table-menu button:hover {
  background: #f3f4f6;
}
.billing-table-menu button.danger {
  color: #dc2626;
}
.billing-table-menu button.danger:hover {
  background: #fef3f2;
}

.billing-entity-id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.billing-entity-id__value {
  font-size: 13px;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}
.billing-entity-id__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s ease;
}
.billing-entity-id__copy:hover {
  background: #f3f4f6;
  color: #374151;
}
.billing-entity-id__copy--copied {
  color: #16a34a;
}
.billing-entity-id__copy--copied:hover {
  color: #16a34a;
}

.billing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.billing-toolbar__search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 220px;
  max-width: 360px;
  padding: 9px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.15s ease;
}
.billing-toolbar__search svg {
  color: #9ca3af;
  flex-shrink: 0;
}
.billing-toolbar__search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  outline: none;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #111827;
}
.billing-toolbar__search input::placeholder {
  color: #9ca3af;
}
.billing-toolbar__search:focus-within {
  background: #ffffff;
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.billing-toolbar__filters {
  display: flex;
  align-items: center;
  gap: 8px;
}
.billing-toolbar__select {
  padding: 9px 32px 9px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
}
.billing-toolbar__select:hover {
  border-color: #d1d5db;
}
.billing-toolbar__select:focus {
  outline: none;
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.billing-recent-activity {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.billing-recent-activity__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.billing-recent-activity__title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}
.billing-recent-activity__view-all {
  font-size: 13px;
  color: #0D9488;
  text-decoration: none;
  font-weight: 500;
}
.billing-recent-activity__view-all:hover {
  text-decoration: underline;
}
.billing-recent-activity__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 420px;
}
.billing-recent-activity__empty {
  text-align: center;
  padding: 40px;
  color: #9ca3af;
  font-size: 13px;
}

.billing-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid #f9fafb;
  transition: background 0.1s ease;
}
.billing-activity-item:last-child {
  border-bottom: none;
}
.billing-activity-item--clickable {
  cursor: pointer;
}
.billing-activity-item--clickable:hover {
  background: #f9fafb;
}
.billing-activity-item__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.billing-activity-item__icon svg {
  width: 16px;
  height: 16px;
}
.billing-activity-item__icon--success {
  background: #d1fae5;
  color: #065f46;
}
.billing-activity-item__icon--error {
  background: #fee2e2;
  color: #991b1b;
}
.billing-activity-item__icon--warning {
  background: #fef3c7;
  color: #92400e;
}
.billing-activity-item__icon--info {
  background: #F0FDFA;
  color: #0D9488;
}
.billing-activity-item__icon--primary {
  background: #f1f5f9;
  color: #475569;
}
.billing-activity-item__icon--pending {
  background: #f3f4f6;
  color: #6b7280;
}
.billing-activity-item__content {
  flex: 1;
  min-width: 0;
}
.billing-activity-item__description {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  margin: 0 0 2px 0;
  line-height: 1.4;
}
.billing-activity-item__patient {
  color: #6b7280;
  font-weight: 400;
}
.billing-activity-item__timestamp {
  font-size: 12px;
  color: #9ca3af;
}
.billing-activity-item__amount {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.billing-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 320px;
}
.billing-loading__content {
  text-align: center;
}
.billing-loading__text {
  margin-top: 14px;
  color: #6b7280;
  font-size: 14px;
}

.billing-empty {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}
.billing-empty svg {
  color: #d1d5db;
  margin-bottom: 16px;
}
.billing-empty h3 {
  font-size: 17px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 6px;
}
.billing-empty p {
  font-size: 14px;
  margin: 0 0 20px;
}

.billing-error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 12px;
  color: #b42318;
  font-size: 14px;
}
.billing-error-banner svg {
  flex-shrink: 0;
}

.billing-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: #14B8A6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1100px) {
  .billing-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .billing-page-container {
    padding: 12px;
  }
  .billing-page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .billing-page-header__actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .billing-metrics {
    grid-template-columns: 1fr;
  }
  .billing-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .billing-toolbar__search {
    max-width: none;
  }
}
/**
 * Oaklet - Invoices Page Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Nolan W. Platt
 *
 * The invoices page is built entirely from the shared billing classes in
 * _billing.scss (page shell, subtabs, cards, buttons, states) plus the
 * invoice-list component styles in components/billing/invoices/InvoiceList.scss.
 * This partial is kept registered in main.scss but currently defines nothing.
 */
/**
 * Oaklet - Invoice Detail Page Styles
 * @copyright (c) 2025-2026 Oaklet
 *
 * Builds on the shared billing shell + primitives in _billing.scss
 * (.billing-page-container, .billing-card, .billing-btn, .billing-table,
 * .billing-entity-id, .billing-error-banner, .billing-loading, .billing-empty).
 *
 * @module presentation/pages/billing/invoices
 */
.invoice-detail-back {
  display: flex;
  flex-shrink: 0;
}

.invoice-detail-alert__text {
  flex: 1;
  min-width: 0;
}
.invoice-detail-alert__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.invoice-detail-alert__close:hover {
  background: rgba(180, 35, 24, 0.08);
}

.invoice-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.invoice-hero__main {
  min-width: 0;
}
.invoice-hero__id-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.invoice-hero__label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.invoice-hero__amount {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin: 4px 0 10px;
}
.invoice-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #9ca3af;
}
.invoice-hero__meta svg {
  flex-shrink: 0;
}
.invoice-hero__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  flex-shrink: 0;
}
.invoice-hero__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.billing-spinner.billing-spinner--btn {
  width: 16px;
  height: 16px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  margin: 0;
}

.invoice-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  align-items: start;
}

.invoice-detail-main,
.invoice-detail-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.invoice-lines tfoot td {
  padding: 12px 14px;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.invoice-timeline {
  display: flex;
  flex-direction: column;
}
.invoice-timeline__item {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 20px;
}
.invoice-timeline__item:last-child {
  padding-bottom: 0;
}
.invoice-timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  bottom: -2px;
  width: 2px;
  background: #f3f4f6;
}
.invoice-timeline__dot {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
  background: #d1d5db;
}
.invoice-timeline__dot--done {
  background: #14B8A6;
}
.invoice-timeline__dot--warning {
  background: #d97706;
}
.invoice-timeline__dot--danger {
  background: #dc2626;
}
.invoice-timeline__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.invoice-timeline__label {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}
.invoice-timeline__date {
  font-size: 12px;
  color: #9ca3af;
}
.invoice-timeline__detail {
  font-size: 12px;
  color: #9ca3af;
}

.invoice-patient__name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}
.invoice-patient__id {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 10px;
}
.invoice-patient__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: #374151;
  min-width: 0;
}
.invoice-patient__row svg {
  color: #9ca3af;
  flex-shrink: 0;
}
.invoice-patient__row span {
  overflow-wrap: anywhere;
}

.invoice-notes {
  margin: 0;
  padding: 12px 14px;
  background: #f9fafb;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

@media (max-width: 1024px) {
  .invoice-detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .invoice-hero {
    flex-direction: column;
  }
  .invoice-hero__side {
    align-items: flex-start;
  }
  .invoice-hero__actions {
    justify-content: flex-start;
  }
}
/**
 * Oaklet - Claims Page Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Nolan W. Platt
 *
 * Claims list + claim detail. Builds on the shared billing shell
 * (_billing.scss): page skeleton, billing-card, billing-table,
 * billing-metric-card, billing-toolbar, billing-btn.
 *
 * @module presentation/pages/billing/claims
 */
.claims-metrics {
  grid-template-columns: repeat(5, 1fr);
}

.billing-metric-card__icon--claims-total {
  background: #f1f5f9;
  color: #475569;
}
.billing-metric-card__icon--claims-pending {
  background: #fef3c7;
  color: #92400e;
}
.billing-metric-card__icon--claims-approved {
  background: #d1fae5;
  color: #065f46;
}
.billing-metric-card__icon--claims-denied {
  background: #fee2e2;
  color: #991b1b;
}
.billing-metric-card__icon--claims-value {
  background: #F0FDFA;
  color: #0D9488;
}

.claims-toolbar__date {
  padding: 9px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  transition: all 0.15s ease;
}
.claims-toolbar__date:hover {
  border-color: #d1d5db;
}
.claims-toolbar__date:focus {
  outline: none;
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.claims-toolbar__sep {
  font-size: 13px;
  color: #9ca3af;
}

.claim-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.claim-status-pill svg {
  flex-shrink: 0;
}
.claim-status-pill--draft, .claim-status-pill--neutral {
  background: #f3f4f6;
  color: #6b7280;
}
.claim-status-pill--info {
  background: #dbeafe;
  color: #1e40af;
}
.claim-status-pill--success {
  background: #d1fae5;
  color: #065f46;
}
.claim-status-pill--warning {
  background: #fef3c7;
  color: #92400e;
}
.claim-status-pill--danger {
  background: #fee2e2;
  color: #991b1b;
}

.claims-paid-note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: #065f46;
}

.claim-detail-back {
  align-self: flex-start;
}

.claim-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.claim-hero__info {
  min-width: 0;
}
.claim-hero__number {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
}
.claim-hero__amount {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 10px;
}
.claim-hero__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
}
.claim-hero__meta svg {
  color: #9ca3af;
  flex-shrink: 0;
}
.claim-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}
.claim-hero__actions:empty {
  display: none;
}

.claim-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items: start;
}

.claim-detail-main,
.claim-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.claim-services__head, .claim-services__row, .claim-services__total {
  display: grid;
  grid-template-columns: 2fr 1fr 60px 110px;
  gap: 12px;
  align-items: center;
}
.claim-services__head {
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
}
.claim-services__row {
  padding: 12px 0;
  border-bottom: 1px solid #f9fafb;
  font-size: 14px;
  color: #374151;
}
.claim-services__center {
  text-align: center;
}
.claim-services__right {
  text-align: right;
}
.claim-services__desc {
  font-weight: 500;
  color: #111827;
}
.claim-services__code {
  font-size: 13px;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}
.claim-services__qty {
  text-align: center;
  color: #6b7280;
}
.claim-services__amount {
  text-align: right;
  font-weight: 600;
  color: #111827;
  font-variant-numeric: tabular-nums;
}
.claim-services__total {
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.claim-services__total-amount {
  text-align: right;
  font-size: 15px;
  font-weight: 700;
  color: #0D9488;
  font-variant-numeric: tabular-nums;
}

.claim-note {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.claim-note + .claim-note {
  margin-top: 10px;
}
.claim-note strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}
.claim-note p {
  margin: 0;
}
.claim-note--danger {
  background: #fee2e2;
  color: #991b1b;
}
.claim-note--warning {
  background: #fef3c7;
  color: #92400e;
}

.claim-timeline__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}
.claim-timeline__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 34px;
  bottom: -10px;
  width: 2px;
  background: #f3f4f6;
}
.claim-timeline__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
}
.claim-timeline__dot--created {
  background: #9ca3af;
}
.claim-timeline__dot--submitted {
  background: #14B8A6;
}
.claim-timeline__dot--processed {
  background: #10b981;
}
.claim-timeline__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.claim-timeline__label {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}
.claim-timeline__date {
  font-size: 12px;
  color: #9ca3af;
}

.claim-patient__name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}
.claim-patient__id {
  font-size: 12px;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.claim-field {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f9fafb;
}
.claim-field:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.claim-field:first-child {
  padding-top: 0;
}
.claim-field__label {
  font-size: 13px;
  color: #6b7280;
  flex-shrink: 0;
}
.claim-field__value {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  text-align: right;
  word-break: break-word;
}

@media (max-width: 1100px) {
  .claims-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1024px) {
  .claim-detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .claims-metrics {
    grid-template-columns: 1fr;
  }
  .claim-hero__top {
    flex-direction: column;
    align-items: flex-start;
  }
  .claim-services__head, .claim-services__row, .claim-services__total {
    grid-template-columns: 1fr 60px 100px;
    gap: 8px;
  }
  .claim-services__head > :nth-child(2), .claim-services__row > :nth-child(2), .claim-services__total > :nth-child(2) {
    display: none;
  }
}
/**
 * Oaklet - Superbills Page Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Nolan W. Platt
 *
 * Superbills list + superbill detail. Builds on the shared billing shell
 * (_billing.scss): page skeleton, billing-card, billing-table,
 * billing-toolbar, billing-btn.
 */
.superbills-toolbar__date {
  padding: 9px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  transition: all 0.15s ease;
}
.superbills-toolbar__date:hover {
  border-color: #d1d5db;
}
.superbills-toolbar__date:focus {
  outline: none;
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.superbills-toolbar__sep {
  font-size: 13px;
  color: #9ca3af;
}

.superbill-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.superbill-status-pill svg {
  flex-shrink: 0;
}
.superbill-status-pill--draft {
  background: #f3f4f6;
  color: #6b7280;
}
.superbill-status-pill--ready {
  background: #fef3c7;
  color: #92400e;
}
.superbill-status-pill--submitted {
  background: #dbeafe;
  color: #1e40af;
}
.superbill-status-pill--processed {
  background: #d1fae5;
  color: #065f46;
}

.billing-table tbody tr.superbill-row--selected {
  background: #F0FDFA;
}

.superbill-detail-back {
  align-self: flex-start;
}

.superbill-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.superbill-hero__info {
  min-width: 0;
}
.superbill-hero__number {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
}
.superbill-hero__amount {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 10px;
}
.superbill-hero__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
}
.superbill-hero__meta svg {
  color: #9ca3af;
  flex-shrink: 0;
}
.superbill-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}
.superbill-hero__actions:empty {
  display: none;
}

.superbill-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items: start;
}

.superbill-detail-main,
.superbill-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.superbill-services__head, .superbill-services__row, .superbill-services__total {
  display: grid;
  grid-template-columns: 2fr 1fr 60px 110px;
  gap: 12px;
  align-items: center;
}
.superbill-services__head {
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
}
.superbill-services__row {
  padding: 12px 0;
  border-bottom: 1px solid #f9fafb;
  font-size: 14px;
  color: #374151;
}
.superbill-services__center {
  text-align: center;
}
.superbill-services__right {
  text-align: right;
}
.superbill-services__desc {
  font-weight: 500;
  color: #111827;
}
.superbill-services__code {
  font-size: 13px;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}
.superbill-services__units {
  text-align: center;
  color: #6b7280;
}
.superbill-services__amount {
  text-align: right;
  font-weight: 600;
  color: #111827;
  font-variant-numeric: tabular-nums;
}
.superbill-services__total {
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.superbill-services__total-amount {
  text-align: right;
  font-size: 15px;
  font-weight: 700;
  color: #0D9488;
  font-variant-numeric: tabular-nums;
}

.superbill-diagnoses__head, .superbill-diagnoses__row {
  display: grid;
  grid-template-columns: 1fr 2fr 100px;
  gap: 12px;
  align-items: center;
}
.superbill-diagnoses__head {
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
}
.superbill-diagnoses__row {
  padding: 12px 0;
  border-bottom: 1px solid #f9fafb;
  font-size: 14px;
  color: #374151;
}
.superbill-diagnoses__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.superbill-diagnoses__center {
  text-align: center;
}
.superbill-diagnoses__code {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}
.superbill-diagnoses__desc {
  font-weight: 500;
  color: #111827;
}
.superbill-diagnoses__type {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  text-transform: capitalize;
}

.superbill-notes-box {
  background: #f9fafb;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
  white-space: pre-wrap;
}

.superbill-patient__name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}
.superbill-patient__id {
  font-size: 12px;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.superbill-field {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f9fafb;
}
.superbill-field:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.superbill-field:first-child {
  padding-top: 0;
}
.superbill-field__label {
  font-size: 13px;
  color: #6b7280;
  flex-shrink: 0;
}
.superbill-field__value {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  text-align: right;
  word-break: break-word;
}

@media (max-width: 1024px) {
  .superbill-detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .superbill-hero__top {
    flex-direction: column;
    align-items: flex-start;
  }
  .superbill-services__head, .superbill-services__row, .superbill-services__total {
    grid-template-columns: 1fr 60px 100px;
    gap: 8px;
  }
  .superbill-services__head > :nth-child(2), .superbill-services__row > :nth-child(2), .superbill-services__total > :nth-child(2) {
    display: none;
  }
  .superbill-diagnoses__head, .superbill-diagnoses__row {
    grid-template-columns: 1fr 2fr;
    gap: 8px;
  }
  .superbill-diagnoses__head > :nth-child(3), .superbill-diagnoses__row > :nth-child(3) {
    display: none;
  }
}
/**
 * Oaklet - Billing Settings Page Styles
 * @copyright (c) 2025-2026 Oaklet
 *
 * Billing settings: Stripe payment processing status. Builds on the shared
 * billing shell + primitives in _billing.scss (billing-card, billing-btn, ...).
 *
 * @module presentation/pages/billing/settings
 */
.billing-settings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.billing-stripe-status {
  border-radius: 12px;
  padding: 16px 18px;
}
.billing-stripe-status--connected {
  background: #ecfdf3;
  border: 1px solid #abefc6;
}
.billing-stripe-status--connected .billing-stripe-status__state-icon {
  color: #067647;
}
.billing-stripe-status--disconnected {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}
.billing-stripe-status--disconnected .billing-stripe-status__state-icon {
  color: #9ca3af;
}
.billing-stripe-status__body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.billing-stripe-status__state-icon {
  flex-shrink: 0;
  margin-top: 1px;
}
.billing-stripe-status__details {
  flex: 1;
  min-width: 0;
}
.billing-stripe-status__title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 2px;
}
.billing-stripe-status__description {
  font-size: 13px;
  color: #374151;
  margin: 0;
  line-height: 1.5;
}
.billing-stripe-status__account {
  font-size: 13px;
  color: #6b7280;
  margin: 6px 0 0;
  word-break: break-all;
}
.billing-stripe-status__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 10px;
}
.billing-stripe-status__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
}
.billing-stripe-status__meta-item svg {
  color: #9ca3af;
  flex-shrink: 0;
}
.billing-stripe-status__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.billing-stripe-status__confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #fecdca;
  border-radius: 10px;
}
.billing-stripe-status__confirm-text {
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
  margin: 0;
}
.billing-stripe-status__confirm-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .billing-stripe-status__confirm {
    flex-direction: column;
    align-items: flex-start;
  }
}
.organization-settings-page {
  padding: 24px;
}
.organization-settings-page .page-header {
  margin-bottom: 32px;
}
.organization-settings-page .page-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.organization-settings-page .page-header .page-title {
  font-size: 28px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px;
}
.organization-settings-page .page-header .page-subtitle {
  font-size: 14px;
  color: #6b7280;
}
.organization-settings-page .page-header .header-actions {
  display: flex;
  gap: 16px;
}
.organization-settings-page .error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.organization-settings-page .error-banner .error-message {
  color: #dc2626;
}
.organization-settings-page .error-banner .btn-link {
  color: #dc2626;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
}
.organization-settings-page .loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px;
  color: #6b7280;
}
.organization-settings-page .loading-container .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f4f6;
  border-top-color: #374151;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}
.organization-settings-page .organization-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #f3f4f6;
  margin-bottom: 32px;
}
.organization-settings-page .organization-tabs .tab-button {
  padding: 16px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #6b7280;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -2px;
}
.organization-settings-page .organization-tabs .tab-button:hover {
  color: #111827;
}
.organization-settings-page .organization-tabs .tab-button.active {
  color: #374151;
  border-bottom-color: #374151;
}
.organization-settings-page .tab-content {
  min-height: 400px;
}
.organization-settings-page .empty-state {
  text-align: center;
  padding: 64px;
}
.organization-settings-page .empty-state h3 {
  font-size: 20px;
  color: #111827;
  margin-bottom: 8px;
}
.organization-settings-page .empty-state p {
  color: #6b7280;
  margin-bottom: 24px;
}

.practice-info-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.practice-info-card .card-header h2 {
  font-size: 20px;
  color: #111827;
  margin: 0;
}
.practice-info-card .top-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
  align-items: stretch;
}
.practice-info-card .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.practice-info-card .info-section {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 6px;
  padding: 24px;
}
.practice-info-card .info-section.full-width {
  grid-column: 1/-1;
}
.practice-info-card .info-section.edit-button-section {
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}
.practice-info-card .info-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
}
.practice-info-card .info-row {
  margin-bottom: 16px;
}
.practice-info-card .info-row:last-child {
  margin-bottom: 0;
}
.practice-info-card .info-row label {
  display: block;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 4px;
}
.practice-info-card .info-row span {
  font-size: 16px;
  color: #111827;
}
.practice-info-card .business-hours-grid .hours-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}
.practice-info-card .business-hours-grid .hours-row:last-child {
  border-bottom: none;
}
.practice-info-card .business-hours-grid .hours-row .day {
  font-weight: 500;
  color: #111827;
}
.practice-info-card .business-hours-grid .hours-row .hours {
  color: #6b7280;
}

.holiday-list .list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.holiday-list .list-header h2 {
  font-size: 20px;
  color: #111827;
  margin: 0;
}
.holiday-list .holiday-section {
  margin-bottom: 32px;
}
.holiday-list .holiday-section h3 {
  font-size: 18px;
  color: #111827;
  margin-bottom: 16px;
}
.holiday-list .holidays-grid {
  display: flex;
  flex-direction: column;
}
.holiday-list .holidays-grid.past {
  opacity: 0.6;
}
.holiday-list .holiday-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}
.holiday-list .holiday-card:first-child {
  border-top: 1px solid #e5e7eb;
}
.holiday-list .holiday-card:hover {
  background: #f9fafb;
}
.holiday-list .holiday-card.past .holiday-date {
  opacity: 0.5;
}
.holiday-list .holiday-card .holiday-date {
  flex-shrink: 0;
  width: 45px;
  text-align: center;
}
.holiday-list .holiday-card .holiday-date .month {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 600;
}
.holiday-list .holiday-card .holiday-date .day {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}
.holiday-list .holiday-card .holiday-info {
  flex: 1;
  min-width: 0;
}
.holiday-list .holiday-card .holiday-info h4 {
  margin: 0;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 600;
}
.holiday-list .holiday-card .holiday-info p {
  margin: 0;
  color: #6b7280;
  font-size: 0.8rem;
}
.holiday-list .holiday-card .holiday-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.holiday-list .holiday-card .holiday-actions .settings-icon-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #6b7280;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.holiday-list .holiday-card .holiday-actions .settings-icon-btn:hover:not(:disabled) {
  background: #f3f4f6;
  color: #374151;
}
.holiday-list .holiday-card .holiday-actions .settings-icon-btn--danger:hover:not(:disabled) {
  background: #fee2e2;
  color: #dc2626;
}
.holiday-list .holiday-card .holiday-actions .settings-icon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
}
.badge.badge-primary {
  background: #dbeafe;
  color: #1e40af;
}
.badge.badge-success {
  background: #dcfce7;
  color: #16a34a;
}
.badge.badge-inactive {
  background: #f3f4f6;
  color: #6b7280;
}
.badge.badge-info {
  background: #e0f2fe;
  color: #0369a1;
}

.btn-icon {
  padding: 8px;
  background: none;
  border: 1px solid #f3f4f6;
  border-radius: 4px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-icon:hover {
  background: #f3f4f6;
  color: #111827;
}
.btn-icon.btn-danger:hover {
  background: #fef2f2;
  border-color: #dc2626;
  color: #dc2626;
}

.btn-sm {
  padding: 4px 8px;
  font-size: 14px;
}

.btn-outline {
  background: white;
  border: 1px solid #f3f4f6;
  color: #111827;
}
.btn-outline:hover {
  background: #f3f4f6;
}

.btn-danger {
  background: #dc2626;
  color: white;
  border: 1px solid #dc2626;
}
.btn-danger:hover {
  background: rgb(178.25, 28.75, 28.75);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-content.modal-large {
  max-width: 800px;
}
.modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #f3f4f6;
}
.modal-content .modal-header h2 {
  font-size: 20px;
  color: #111827;
  margin: 0;
}
.modal-content .modal-header .close-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content .modal-header .close-button:hover {
  color: #111827;
}
.modal-content .modal-body {
  padding: 24px;
}
.modal-content .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 24px;
  border-top: 1px solid #f3f4f6;
}

.form-section {
  margin-bottom: 32px;
}
.form-section:last-child {
  margin-bottom: 0;
}
.form-section h3 {
  font-size: 16px;
  color: #111827;
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.organization-info-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.organization-info-card .card-header h2 {
  font-size: 20px;
  color: #111827;
  margin: 0;
}
.organization-info-card .top-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
  align-items: stretch;
}
.organization-info-card .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.organization-info-card .info-section {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 6px;
  padding: 24px;
}
.organization-info-card .info-section.full-width {
  grid-column: 1/-1;
}
.organization-info-card .info-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
}
.organization-info-card .info-row {
  margin-bottom: 16px;
}
.organization-info-card .info-row:last-child {
  margin-bottom: 0;
}
.organization-info-card .info-row label {
  display: block;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 4px;
}
.organization-info-card .info-row span {
  font-size: 16px;
  color: #111827;
}
.organization-info-card .directors-list .director-item {
  background: #f3f4f6;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
}
.organization-info-card .directors-list .director-item:last-child {
  margin-bottom: 0;
}
.organization-info-card .directors-list .director-item .director-info h4 {
  font-size: 16px;
  color: #111827;
  margin: 0 0 4px;
}
.organization-info-card .directors-list .director-item .director-info .director-email {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 4px;
}
.organization-info-card .directors-list .director-item .director-info .director-role {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  background: #e0f2fe;
  color: #0369a1;
}
.organization-info-card .empty-message {
  color: #6b7280;
  font-style: italic;
  text-align: center;
  padding: 24px;
}

.practices-list-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.practices-list-card .card-header h2 {
  font-size: 20px;
  color: #111827;
  margin: 0;
}
.practices-list-card .card-header .total-counts .count-label {
  font-size: 14px;
  color: #6b7280;
}
.practices-list-card .card-header .total-counts .count-label strong {
  color: #111827;
  font-size: 16px;
}
.practices-list-card .patient-counts-summary {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px;
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 6px;
}
.practices-list-card .patient-counts-summary .count-item {
  text-align: center;
  flex: 1;
}
.practices-list-card .patient-counts-summary .count-item .count-number {
  display: block;
  font-size: 24px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}
.practices-list-card .patient-counts-summary .count-item .count-label {
  font-size: 14px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.practices-list-card .patient-counts-summary .count-item.active .count-number {
  color: #16a34a;
}
.practices-list-card .patient-counts-summary .count-item.pending .count-number {
  color: #0369a1;
}
.practices-list-card .patient-counts-summary .count-item.inactive .count-number {
  color: #6b7280;
}
.practices-list-card .practices-list {
  display: grid;
  gap: 24px;
}
.practices-list-card .practices-list .practice-item {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 6px;
  padding: 24px;
}
.practices-list-card .practices-list .practice-item .practice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.practices-list-card .practices-list .practice-item .practice-header h3 {
  font-size: 18px;
  color: #111827;
  margin: 0;
}
.practices-list-card .practices-list .practice-item .practice-header .practice-id {
  font-size: 14px;
  color: #6b7280;
  padding: 2px 8px;
  background: #f3f4f6;
  border-radius: 4px;
}
.practices-list-card .practices-list .practice-item .practice-details {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
}
@media (max-width: 768px) {
  .practices-list-card .practices-list .practice-item .practice-details {
    grid-template-columns: 1fr;
  }
}
.practices-list-card .practices-list .practice-item .practice-details .contact-info .info-row {
  margin-bottom: 16px;
}
.practices-list-card .practices-list .practice-item .practice-details .contact-info .info-row:last-child {
  margin-bottom: 0;
}
.practices-list-card .practices-list .practice-item .practice-details .contact-info .info-row label {
  display: block;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 4px;
}
.practices-list-card .practices-list .practice-item .practice-details .contact-info .info-row span {
  font-size: 16px;
  color: #111827;
}
.practices-list-card .practices-list .practice-item .practice-details .patient-counts h4 {
  font-size: 14px;
  color: #111827;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.practices-list-card .practices-list .practice-item .practice-details .patient-counts .counts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.practices-list-card .practices-list .practice-item .practice-details .patient-counts .counts-grid .count-cell {
  text-align: center;
  padding: 8px;
  background: #f3f4f6;
  border-radius: 4px;
}
.practices-list-card .practices-list .practice-item .practice-details .patient-counts .counts-grid .count-cell .count-number {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}
.practices-list-card .practices-list .practice-item .practice-details .patient-counts .counts-grid .count-cell .count-label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
}
.practices-list-card .practices-list .practice-item .practice-details .patient-counts .counts-grid .count-cell.active {
  background: #dcfce7;
}
.practices-list-card .practices-list .practice-item .practice-details .patient-counts .counts-grid .count-cell.active .count-number {
  color: #16a34a;
}
.practices-list-card .practices-list .practice-item .practice-details .patient-counts .counts-grid .count-cell.pending {
  background: #e0f2fe;
}
.practices-list-card .practices-list .practice-item .practice-details .patient-counts .counts-grid .count-cell.pending .count-number {
  color: #0369a1;
}
.practices-list-card .practices-list .practice-item .practice-details .patient-counts .counts-grid .count-cell.inactive {
  background: #f8fafc;
}
.practices-list-card .practices-list .practice-item .practice-details .patient-counts .counts-grid .count-cell.inactive .count-number {
  color: #6b7280;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.analytics-section {
  margin-bottom: 32px;
}
.analytics-section .section-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 24px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.metrics-grid .metric-card {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 6px;
  padding: 24px;
  transition: box-shadow 0.2s;
}
.metrics-grid .metric-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.metrics-grid .metric-card .metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.metrics-grid .metric-card .metric-header .metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.metrics-grid .metric-card .metric-header .metric-change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}
.metrics-grid .metric-card .metric-value {
  font-size: 30px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}
.metrics-grid .metric-card .metric-title {
  font-size: 14px;
  color: #6b7280;
}

.revenue-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 8px;
  height: 300px;
  padding: 32px;
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 6px;
  margin-bottom: 16px;
}
.revenue-chart .revenue-bar-container {
  flex: 1;
  max-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.revenue-chart .revenue-bar-container .revenue-bar {
  width: 100%;
  min-width: 40px;
  height: 180px;
  background: #f3f4f6;
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: flex-end;
  border: 1px solid #e5e7eb;
}
.revenue-chart .revenue-bar-container .revenue-bar .revenue-bar-fill {
  width: 100%;
  min-height: 2px;
  border-radius: 4px;
  transition: height 0.3s ease;
}
.revenue-chart .revenue-bar-container .revenue-label {
  font-size: 11px;
  color: #6b7280;
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
}
.revenue-chart .revenue-bar-container .revenue-value {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.practices-table {
  overflow-x: auto;
}
.practices-table table {
  width: 100%;
  border-collapse: collapse;
}
.practices-table table thead tr {
  border-bottom: 2px solid #f3f4f6;
}
.practices-table table thead tr th {
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.practices-table table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s;
}
.practices-table table tbody tr:hover {
  background-color: #f9fafb;
}
.practices-table table tbody tr td {
  padding: 16px;
  font-size: 14px;
  color: #374151;
}
.practices-table table tbody tr td.practice-name {
  font-weight: 600;
  color: #111827;
}
.practices-table table tbody tr td .utilization-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.practices-table table tbody tr td .utilization-cell .utilization-bar {
  flex: 1;
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}
.practices-table table tbody tr td .utilization-cell .utilization-bar .utilization-fill {
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 4px;
}
.practices-table table tbody tr td .utilization-cell span {
  font-weight: 600;
  min-width: 48px;
  text-align: right;
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.providers-grid .provider-card {
  border: 1px solid #f3f4f6;
  border-radius: 4px;
  padding: 24px;
  transition: box-shadow 0.2s;
}
.providers-grid .provider-card:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.providers-grid .provider-card .provider-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.providers-grid .provider-card .provider-header .provider-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #374151;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}
.providers-grid .provider-card .provider-header .provider-info {
  flex: 1;
}
.providers-grid .provider-card .provider-header .provider-info .provider-name {
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}
.providers-grid .provider-card .provider-header .provider-info .provider-stats {
  font-size: 12px;
  color: #6b7280;
}
.providers-grid .provider-card .provider-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.providers-grid .provider-card .provider-metrics .provider-metric {
  text-align: center;
}
.providers-grid .provider-card .provider-metrics .provider-metric .metric-label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}
.providers-grid .provider-card .provider-metrics .provider-metric .metric-value {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.date-range-selector {
  padding: 8px 16px;
  border: 1px solid #f3f4f6;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}
.date-range-selector:hover {
  border-color: #374151;
}
.date-range-selector:focus {
  outline: none;
  border-color: #374151;
  box-shadow: 0 0 0 3px rgba(50, 162, 147, 0.1);
}

/**
 * Staff Management Page Styles
 */
.staff-management-page {
  min-height: calc(100vh - 60px);
  background: #f9fafb;
  padding: 2rem;
}
.staff-management-page .settings-header {
  max-width: 1400px;
  margin: 0 auto 0 auto;
}
.staff-management-page .settings-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 2rem;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid #e5e7eb;
}
.staff-management-page .settings-header .header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.staff-management-page .settings-header .header-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--color-primary) 10%, white);
  border-radius: 12px;
  color: var(--color-primary);
}
.staff-management-page .settings-header .settings-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
}
.staff-management-page .settings-header .settings-subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
}
.staff-management-page .settings-header .save-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.staff-management-page .settings-header .save-btn:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}
.staff-management-page .settings-header .save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.staff-management-page .staff-tabs {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 1.5rem;
  border-radius: 0;
  box-shadow: none;
}
.staff-management-page .settings-container {
  max-width: 1400px;
  margin: 0 auto;
}
.staff-management-page .staff-card {
  background: white;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.staff-management-page .staff-card .staff-filter-bar {
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
}
.staff-management-page .staff-card .staff-list {
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 768px) {
  .staff-management-page {
    padding: 1rem;
  }
  .staff-management-page .settings-header .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .staff-management-page .settings-header .save-btn {
    width: 100%;
    justify-content: center;
  }
}

.staff-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
  border-bottom: 1px solid #e5e7eb;
}
.staff-filter-bar__search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  max-width: 400px;
  padding: 0.5rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.staff-filter-bar__search:focus-within {
  background: white;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, white);
}
.staff-filter-bar__search svg {
  color: #9ca3af;
  flex-shrink: 0;
}
.staff-filter-bar__search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9375rem;
  color: #1f2937;
  outline: none;
}
.staff-filter-bar__search input::placeholder {
  color: #9ca3af;
}
.staff-filter-bar__filters {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.staff-filter-bar__filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.staff-filter-bar__filter svg {
  color: #6b7280;
  flex-shrink: 0;
}
.staff-filter-bar__filter select {
  border: none;
  background: transparent;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  outline: none;
  padding-right: 0.5rem;
}
.staff-filter-bar__count {
  font-size: 0.875rem;
  color: #6b7280;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .staff-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .staff-filter-bar__search {
    max-width: none;
  }
  .staff-filter-bar__filters {
    justify-content: space-between;
  }
}

.staff-loading {
  padding: 3rem;
  text-align: center;
  color: #6b7280;
  background: white;
  border-radius: 12px;
}

.staff-empty {
  padding: 4rem 2rem;
  text-align: center;
  background: white;
  border-radius: 12px;
}
.staff-empty svg {
  opacity: 0.3;
  margin-bottom: 1rem;
  color: #6b7280;
}
.staff-empty h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}
.staff-empty p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9375rem;
}

.staff-list {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.staff-list__header {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  gap: 0;
}
.staff-list__header-col {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: none;
  border: none;
  padding: 0.375rem 0.5rem;
  margin: -0.375rem 0;
  border-radius: 4px;
  cursor: default;
  transition: all 0.15s ease;
}
.staff-list__header-col--avatar {
  width: 60px;
  flex-shrink: 0;
}
.staff-list__header-col--name {
  width: 200px;
  flex-shrink: 0;
  cursor: pointer;
}
.staff-list__header-col--name:hover {
  background: #e5e7eb;
  color: #374151;
}
.staff-list__header-col--role {
  width: 140px;
  flex-shrink: 0;
  cursor: pointer;
}
.staff-list__header-col--role:hover {
  background: #e5e7eb;
  color: #374151;
}
.staff-list__header-col--email {
  width: 260px;
  flex-shrink: 0;
  cursor: pointer;
}
.staff-list__header-col--email:hover {
  background: #e5e7eb;
  color: #374151;
}
.staff-list__header-col--practices {
  flex: 1;
  min-width: 150px;
}
.staff-list__header-col--actions {
  width: 124px;
  flex-shrink: 0;
  justify-content: flex-end;
}
.staff-list__header-col.active {
  color: var(--color-primary);
  font-weight: 700;
}
.staff-list__header-col.active svg {
  color: var(--color-primary);
}
.staff-list__header-col svg {
  flex-shrink: 0;
}
.staff-list__no-results {
  padding: 3rem 1.5rem;
  text-align: center;
}
.staff-list__no-results p {
  color: #6b7280;
  margin: 0;
  font-size: 0.9375rem;
}

.staff-item {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s ease;
  gap: 0;
}
.staff-item:last-child {
  border-bottom: none;
}
.staff-item:hover {
  background: #f9fafb;
}
.staff-item__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
  text-transform: uppercase;
  margin-right: 24px;
}
.staff-item__name {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  overflow: hidden;
}
.staff-item__name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.staff-item__role {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.staff-item__role .staff-role-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.staff-item__email {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 13px;
}
.staff-item__email svg {
  flex-shrink: 0;
  color: #9ca3af;
}
.staff-item__email span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.staff-item__practices {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex: 1;
  min-width: 150px;
}
.staff-item__actions {
  display: flex;
  gap: 6px;
  width: 124px;
  flex-shrink: 0;
  justify-content: flex-end;
}
.staff-item__no-practices {
  color: #9ca3af;
  font-size: 12px;
  font-style: italic;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
}
.contact-row svg {
  flex-shrink: 0;
  color: #9ca3af;
}
.contact-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.practices-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.practices-header svg {
  flex-shrink: 0;
  color: #667eea;
}

.practices-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.practice-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}
.practice-tag--small {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
}
.practice-tag--more {
  background: #e0e7ff;
  color: #4338ca;
  border-color: #c7d2fe;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
}

.no-practices {
  color: #9ca3af;
  font-size: 13px;
  font-style: italic;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6b7280;
}
.icon-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}
.icon-btn--danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}
.icon-btn--accent {
  color: #0D9488;
}
.icon-btn--accent:hover {
  background: #F0FDFA;
  border-color: #5EEAD4;
  color: #0F766E;
}
.icon-btn--accent:disabled {
  opacity: 0.5;
  cursor: wait;
}

.staff-status-badge {
  display: inline-block;
  flex-shrink: 0;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}
.staff-status-badge--invited {
  background: #F0FDFA;
  color: #0F766E;
  border: 1px solid #CCFBF1;
}
.staff-status-badge--expired {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.invite-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  background: #F0FDFA;
  border: 1px solid #CCFBF1;
  font-size: 0.875rem;
  color: #0F766E;
}
.invite-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.modal-dialog {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}
.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s ease;
}
.modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.modal-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-btn--cancel {
  background: white;
  color: #6b7280;
  border: 1px solid #d1d5db;
}
.modal-btn--cancel:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}
.modal-btn--save {
  background: #32A293;
  color: white;
}
.modal-btn--save:hover {
  background: #256b64;
}
.modal-btn--save:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.form-section {
  margin-bottom: 2rem;
}
.form-section:last-child {
  margin-bottom: 0;
}

.form-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.form-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
}

.form-section-description {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 16px 0;
}

.form-section-actions {
  display: flex;
  gap: 12px;
}

.link-btn {
  background: none;
  border: none;
  color: #32A293;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}
.link-btn:hover {
  color: #256b64;
  text-decoration: underline;
}

.practice-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.practice-checkboxes .checkbox-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f9fafb;
}
.practice-checkboxes .checkbox-label:hover {
  background: rgba(50, 162, 147, 0.08);
  border-color: rgba(50, 162, 147, 0.4);
}
.practice-checkboxes .checkbox-label input[type=checkbox] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: #32A293;
  flex-shrink: 0;
}
.practice-checkboxes .checkbox-label span {
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}
.practice-checkboxes .checkbox-label:has(input:checked) {
  background: rgba(50, 162, 147, 0.1);
  border-color: #32A293;
}
.practice-checkboxes .checkbox-label:has(input:checked) span {
  color: #256b64;
}

.staff-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.staff-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #6b7280;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -2px;
}
.staff-tab:hover {
  color: #374151;
  background: #f9fafb;
}
.staff-tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}
.staff-tab--active svg {
  color: var(--color-primary);
}
.staff-tab svg {
  flex-shrink: 0;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
@media (max-width: 768px) {
  .roles-grid {
    grid-template-columns: 1fr;
  }
}

.role-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.role-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #32A293 0%, #256b64 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.role-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
  transform: translateY(-2px);
}
.role-card:hover::before {
  opacity: 1;
}
.role-card__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.role-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(50, 162, 147, 0.15) 0%, rgba(50, 162, 147, 0.25) 100%);
  color: #32A293;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.role-card__info {
  flex: 1;
  min-width: 0;
}
.role-card__name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}
.role-card__actions {
  display: flex;
  gap: 6px;
}
.role-card__description {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 1.25rem 0;
}
.role-card__stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}
.role-card__permissions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.role-badge--system {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}
.role-badge--custom {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.role-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #6b7280;
}
.role-stat svg {
  color: #32A293;
  flex-shrink: 0;
}
.role-stat span {
  font-weight: 500;
}

.permissions-header {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.permissions-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.permission-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #374151;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}
.permission-tag--more {
  background: linear-gradient(135deg, rgba(50, 162, 147, 0.15) 0%, rgba(50, 162, 147, 0.25) 100%);
  color: #256b64;
  font-weight: 600;
}

.modal-dialog--small {
  max-width: 500px;
}

.delete-warning-box {
  background: #fef2f2;
  border: 2px solid #fecaca;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.delete-warning-box .warning-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.delete-warning-box .warning-icon svg {
  color: #dc2626;
}
.delete-warning-box h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #991b1b;
  margin: 0 0 0.75rem 0;
}
.delete-warning-box p {
  font-size: 0.9375rem;
  color: #7f1d1d;
  margin: 0;
  line-height: 1.5;
}

.staff-delete-info {
  background: #f9fafb;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.staff-delete-info .info-row {
  display: flex;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}
.staff-delete-info .info-row:last-child {
  border-bottom: none;
}
.staff-delete-info .info-row .info-label {
  font-weight: 600;
  color: #6b7280;
  min-width: 80px;
  margin-right: 1rem;
}
.staff-delete-info .info-row .info-value {
  color: #1f2937;
  flex: 1;
}

.confirm-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}
.confirm-label strong {
  color: #dc2626;
}

.confirm-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease;
}
.confirm-input:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.confirm-input::placeholder {
  color: #9ca3af;
}

.modal-btn--danger {
  background: #dc2626;
  color: white;
}
.modal-btn--danger:hover:not(:disabled) {
  background: #b91c1c;
}
.modal-btn--danger:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.modal-dialog--wide {
  max-width: 900px;
  max-height: 85vh;
}

.alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.alert--info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border: 1px solid #93c5fd;
}
.alert--info svg {
  color: #3b82f6;
  flex-shrink: 0;
}
.alert--error {
  background: #fef2f2;
  color: #b42318;
  border: 1px solid #fecaca;
}
.alert--error svg {
  color: #dc2626;
  flex-shrink: 0;
}
.alert--success {
  background: #F0FDFA;
  color: #0F766E;
  border: 1px solid #CCFBF1;
}
.alert--success svg {
  color: #0D9488;
  flex-shrink: 0;
}
.alert__dismiss {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}
.alert__dismiss:hover {
  opacity: 1;
}

.role-form-grid {
  display: grid;
  gap: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}
.form-label--large {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  font-family: inherit;
}
.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.form-input::placeholder {
  color: #9ca3af;
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.form-hint {
  display: block;
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.375rem;
}

.permissions-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 450px;
  overflow-y: auto;
  padding: 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}
.permissions-list::-webkit-scrollbar {
  width: 8px;
}
.permissions-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.permissions-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.permissions-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.permission-category {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.permission-category:last-child {
  margin-bottom: 0;
}
.permission-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
}
.permission-category__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}
.permission-category__title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: linear-gradient(135deg, #32A293 0%, #256b64 100%);
  border-radius: 2px;
}
.permission-category__actions {
  display: flex;
  gap: 0.5rem;
}
.permission-category__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.category-action-btn {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: white;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.category-action-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #475569;
}
.category-action-btn--primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-color: #3b82f6;
}
.category-action-btn--primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.permission-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.permission-checkbox:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}
.permission-checkbox input[type=checkbox] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3b82f6;
  flex-shrink: 0;
  border-radius: 4px;
}
.permission-checkbox span {
  font-size: 0.875rem;
  color: #475569;
  font-weight: 500;
  line-height: 1.4;
  user-select: none;
}
.permission-checkbox input:checked ~ span {
  color: #1e293b;
  font-weight: 600;
}
.permission-checkbox:has(input:checked) {
  background: #eff6ff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.notification-preferences-container {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
  min-height: 100vh;
}

.notification-preferences {
  max-width: 800px;
  width: 100%;
}
.notification-preferences .preferences-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.notification-preferences .preferences-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}
.notification-preferences .preferences-header .subtitle {
  margin-top: 0.375rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.notification-preferences .preferences-header .header-actions {
  display: flex;
  gap: 0.625rem;
}
.notification-preferences .alert {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notification-preferences .alert.alert-error {
  background: var(--alert-error-bg, #fee);
  border: 1px solid var(--alert-error-border, #fcc);
  color: var(--alert-error-text, #c00);
}
.notification-preferences .alert.alert-success {
  background: var(--alert-success-bg, #efe);
  border: 1px solid var(--alert-success-border, #cfc);
  color: var(--alert-success-text, #060);
}
.notification-preferences .notification-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.notification-preferences .notification-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.875rem;
}
.notification-preferences .notification-section .section-header .section-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.notification-preferences .notification-section .section-header .section-title h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}
.notification-preferences .notification-section .sms-notice {
  background: var(--notice-bg, #fff9e6);
  border: 1px solid var(--notice-border, #ffd966);
  border-radius: 6px;
  padding: 0.625rem 0.875rem;
  margin-bottom: 0.875rem;
  font-size: 0.8125rem;
  color: var(--notice-text, #664d00);
}
.notification-preferences .notification-section .events-list.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.notification-preferences .notification-section .events-list .event-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem;
  border-bottom: 1px solid var(--border-color);
}
.notification-preferences .notification-section .events-list .event-item:last-child {
  border-bottom: none;
}
.notification-preferences .notification-section .events-list .event-item .event-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
}
.notification-preferences .toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}
.notification-preferences .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.notification-preferences .toggle-switch input:checked + .toggle-slider {
  background-color: var(--toggle-active, #10b981);
}
.notification-preferences .toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
}
.notification-preferences .toggle-switch input:disabled + .toggle-slider {
  background-color: var(--toggle-disabled, #d1d5db);
  cursor: not-allowed;
}
.notification-preferences .toggle-switch .toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--toggle-bg, #cbd5e0);
  transition: 0.3s;
  border-radius: 24px;
}
.notification-preferences .toggle-switch .toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}
.notification-preferences .preferences-footer {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--footer-bg, #f0f9ff);
  border: 1px solid var(--footer-border, #bfdbfe);
  border-radius: 8px;
}
.notification-preferences .preferences-footer .help-text {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--footer-text, #1e40af);
}
.notification-preferences .btn-primary, .notification-preferences .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.notification-preferences .btn-primary:disabled, .notification-preferences .btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.notification-preferences .btn-primary {
  background: var(--btn-primary-bg, #2563eb);
  color: var(--btn-primary-text, white);
  border: none;
}
.notification-preferences .btn-primary:hover:not(:disabled) {
  background: var(--btn-primary-hover, #1d4ed8);
}
.notification-preferences .btn-secondary {
  background: var(--btn-secondary-bg, white);
  color: var(--btn-secondary-text, #374151);
  border: 1px solid var(--btn-secondary-border, #d1d5db);
}
.notification-preferences .btn-secondary:hover:not(:disabled) {
  background: var(--btn-secondary-hover, #f9fafb);
}
.notification-preferences .spinner {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.notification-preferences .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.notification-preferences .modal-content {
  background: var(--card-bg, white);
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.notification-preferences .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}
.notification-preferences .modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}
.notification-preferences .modal-header .modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.notification-preferences .modal-header .modal-close:hover {
  color: var(--text-primary);
}
.notification-preferences .modal-body {
  padding: 1.25rem;
}
.notification-preferences .modal-body .reset-warning {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}
.notification-preferences .modal-body .reset-warning svg {
  color: var(--warning-icon, #f59e0b);
}
.notification-preferences .modal-body .reset-warning p {
  margin: 0;
  color: var(--text-primary);
}
.notification-preferences .modal-body .reset-warning .warning-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.notification-preferences .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.625rem;
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
}
.notification-preferences .btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--btn-danger-bg, #dc2626);
  color: var(--btn-danger-text, white);
  border: none;
}
.notification-preferences .btn-danger:hover:not(:disabled) {
  background: var(--btn-danger-hover, #b91c1c);
}
.notification-preferences .btn-danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.notification-preferences-loading,
.notification-preferences-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}
.notification-preferences-loading .spinner,
.notification-preferences-error .spinner {
  margin-bottom: 1rem;
  animation: spin 1s linear infinite;
}
.notification-preferences-loading p,
.notification-preferences-error p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
.notification-preferences-loading button,
.notification-preferences-error button {
  padding: 0.625rem 1.25rem;
  background: var(--btn-primary-bg, #2563eb);
  color: var(--btn-primary-text, white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}
.notification-preferences-loading button:hover,
.notification-preferences-error button:hover {
  background: var(--btn-primary-hover, #1d4ed8);
}

.settings-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}
.settings-tabs .tab-button {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -2px;
}
.settings-tabs .tab-button:hover {
  color: var(--text-primary);
}
.settings-tabs .tab-button.active {
  color: var(--tab-active, #2563eb);
  border-bottom-color: var(--tab-active, #2563eb);
}

.analytics-page-container {
  height: calc(100vh - 72px);
  padding: 20px;
  background: #f5f5f9;
  overflow-y: auto;
}

.analytics-page-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.analytics-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 24px;
  padding: 16px 24px;
}
.analytics-page-header__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.analytics-page-header__title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}
.analytics-page-header__subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}
.analytics-page-header__controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.analytics-date-controls__periods {
  display: flex;
  gap: 4px;
}
.analytics-date-controls__period {
  padding: 7px 14px;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
}
.analytics-date-controls__period:hover {
  background: #f3f4f6;
  color: #374151;
}
.analytics-date-controls__period--active {
  background: #14b8a6;
  color: #fff;
  border-color: #14b8a6;
}
.analytics-date-controls__period--active:hover {
  background: #0d9488;
}
.analytics-date-controls__dates {
  display: flex;
  gap: 8px;
}
.analytics-date-controls__field {
  display: flex;
  align-items: center;
  gap: 6px;
}
.analytics-date-controls__field label {
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
}
.analytics-date-controls__field input {
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
}
.analytics-date-controls__field input:focus {
  outline: none;
  border-color: #14b8a6;
}

.analytics-export-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  background: #14b8a6;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.analytics-export-btn:hover {
  background: #0d9488;
}

.analytics-tab-nav {
  display: flex;
  gap: 4px;
  background: #fff;
  border-radius: 16px;
  padding: 4px;
}
.analytics-tab-nav__item {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.analytics-tab-nav__item:hover {
  background: #f3f4f6;
  color: #374151;
}
.analytics-tab-nav__item--active {
  background: #14b8a6;
  color: #fff;
}
.analytics-tab-nav__item--active:hover {
  background: #0d9488;
  color: #fff;
}

.analytics-tab-content {
  min-height: 400px;
}

.analytics-tab {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.analytics-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.analytics-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.analytics-charts-grid--full {
  grid-template-columns: 1fr;
}

.analytics-error {
  padding: 40px;
  text-align: center;
  color: #ef4444;
  background: #fef2f2;
  border-radius: 16px;
  font-size: 14px;
}

.analytics-empty-state {
  padding: 32px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}
.analytics-empty-state--success {
  color: #10b981;
  background: #ecfdf5;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .analytics-page-container {
    padding: 12px;
  }
  .analytics-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .analytics-page-header__controls {
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
  }
  .analytics-date-controls__periods {
    flex-wrap: wrap;
  }
  .analytics-date-controls__dates {
    width: 100%;
  }
  .analytics-tab-nav {
    overflow-x: auto;
  }
  .analytics-tab-nav__item {
    white-space: nowrap;
    flex: none;
    padding: 8px 14px;
    font-size: 13px;
  }
  .analytics-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .analytics-charts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.analytics-metric-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.15s;
}
.analytics-metric-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.analytics-metric-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.analytics-metric-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f3f4f6;
}
.analytics-metric-card__change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
}
.analytics-metric-card__change--positive {
  color: #10b981;
  background: #ecfdf5;
}
.analytics-metric-card__change--negative {
  color: #ef4444;
  background: #fef2f2;
}
.analytics-metric-card__change--stable {
  color: #6b7280;
  background: #f3f4f6;
}
.analytics-metric-card__value {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.1;
}
.analytics-metric-card__title {
  font-size: 13px;
  color: #6b7280;
}

.analytics-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
}
.analytics-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 16px 0;
}
.analytics-card__content {
  min-height: 0;
}

.analytics-table {
  overflow-x: auto;
}
.analytics-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.analytics-table__header {
  cursor: pointer;
  user-select: none;
}
.analytics-table__header:hover {
  color: #14b8a6;
}
.analytics-table__sort {
  font-size: 11px;
  margin-left: 2px;
}
.analytics-table thead th {
  text-align: left;
  padding: 10px 12px;
  color: #6b7280;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #f3f4f6;
  white-space: nowrap;
}
.analytics-table tbody td {
  padding: 10px 12px;
  color: #374151;
  border-bottom: 1px solid #f9fafb;
}
.analytics-table tbody tr {
  transition: background 0.1s;
}
.analytics-table tbody tr:hover {
  background: #f9fafb;
}
.analytics-table__empty {
  padding: 32px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}

.analytics-skeleton {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.analytics-skeleton__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.analytics-skeleton__card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.analytics-skeleton__line {
  height: 14px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.analytics-skeleton__line--short {
  width: 40%;
}
.analytics-skeleton__line--medium {
  width: 60%;
}
.analytics-skeleton__line--wide {
  width: 80%;
  height: 22px;
}
.analytics-skeleton__charts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.analytics-skeleton__chart {
  background: #fff;
  border-radius: 20px;
  height: 300px;
  background: linear-gradient(90deg, #f9fafb 25%, #f3f4f6 50%, #f9fafb 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
@media (max-width: 768px) {
  .analytics-metric-card {
    padding: 16px;
  }
  .analytics-metric-card__value {
    font-size: 22px;
  }
  .analytics-skeleton__charts {
    grid-template-columns: 1fr;
  }
}
/**
 * Oaklet - Organization Hub Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Nolan W. Platt
 *
 * Styles for the Organization Hub page
 * @module assets/scss/pages/organization-hub
 */
.practices-page {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 60px);
  background: #f9fafb;
}

.practices-header {
  margin-bottom: 2rem;
}

.practices-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
}
.practices-back-btn:hover {
  background: color-mix(in srgb, var(--color-primary) 10%, white);
}

.practices-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.practices-subtitle {
  font-size: 1.0625rem;
  color: #6b7280;
  margin: 0;
}

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

.practice-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
  cursor: pointer;
}
.practice-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.practice-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}
.practice-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-primary) 10%, white);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.practice-card__info {
  flex: 1;
  min-width: 0;
}
.practice-card__name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.practice-card__email {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.practice-card__stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.practice-card__actions {
  display: flex;
  gap: 0.75rem;
}

.practice-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}
.practice-stat svg {
  color: var(--color-primary);
  flex-shrink: 0;
}
.practice-stat__value {
  font-weight: 600;
  color: #1f2937;
}
.practice-stat__label {
  color: #6b7280;
}

.practice-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.practice-action-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}
.practice-action-btn svg {
  flex-shrink: 0;
}

.practices-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 12px;
  border: 2px dashed #e5e7eb;
}
.practices-empty svg {
  color: #d1d5db;
  margin-bottom: 1rem;
}
.practices-empty h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}
.practices-empty p {
  font-size: 0.9375rem;
  color: #6b7280;
  margin: 0;
}

@media (max-width: 768px) {
  .practices-grid {
    grid-template-columns: 1fr;
  }
}
.forms-management-page {
  min-height: calc(100vh - 60px);
  background: #f9fafb;
  padding: 2rem;
}
.forms-management-page .settings-header {
  max-width: 1400px;
  margin: 0 auto 0 auto;
}
.forms-management-page .settings-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 2rem;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid #e5e7eb;
}
.forms-management-page .settings-header .header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.forms-management-page .settings-header .header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.forms-management-page .settings-header .settings-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
}
.forms-management-page .settings-header .settings-subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
}
.forms-management-page .settings-header .save-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.forms-management-page .settings-header .save-btn:hover:not(:disabled) {
  background: var(--color-primary-dark);
}
.forms-management-page .settings-header .save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.forms-management-page .settings-container {
  max-width: 1400px;
  margin: 0 auto;
}
.forms-management-page .forms-card {
  background: white;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
@media (max-width: 768px) {
  .forms-management-page {
    padding: 1rem;
  }
  .forms-management-page .settings-header .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .forms-management-page .settings-header .save-btn {
    width: 100%;
    justify-content: center;
  }
}

.forms-loading {
  padding: 3rem;
  text-align: center;
  color: #6b7280;
  background: white;
  border-radius: 12px;
}

.forms-error {
  padding: 3rem;
  text-align: center;
  color: #dc2626;
  background: white;
  border-radius: 12px;
}
.forms-error .save-btn {
  margin-top: 1rem;
}

.forms-filters {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: white;
}

.forms-filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.forms-filter-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
}

.forms-filter-select {
  padding: 0.25rem 0.5rem;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  min-width: 140px;
  outline: none;
}

.forms-table-container {
  overflow-x: auto;
}

.forms-table {
  width: 100%;
  border-collapse: collapse;
}
.forms-table__header {
  background: #f3f4f6;
}
.forms-table__header th {
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e5e7eb;
}
.forms-table__body tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.15s ease;
  cursor: pointer;
}
.forms-table__body tr:hover {
  background: #f9fafb;
}
.forms-table__body tr:last-child {
  border-bottom: none;
}
.forms-table__cell {
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  color: #374151;
  vertical-align: middle;
}
.forms-table__cell--title {
  max-width: 300px;
}
.forms-table__cell--actions {
  width: 1px;
  white-space: nowrap;
}

.forms-title-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.forms-title-cell__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #111827;
}
.forms-title-cell__description {
  font-size: 0.8125rem;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.forms-status-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  text-transform: capitalize;
}
.forms-status-badge--active {
  background: #f0fdf4;
  color: #16a34a;
}
.forms-status-badge--draft {
  background: #fffbeb;
  color: #d97706;
}
.forms-status-badge--archived {
  background: #f3f4f6;
  color: #6b7280;
}

.forms-submissions-link {
  background: none;
  border: none;
  color: #4a90e2;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0;
  text-decoration: underline;
  transition: color 0.15s ease;
}
.forms-submissions-link:hover {
  color: #357abd;
}

.forms-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.forms-action-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6b7280;
}
.forms-action-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}
.forms-action-btn--danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.forms-empty-state {
  padding: 4rem 2rem;
  text-align: center;
  background: white;
}
.forms-empty-state > svg {
  opacity: 0.3;
  margin-bottom: 1rem;
  color: #6b7280;
}
.forms-empty-state h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}
.forms-empty-state p {
  margin: 0 0 1.5rem 0;
  color: #6b7280;
  font-size: 0.9375rem;
}
.forms-empty-state .save-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.forms-empty-state .save-btn:hover {
  background: var(--color-primary-dark);
}

.forms-pagination {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
  background: white;
}
.forms-pagination__text {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

@media (max-width: 768px) {
  .forms-page-container {
    padding: 1rem;
  }
  .forms-page-header {
    flex-direction: column;
    gap: 1rem;
  }
  .forms-page-header__actions {
    width: 100%;
  }
  .forms-page-header__actions button {
    flex: 1;
  }
  .forms-filters {
    flex-direction: column;
    gap: 1rem;
  }
  .forms-filter-select {
    width: 100%;
  }
  .forms-table__cell {
    padding: 1rem 0.75rem;
    font-size: 0.85rem;
  }
  .forms-actions {
    flex-wrap: wrap;
  }
  .forms-action-btn {
    width: 28px;
    height: 28px;
  }
  .forms-action-btn svg {
    width: 14px;
    height: 14px;
  }
}
.form-create-container {
  padding: 2rem;
  max-width: 1800px;
  margin: 0 auto;
  background: #f9fafb;
  min-height: 100vh;
}

.form-create-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 16px 16px 0;
  border-radius: 10px;
  font-size: 13px;
}
.form-create-banner ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.form-create-banner ul li + li {
  margin-top: 4px;
}
.form-create-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.form-create-banner__actions button {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  color: inherit;
}
.form-create-banner__actions button:hover {
  text-decoration: underline;
}
.form-create-banner--error {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
}
.form-create-banner--warning {
  background: #fffaeb;
  border: 1px solid #fedf89;
  color: #b54708;
}

.form-create-wrapper {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.form-create-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: white;
  border-bottom: 1px solid #e5e7eb;
}
.form-create-header__left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.form-create-header__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}
.form-create-header__back:hover {
  background: #e5e7eb;
}
.form-create-header__title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.form-create-header__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(50, 162, 147, 0.1);
  border-radius: 10px;
  color: #32A293;
}
.form-create-header__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}
.form-create-header__subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}
.form-create-header__actions {
  display: flex;
  gap: 0.75rem;
}

.form-create-content {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  min-height: calc(100vh - 180px);
}

.form-edit-content {
  min-height: calc(100vh - 180px);
}

.form-create-main {
  padding: 2rem;
  background: #fafbfc;
  overflow-y: auto;
  max-height: calc(100vh - 180px);
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
  border: 1px solid #e5e7eb;
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.card-title svg {
  color: #32A293;
}

.card-body {
  padding: 1.5rem;
}

.form-field {
  margin-bottom: 1.5rem;
}
.form-field__label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
}
.form-field__required {
  color: #ef4444;
  font-weight: 700;
}
.form-field__hint {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.5rem;
  font-weight: 500;
}
.form-field__input, .form-field__textarea, .form-field__select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #fff;
}
.form-field__input:focus, .form-field__textarea:focus, .form-field__select:focus {
  outline: none;
  border-color: #2A9D8F;
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}
.form-field__input::placeholder, .form-field__textarea::placeholder, .form-field__select::placeholder {
  color: #9ca3af;
}
.form-field__textarea {
  resize: vertical;
}

.form-templates__description {
  color: #6b7280;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.form-templates__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.template-card {
  padding: 1.25rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  text-align: left;
}
.template-card:hover {
  border-color: #32A293;
  background: rgba(50, 162, 147, 0.03);
}
.template-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}
.template-card__description {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.form-questions-section .card-body {
  padding: 0;
}

.form-questions-empty {
  text-align: center;
  padding: 3rem 2rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1.5px dashed #d1d5db;
  margin: 1.5rem;
}
.form-questions-empty__text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 0.5rem 0;
}
.form-questions-empty__subtext {
  font-size: 0.9rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.5;
}

.form-questions-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-question-item {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}
.form-question-item:hover {
  background: #fafbfc;
}
.form-question-item--editing {
  background: #f9fafb;
  border-left: 4px solid #32A293;
}
.form-question-item:last-child {
  border-bottom: none;
}
.form-question-item__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
}
.form-question-item__drag {
  cursor: grab;
  color: #9ca3af;
  transition: color 0.2s ease;
}
.form-question-item__drag:hover {
  color: #32A293;
}
.form-question-item__drag:active {
  cursor: grabbing;
}
.form-question-item__info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.form-question-item__number {
  font-size: 0.75rem;
  font-weight: 700;
  color: #32A293;
  background: rgba(50, 162, 147, 0.1);
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-question-item__label {
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  flex: 1;
}
.form-question-item__label--empty {
  color: #9ca3af;
  font-style: italic;
}
.form-question-item__type {
  font-size: 0.8rem;
  color: #6b7280;
  background: #f3f4f6;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
}
.form-question-item__required-badge {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}
.form-question-item__actions {
  display: flex;
  gap: 0.5rem;
}
.form-question-item__editor {
  padding: 1.5rem;
  background: #fafbfc;
  border-top: 1px solid #e5e7eb;
}

.form-question-action-btn {
  padding: 0.5rem 1rem;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.form-question-action-btn:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #32A293;
  color: #32A293;
}
.form-question-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.form-question-action-btn--primary {
  background: #32A293;
  border-color: #32A293;
  color: #fff;
}
.form-question-action-btn--primary:hover:not(:disabled) {
  background: #2A8A7E;
}
.form-question-action-btn--danger:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #ef4444;
  color: #dc2626;
}

.form-create-sidebar {
  background: #f9fafb;
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 180px);
  border-left: 1px solid #e5e7eb;
}

.form-preview {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
}
.form-preview .card-body {
  max-height: 500px;
  overflow-y: auto;
}
.form-preview__content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.form-preview__header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e5e7eb;
}
.form-preview__form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.75rem 0;
}
.form-preview__form-description {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}
.form-preview__empty {
  text-align: center;
  padding: 2.5rem 2rem;
  color: #9ca3af;
  font-size: 0.95rem;
}
.form-preview__empty-text {
  font-weight: 500;
  color: #6b7280;
}

.form-preview__questions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-preview-question__label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
}
.form-preview-question__required {
  color: #ef4444;
  margin-left: 0.25rem;
  font-weight: 700;
}
.form-preview-question__help {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
  font-style: italic;
}
.form-preview-question__input input,
.form-preview-question__input textarea,
.form-preview-question__input select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #f9fafb;
  transition: all 0.2s ease;
}
.form-preview-question__input input:disabled,
.form-preview-question__input textarea:disabled,
.form-preview-question__input select:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.form-preview-question__input input:focus,
.form-preview-question__input textarea:focus,
.form-preview-question__input select:focus {
  outline: none;
  border-color: #2A9D8F;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}
.form-preview-question__input textarea {
  resize: vertical;
}

.form-preview-radio-group,
.form-preview-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-preview-radio,
.form-preview-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #374151;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.form-preview-radio:hover,
.form-preview-checkbox:hover {
  background: #f9fafb;
}
.form-preview-radio input,
.form-preview-checkbox input {
  cursor: not-allowed;
}

.form-preview-question__step,
.form-question-item__step {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  background: #E0E7FF;
  color: #3730A3;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-preview-number {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-preview-number input {
  max-width: 160px;
}
.form-preview-number__suffix {
  font-size: 0.85rem;
  color: #6b7280;
}

.form-preview-height {
  display: flex;
  gap: 1rem;
}
.form-preview-height__unit {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.form-preview-height__unit input {
  width: 70px;
}
.form-preview-height__unit span {
  font-size: 0.85rem;
  color: #6b7280;
}

.form-preview-option-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-preview-option-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: 0.9rem;
  color: #374151;
}
.form-preview-option-card__control {
  width: 18px;
  height: 18px;
  border: 2px solid #9CA3AF;
  flex-shrink: 0;
}
.form-preview-option-card__control--radio {
  border-radius: 50%;
}
.form-preview-option-card__control--checkbox {
  border-radius: 4px;
}
.form-preview-option-card__label {
  flex: 1;
  min-width: 0;
}
.form-preview-option-card__exclusive {
  font-size: 0.75rem;
  color: #9CA3AF;
  font-style: italic;
}
.form-preview-option-card__followup {
  flex-basis: 100%;
  margin: 0.375rem 0 0 1.75rem;
}
.form-preview-option-card__followup input {
  width: 100%;
  max-width: 260px;
}
.form-preview-option-card__followup-label {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.form-validation-status .card-body {
  padding: 1rem;
}

.validation-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
}
.validation-item__icon {
  flex-shrink: 0;
}
.validation-item__icon--success {
  color: #22c55e;
}
.validation-item__icon--error {
  color: #ef4444;
}
.validation-item__icon--warning {
  color: #f59e0b;
}

.form-create-container .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  border: none;
  font-family: inherit;
}
.form-create-container .btn-primary {
  background: #32A293;
  color: #fff;
}
.form-create-container .btn-primary:hover:not(:disabled) {
  background: #2A8A7E;
}
.form-create-container .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.form-create-container .btn-outline {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
}
.form-create-container .btn-outline:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}
.form-create-container .btn-secondary {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  color: #32A293;
}
.form-create-container .btn-secondary:hover {
  background: #f9fafb;
  border-color: #32A293;
}
.form-create-container .btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.form-create-state {
  padding: 2rem;
  text-align: center;
}
.form-create-state__text {
  margin-top: 1rem;
  color: #6b7280;
}
.form-create-state__error {
  color: #dc2626;
  margin-bottom: 1rem;
}

@media (max-width: 1200px) {
  .form-create-content {
    grid-template-columns: 1fr 360px;
  }
}
@media (max-width: 1024px) {
  .form-create-content {
    grid-template-columns: 1fr;
  }
  .form-create-main {
    border-right: none;
    max-height: none;
  }
  .form-create-sidebar {
    display: none;
  }
}
@media (max-width: 768px) {
  .form-create-container {
    padding: 1rem;
  }
  .form-create-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }
  .form-create-header__left {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }
  .form-create-header__title {
    font-size: 1.125rem;
  }
  .form-create-header__actions {
    width: 100%;
    flex-direction: column;
  }
  .form-create-header__actions button {
    width: 100%;
    justify-content: center;
  }
  .form-create-progress {
    padding: 0.75rem 1rem;
  }
  .form-create-main {
    padding: 1rem;
  }
  .form-templates__grid {
    grid-template-columns: 1fr;
  }
  .form-question-item__header {
    padding: 1rem;
    flex-wrap: wrap;
  }
  .form-question-item__info {
    flex-wrap: wrap;
  }
  .form-question-item__actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .form-question-item__editor {
    padding: 1rem;
  }
  .form-question-action-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }
}
.workflows-page-container {
  height: calc(100vh - 72px);
  padding: 20px;
  background: #F5F5F9;
  overflow-y: auto;
}

.workflows-page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.workflows-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.workflows-page-header__left h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 4px 0;
}
.workflows-page-header__left p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.workflows-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}
.workflows-btn--primary {
  background: #32A293;
  color: #fff;
}
.workflows-btn--primary:hover {
  background: #2A9D8F;
}
.workflows-btn--secondary {
  background: #fff;
  color: #374151;
  border: 1px solid #D1D5DB;
}
.workflows-btn--secondary:hover {
  background: #F9FAFB;
}
.workflows-btn--ghost {
  background: transparent;
  color: #6b7280;
  padding: 8px 12px;
}
.workflows-btn--ghost:hover {
  color: #374151;
  background: #f3f4f6;
}
.workflows-btn--danger {
  background: #FEE2E2;
  color: #991B1B;
  width: 100%;
  justify-content: center;
}
.workflows-btn--danger:hover {
  background: #FECACA;
}
.workflows-btn--small {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 8px;
  width: auto;
}
.workflows-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.workflows-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.workflows-filter-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  background: #fff;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
}
.workflows-filter-btn:hover {
  border-color: #32A293;
  color: #32A293;
}
.workflows-filter-btn--active {
  background: #32A293;
  color: #fff;
  border-color: #32A293;
}

.workflows-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.workflows-status--active, .workflows-status--completed {
  background: #D1FAE5;
  color: #065F46;
}
.workflows-status--draft, .workflows-status--running {
  background: #DBEAFE;
  color: #1E40AF;
}
.workflows-status--archived, .workflows-status--cancelled {
  background: #F3F4F6;
  color: #6B7280;
}
.workflows-status--failed {
  background: #FEE2E2;
  color: #991B1B;
}

.workflows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.workflows-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  border: 1px solid #E5E7EB;
  transition: all 0.15s ease;
}
.workflows-card:hover {
  border-color: #32A293;
  box-shadow: 0 4px 12px rgba(50, 162, 147, 0.08);
}
.workflows-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.workflows-card__name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0;
}
.workflows-card__description {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 12px 0;
  line-height: 1.4;
}
.workflows-card__meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #9CA3AF;
}
.workflows-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #F3F4F6;
}
.workflows-card__date {
  font-size: 12px;
  color: #9CA3AF;
}
.workflows-card__actions {
  display: flex;
  gap: 4px;
}
.workflows-card__confirm {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #F3F4F6;
}
.workflows-card__confirm-text {
  font-size: 13px;
  color: #991B1B;
  margin: 0;
}
.workflows-card__confirm-actions {
  display: flex;
  gap: 8px;
}

.workflows-error-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 10px;
  color: #b42318;
  font-size: 13px;
}
.workflows-error-banner button {
  background: none;
  border: none;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.workflows-error-banner button:hover {
  text-decoration: underline;
}

.workflows-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
}
.workflows-icon-btn:hover {
  background: #f3f4f6;
  color: #374151;
}
.workflows-icon-btn--success:hover {
  background: #D1FAE5;
  color: #065F46;
}
.workflows-icon-btn--warning:hover {
  background: #FEF3C7;
  color: #92400E;
}
.workflows-icon-btn--danger:hover {
  background: #FEE2E2;
  color: #991B1B;
}

.workflows-loading, .workflows-empty {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}

.workflows-empty__icon {
  color: #D1D5DB;
  margin-bottom: 16px;
}
.workflows-empty h3 {
  font-size: 18px;
  color: #374151;
  margin: 0 0 8px 0;
}
.workflows-empty p {
  font-size: 14px;
  margin: 0 0 20px 0;
}

.workflow-builder {
  height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
}
.workflow-builder__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
}
.workflow-builder__name-input {
  flex: 1;
  display: flex;
  gap: 12px;
}
.workflow-builder__input {
  padding: 8px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}
.workflow-builder__input:focus {
  border-color: #32A293;
}
.workflow-builder__input--desc {
  flex: 1;
  color: #6b7280;
}
.workflow-builder__actions {
  display: flex;
  gap: 8px;
}
.workflow-builder__errors {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: #fef3f2;
  border-bottom: 1px solid #fecdca;
}
.workflow-builder__errors ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #b42318;
  font-size: 13px;
}
.workflow-builder__errors ul li + li {
  margin-top: 4px;
}
.workflow-builder__errors-dismiss {
  background: none;
  border: none;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.workflow-builder__errors-dismiss:hover {
  text-decoration: underline;
}
.workflow-builder__body {
  flex: 1;
  display: flex;
  overflow: hidden;
}
.workflow-builder__canvas {
  flex: 1;
  position: relative;
}

.workflow-palette {
  width: 240px;
  background: #fff;
  border-right: 1px solid #E5E7EB;
  padding: 16px;
  overflow-y: auto;
}
.workflow-palette__title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 4px 0;
}
.workflow-palette__hint {
  font-size: 12px;
  color: #9CA3AF;
  margin: 0 0 16px 0;
}
.workflow-palette__category {
  margin-bottom: 16px;
}
.workflow-palette__category-title {
  font-size: 11px;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px 0;
}
.workflow-palette__node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  margin-bottom: 6px;
  cursor: grab;
  transition: all 0.15s ease;
}
.workflow-palette__node:hover {
  border-color: #32A293;
  background: #F0FDFA;
}
.workflow-palette__node:active {
  cursor: grabbing;
}
.workflow-palette__node-icon {
  color: #32A293;
  flex-shrink: 0;
}
.workflow-palette__node-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.workflow-palette__node-label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}
.workflow-palette__node-desc {
  font-size: 11px;
  color: #9CA3AF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workflow-config {
  width: 280px;
  background: #fff;
  border-left: 1px solid #E5E7EB;
  padding: 16px;
  overflow-y: auto;
}
.workflow-config__title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 4px 0;
}
.workflow-config__type {
  font-size: 11px;
  color: #9CA3AF;
  margin: 0 0 16px 0;
  font-family: monospace;
}
.workflow-config__empty {
  font-size: 13px;
  color: #9CA3AF;
}
.workflow-config__field {
  margin-bottom: 16px;
}
.workflow-config__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}
.workflow-config__select, .workflow-config__input, .workflow-config__textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}
.workflow-config__select:focus, .workflow-config__input:focus, .workflow-config__textarea:focus {
  border-color: #32A293;
}
.workflow-config__textarea {
  resize: vertical;
  font-family: inherit;
}
.workflow-config__hint {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}
.workflow-config__hint code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}
.workflow-config__callout {
  margin-top: 12px;
  padding: 12px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 8px;
}
.workflow-config__callout-title {
  font-size: 12px;
  font-weight: 600;
  color: #92400E;
  margin: 0 0 6px 0;
}
.workflow-config__callout-text {
  font-size: 12px;
  color: #78350F;
  line-height: 1.4;
  margin: 0 0 8px 0;
}
.workflow-config__callout-text code {
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
}
.workflow-config__callout-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.workflow-config__callout-options code {
  display: block;
  background: #1e293b;
  color: #e2e8f0;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-family: "SF Mono", Monaco, monospace;
}
.workflow-config__callout-or {
  font-size: 11px;
  color: #92400E;
  text-align: center;
}

.workflow-settings__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
}
.workflow-settings__toggle input[type=checkbox] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #32A293;
}
.workflow-settings__states-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.workflow-settings__states-header .workflow-config__label {
  margin-bottom: 0;
}
.workflow-settings__states-actions {
  display: flex;
  gap: 8px;
}
.workflow-settings__states-btn {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  color: #32A293;
  cursor: pointer;
}
.workflow-settings__states-btn:hover {
  text-decoration: underline;
}
.workflow-settings__states-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
}
.workflow-settings__state {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #374151;
  cursor: pointer;
}
.workflow-settings__state input[type=checkbox] {
  width: 13px;
  height: 13px;
  cursor: pointer;
  accent-color: #32A293;
  flex-shrink: 0;
}
.workflow-settings__segmented {
  display: flex;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
}
.workflow-settings__segment {
  flex: 1;
  padding: 8px 10px;
  border: none;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
}
.workflow-settings__segment + .workflow-settings__segment {
  border-left: 1px solid #E5E7EB;
}
.workflow-settings__segment:hover {
  color: #374151;
}
.workflow-settings__segment--active {
  background: #32A293;
  color: #fff;
}
.workflow-settings__segment--active:hover {
  color: #fff;
}
.workflow-settings__price {
  position: relative;
  display: flex;
  align-items: center;
}
.workflow-settings__price-prefix {
  position: absolute;
  left: 10px;
  font-size: 13px;
  color: #9CA3AF;
  pointer-events: none;
}
.workflow-settings__price-input {
  padding-left: 24px;
}

.workflow-node {
  min-width: 160px;
  background: #fff;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.15s ease;
  position: relative;
}
.workflow-node--trigger {
  border-color: #F59E0B;
}
.workflow-node--ai {
  border-color: #6366F1;
}
.workflow-node--action {
  border-color: #32A293;
}
.workflow-node--notification {
  border-color: #8B5CF6;
}
.workflow-node--selected {
  box-shadow: 0 0 0 2px #32A293;
}
.workflow-node__delete {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #EF4444;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
  padding: 0;
  z-index: 10;
}
.workflow-node:hover .workflow-node__delete {
  opacity: 1;
}
.workflow-node__content {
  display: flex;
  align-items: center;
  gap: 10px;
}
.workflow-node__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}
.workflow-node--trigger .workflow-node__icon {
  background: #FEF3C7;
  color: #92400E;
}
.workflow-node--ai .workflow-node__icon {
  background: #E0E7FF;
  color: #3730A3;
}
.workflow-node--action .workflow-node__icon {
  background: #CCFBF1;
  color: #115E59;
}
.workflow-node--notification .workflow-node__icon {
  background: #EDE9FE;
  color: #5B21B6;
}
.workflow-node__label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}
.workflow-node__handle {
  width: 10px;
  height: 10px;
  background: #32A293;
  border: 2px solid #fff;
}

.workflow-edge-delete {
  position: absolute;
  pointer-events: all;
}
.workflow-edge-delete__btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #EF4444;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
  padding: 0;
}
.workflow-edge-delete__btn:hover {
  background: #DC2626;
}
.workflow-edge-delete--visible .workflow-edge-delete__btn {
  opacity: 1;
}

.workflow-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.workflow-detail__header-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.workflow-detail__title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.workflow-detail__title-group h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0;
}
.workflow-detail__description {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}
.workflow-detail__actions {
  display: flex;
  gap: 8px;
}
.workflow-detail__canvas-wrapper {
  height: 400px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #E5E7EB;
  overflow: hidden;
  margin-bottom: 16px;
}
.workflow-detail__canvas-wrapper .workflow-node__delete,
.workflow-detail__canvas-wrapper .workflow-edge-delete {
  display: none;
}
.workflow-detail__meta {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #6b7280;
}
.workflow-detail__api-info {
  margin-bottom: 24px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
}
.workflow-detail__api-info-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 12px 0;
}
.workflow-detail__trigger-url {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.workflow-detail__trigger-url-label {
  font-weight: 600;
  font-size: 13px;
  color: #374151;
  flex-shrink: 0;
}
.workflow-detail__trigger-url-value {
  background: #1e293b;
  color: #e2e8f0;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-family: "SF Mono", Monaco, monospace;
}
.workflow-detail__api-example {
  margin-bottom: 12px;
}
.workflow-detail__api-example-label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: #374151;
  margin-bottom: 6px;
}
.workflow-detail__api-example-code {
  background: #1e293b;
  color: #e2e8f0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-family: "SF Mono", Monaco, monospace;
  line-height: 1.6;
  overflow-x: auto;
  margin: 0;
  white-space: pre;
}
.workflow-detail__api-note {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}
.workflow-detail__api-note code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.workflows-exec-list__title {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 16px 0;
}

.workflows-exec-empty {
  text-align: center;
  padding: 32px;
  color: #9CA3AF;
  font-size: 14px;
}

.workflows-exec-item {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.workflows-exec-item__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.workflows-exec-item__header:hover {
  background: #F9FAFB;
}
.workflows-exec-item__id {
  font-family: monospace;
  font-size: 13px;
  color: #374151;
}
.workflows-exec-item__date {
  font-size: 12px;
  color: #9CA3AF;
  margin-left: auto;
}
.workflows-exec-item__detail {
  padding: 0 16px 16px;
  border-top: 1px solid #F3F4F6;
}
.workflows-exec-item__error {
  padding: 10px 12px;
  background: #FEE2E2;
  border-radius: 8px;
  font-size: 13px;
  color: #991B1B;
  margin-bottom: 12px;
}
.workflows-exec-item__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 12px;
}

.workflows-exec-icon--success {
  color: #059669;
}
.workflows-exec-icon--error {
  color: #DC2626;
}
.workflows-exec-icon--running {
  color: #2563EB;
}
.workflows-exec-icon--skipped {
  color: #9CA3AF;
}

.workflows-exec-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.workflows-exec-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  background: #F9FAFB;
}
.workflows-exec-step--completed {
  background: #F0FDFA;
}
.workflows-exec-step--failed {
  background: #FEF2F2;
}
.workflows-exec-step--running {
  background: #EFF6FF;
}
.workflows-exec-step--skipped {
  background: #F9FAFB;
}
.workflows-exec-step__type {
  font-weight: 500;
  color: #374151;
  font-family: monospace;
  font-size: 12px;
}
.workflows-exec-step__status {
  font-size: 11px;
  color: #6b7280;
  margin-left: auto;
}
.workflows-exec-step__error {
  font-size: 12px;
  color: #DC2626;
  width: 100%;
  margin-top: 4px;
}

.drugs-page-container {
  height: calc(100vh - 72px);
  padding: 20px;
  background: #F5F5F9;
  overflow-y: auto;
}

.drugs-page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.drugs-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.drugs-page-header__left h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 4px 0;
}
.drugs-page-header__left p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.drugs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}
.drugs-btn--primary {
  background: #32A293;
  color: #fff;
}
.drugs-btn--primary:hover {
  background: #2A9D8F;
}
.drugs-btn--danger {
  background: #dc2626;
  color: #fff;
}
.drugs-btn--danger:hover {
  background: #b91c1c;
}
.drugs-btn--ghost {
  background: transparent;
  color: #6b7280;
}
.drugs-btn--ghost:hover {
  background: #f3f4f6;
  color: #374151;
}
.drugs-btn--small {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 8px;
}
.drugs-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.drugs-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.drugs-search {
  position: relative;
  flex: 0 1 320px;
}
.drugs-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  pointer-events: none;
}
.drugs-search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  color: #1a1a2e;
  outline: none;
  transition: border-color 0.15s ease;
}
.drugs-search input::placeholder {
  color: #9CA3AF;
}
.drugs-search input:focus {
  border-color: #32A293;
}

.drugs-segment {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
}
.drugs-segment__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
}
.drugs-segment__btn:hover {
  color: #1a1a2e;
}
.drugs-segment__btn--active {
  background: #1a1a2e;
  color: #fff;
}
.drugs-segment__btn--active:hover {
  color: #fff;
}
.drugs-segment__btn--active .drugs-segment__count {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.drugs-segment__count {
  padding: 1px 7px;
  border-radius: 999px;
  background: #F3F4F6;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
}

.drugs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drugs-row {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.drugs-row:hover {
  border-color: #D1D5DB;
  box-shadow: 0 2px 10px rgba(26, 26, 46, 0.05);
}
.drugs-row--expanded {
  border-color: #D1D5DB;
  box-shadow: 0 2px 10px rgba(26, 26, 46, 0.05);
}
.drugs-row--archived .drugs-monogram {
  filter: grayscale(1);
  opacity: 0.6;
}
.drugs-row--archived .drugs-row__name {
  color: #6b7280;
}
.drugs-row__main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  cursor: pointer;
  border-radius: 16px;
}
.drugs-row__main:focus-visible {
  outline: 2px solid #32A293;
  outline-offset: -2px;
}
.drugs-row__identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.drugs-row__title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.drugs-row__name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drugs-row__url {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.drugs-row__url-text {
  font-size: 12px;
  font-family: "SF Mono", Monaco, monospace;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drugs-row__notes {
  font-size: 12.5px;
  color: #9CA3AF;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drugs-row__aside {
  display: flex;
  align-items: center;
  gap: 10px;
}
.drugs-row__date {
  font-size: 12px;
  color: #9CA3AF;
  white-space: nowrap;
}
.drugs-row__actions {
  display: flex;
  gap: 2px;
}
.drugs-row__expand {
  color: #C4C7CE;
}
.drugs-row__expand svg {
  transition: transform 0.15s ease;
}
.drugs-row__expand--open svg {
  transform: rotate(180deg);
}
.drugs-row__confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid #FDE68A;
  background: #FFFBEB;
}
.drugs-row__confirm:last-child {
  border-radius: 0 0 16px 16px;
}
.drugs-row__confirm-text {
  font-size: 13px;
  color: #92400E;
  margin: 0;
}
.drugs-row__confirm-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.drugs-row__detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 16px 20px;
  border-top: 1px solid #F3F4F6;
  background: #FAFAFB;
}
.drugs-row__detail:last-child {
  border-radius: 0 0 16px 16px;
}

.drugs-monogram {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  user-select: none;
}
.drugs-monogram--0 {
  background: #E0F2EF;
  color: #1F7A6F;
}
.drugs-monogram--1 {
  background: #EEF2FF;
  color: #4F46E5;
}
.drugs-monogram--2 {
  background: #FEF3C7;
  color: #B45309;
}
.drugs-monogram--3 {
  background: #FCE7F3;
  color: #BE185D;
}
.drugs-monogram--4 {
  background: #EDE9FE;
  color: #6D28D9;
}
.drugs-monogram--5 {
  background: #E0F2FE;
  color: #0369A1;
}

.drugs-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.drugs-badge--archived {
  background: #F3F4F6;
  color: #6B7280;
}

.drugs-intake {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 150px;
}
.drugs-intake__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.drugs-intake__status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.drugs-intake__status--live {
  color: #047857;
}
.drugs-intake__status--live::before {
  background: #10B981;
  box-shadow: 0 0 0 3px #D1FAE5;
}
.drugs-intake__status--draft {
  color: #B45309;
}
.drugs-intake__status--draft::before {
  background: #F59E0B;
  box-shadow: 0 0 0 3px #FEF3C7;
}
.drugs-intake__status--none {
  color: #9CA3AF;
}
.drugs-intake__status--none::before {
  background: #D1D5DB;
}
.drugs-intake__pricing {
  font-size: 12px;
  color: #6b7280;
  padding-left: 15px;
  white-space: nowrap;
}
.drugs-intake__setup {
  padding: 0 0 0 15px;
  border: none;
  background: none;
  font-size: 12px;
  font-weight: 500;
  color: #32A293;
  cursor: pointer;
}
.drugs-intake__setup:hover {
  text-decoration: underline;
}

.drugs-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #9CA3AF;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.drugs-copy-btn:hover {
  background: #F3F4F6;
  color: #374151;
}

.drugs-detail {
  min-width: 0;
}
.drugs-detail__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #9CA3AF;
  margin-bottom: 8px;
}
.drugs-detail__none {
  font-size: 12.5px;
  color: #9CA3AF;
}
.drugs-detail__fields {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}
.drugs-detail__field {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
}
.drugs-detail__field dt {
  color: #6b7280;
  font-weight: 500;
  flex-shrink: 0;
}
.drugs-detail__field dt::after {
  content: ":";
}
.drugs-detail__field dd {
  color: #1a1a2e;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.drugs-detail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.drugs-detail__workflows {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.drugs-chip {
  padding: 2px 8px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
}

.drugs-workflow-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 8px;
  margin-left: -8px;
  border: none;
  border-radius: 7px;
  background: transparent;
  font-size: 12.5px;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.drugs-workflow-link:hover {
  background: #F3F4F6;
}
.drugs-workflow-link svg {
  color: #9CA3AF;
}
.drugs-workflow-link__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.drugs-workflow-link__dot--active {
  background: #10B981;
}
.drugs-workflow-link__dot--draft {
  background: #F59E0B;
}
.drugs-workflow-link__dot--archived {
  background: #D1D5DB;
}
.drugs-workflow-link__name {
  font-weight: 500;
}

.drugs-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
}
.drugs-icon-btn:hover {
  background: #f3f4f6;
  color: #374151;
}
.drugs-icon-btn--warning:hover {
  background: #FEF3C7;
  color: #92400E;
}
.drugs-icon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.drugs-error-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 10px;
  color: #b42318;
  font-size: 13px;
}
.drugs-error-banner button {
  background: none;
  border: none;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.drugs-error-banner button:hover {
  text-decoration: underline;
}

.drugs-skeleton-row {
  height: 76px;
  border-radius: 16px;
  background: linear-gradient(90deg, #fff 25%, #F3F4F6 50%, #fff 75%);
  background-size: 200% 100%;
  border: 1px solid #E5E7EB;
  animation: drugs-shimmer 1.4s ease-in-out infinite;
}

@keyframes drugs-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.drugs-empty {
  text-align: center;
  padding: 64px 20px;
  color: #6b7280;
}
.drugs-empty--compact {
  padding: 40px 20px;
}
.drugs-empty__icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E0F2EF;
  color: #32A293;
}
.drugs-empty h3 {
  font-size: 18px;
  color: #374151;
  margin: 0 0 8px 0;
}
.drugs-empty p {
  font-size: 14px;
  margin: 0 auto 20px;
  max-width: 420px;
}
.drugs-empty--compact p {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .drugs-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .drugs-toolbar .drugs-search {
    flex: 1 1 auto;
  }
  .drugs-row__main {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "monogram identity" "intake intake" "aside aside";
    row-gap: 10px;
  }
  .drugs-monogram {
    grid-area: monogram;
  }
  .drugs-row__identity {
    grid-area: identity;
  }
  .drugs-intake {
    grid-area: intake;
  }
  .drugs-row__aside {
    grid-area: aside;
    justify-content: space-between;
  }
}
.drugs-modal-hint {
  font-size: 12px;
  color: #6b7280;
  margin: 6px 0 12px 0;
  line-height: 1.4;
}
.drugs-modal-hint--error {
  color: #DC2626;
}

.drugs-modal-input--invalid {
  border-color: #FCA5A5 !important;
}

.drugs-modal-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drugs-modal-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr 36px;
  gap: 8px;
  align-items: center;
}
.drugs-modal-field-row input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}
.drugs-modal-field-row input:focus {
  border-color: #32A293;
}

.drugs-modal-field-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
}
.drugs-modal-field-remove:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #991B1B;
}

.drugs-modal-add-field {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  background: #fff;
  border: 1.5px dashed #32A293;
  border-radius: 8px;
  color: #32A293;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.drugs-modal-add-field:hover {
  background: #f0faf9;
}

/**
 * Oaklet - Cases Page Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Grant Jensen
 */
.cases-page-container {
  height: calc(100vh - 72px);
  padding: 20px;
  background: #f5f5f9;
  overflow: hidden;
}

.cases-page-content {
  height: 100%;
  background: #fff;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cases-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 20px;
  flex-shrink: 0;
}
.cases-page-header__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cases-page-header__title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}
.cases-page-header__subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}
.cases-page-header__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cases-page-header__refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cases-page-header__refresh:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}
.cases-page-header__refresh:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cases-page-header__refresh .spinning {
  animation: cases-spin 1s linear infinite;
}

.cases-page-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 28px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.cases-page-tabs__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  margin-bottom: -1px;
}
.cases-page-tabs__tab:hover:not(.cases-page-tabs__tab--active) {
  color: #334155;
}
.cases-page-tabs__tab--active {
  color: #0D9488;
  border-bottom-color: #14B8A6;
}
.cases-page-tabs__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
}
.cases-page-tabs__tab--active .cases-page-tabs__count {
  background: #F0FDFA;
  color: #0D9488;
}

.cases-page-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin: 16px 28px 0;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 13px;
  flex-shrink: 0;
}
.cases-page-error__dismiss {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: inherit;
  cursor: pointer;
}
.cases-page-error__dismiss:hover {
  background: rgba(220, 38, 38, 0.1);
}

.cases-page-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}
.cases-page-empty__icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F0FDFA;
  border-radius: 50%;
  color: #14B8A6;
}
.cases-page-empty h2 {
  margin: 18px 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
}
.cases-page-empty p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  max-width: 360px;
}

.cases-page-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cases-page-list::-webkit-scrollbar {
  width: 6px;
}
.cases-page-list::-webkit-scrollbar-track {
  background: transparent;
}
.cases-page-list::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
.cases-page-list::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.cases-page-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: default;
  transition: all 0.15s ease;
}
.cases-page-card--clickable {
  cursor: pointer;
}
.cases-page-card--clickable:hover {
  border-color: #5EEAD4;
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.08);
  transform: translateY(-1px);
}
.cases-page-card__left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.cases-page-card__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F0FDFA;
  border: 1px solid #CCFBF1;
  border-radius: 12px;
  color: #0D9488;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cases-page-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cases-page-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cases-page-card__name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cases-page-card__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  white-space: nowrap;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.cases-page-card__chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  white-space: nowrap;
}
.cases-page-card__chip--practice {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.cases-page-card__chip--assigned {
  background: #F0FDFA;
  color: #0F766E;
  border: 1px solid #CCFBF1;
}
.cases-page-card__chip--active {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde68a;
}
.cases-page-card__chip--archived {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.cases-page-card__chip--drug {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}
.cases-page-card__details {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cases-page-card__detail {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cases-page-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: #94a3b8;
  white-space: nowrap;
}
.cases-page-card__divider {
  color: #cbd5e1;
  font-size: 11px;
}
.cases-page-card__right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cases-page-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.cases-page-card__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cases-page-card__btn--primary {
  background: #14B8A6;
  color: #fff;
  border-color: #14B8A6;
}
.cases-page-card__btn--primary:hover:not(:disabled) {
  background: #0D9488;
  border-color: #0D9488;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.25);
}
.cases-page-card__btn--secondary {
  background: #fff;
  color: #475569;
  border-color: #e2e8f0;
}
.cases-page-card__btn--secondary:hover:not(:disabled) {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}
.cases-page-card__provider-label {
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
}
.cases-page-card__reassign-select {
  appearance: none;
  padding: 9px 32px 9px 12px;
  border-radius: 8px;
  border: 1px solid #14B8A6;
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2314B8A6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: #0F766E;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  min-width: 180px;
  transition: all 0.15s ease;
}
.cases-page-card__reassign-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}
.cases-page-card__reassign-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cases-page-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: #6b7280;
  font-size: 14px;
}
.cases-page-loading__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: #14B8A6;
  border-radius: 50%;
  animation: cases-spin 0.8s linear infinite;
}

@keyframes cases-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 768px) {
  .cases-page-container {
    padding: 12px;
  }
  .cases-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 20px 16px;
  }
  .cases-page-header__controls {
    width: 100%;
    justify-content: flex-end;
  }
  .cases-page-tabs {
    padding: 0 20px;
    overflow-x: auto;
  }
  .cases-page-list {
    padding: 12px 20px 20px;
  }
  .cases-page-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cases-page-card__right {
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    justify-content: flex-end;
  }
  .cases-page-card__reassign-select {
    width: 100%;
  }
}
/**
 * Oaklet - Case Review Modal Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Grant Jensen
 */
.case-review-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: caseReviewFadeIn 0.2s ease;
  padding: 24px;
}

.case-review {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 1200px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.18);
  animation: caseReviewSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.case-review__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.case-review__header-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.case-review__header-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F0FDFA;
  border: 1px solid #CCFBF1;
  border-radius: 12px;
  color: #0D9488;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.case-review__header-text {
  flex: 1;
  min-width: 0;
}
.case-review__header-name {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}
.case-review__header-sub {
  font-size: 0.8125rem;
  color: #6b7280;
  font-weight: 400;
}
.case-review__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  border-radius: 6px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
}
.case-review__close:hover {
  background: #f3f4f6;
  color: #111827;
}
.case-review__body {
  display: grid;
  grid-template-columns: 280px 1fr;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.case-review__body--with-qa {
  grid-template-columns: 280px 320px 1fr;
}
.case-review__panel {
  overflow-y: auto;
  padding: 20px 24px 24px;
}
.case-review__panel::-webkit-scrollbar {
  width: 5px;
}
.case-review__panel::-webkit-scrollbar-track {
  background: transparent;
}
.case-review__panel::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
.case-review__panel::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
.case-review__panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
}
.case-review__panel-header h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.case-review__patient-panel {
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
}
.case-review__patient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.case-review__patient-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.case-review__patient-field--full {
  grid-column: 1/-1;
}
.case-review__patient-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.case-review__patient-value {
  font-size: 0.8125rem;
  color: #111827;
  line-height: 1.4;
  word-break: break-word;
}
.case-review__patient-value--name {
  font-size: 0.9375rem;
  font-weight: 600;
}
.case-review__no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 20px;
  text-align: center;
  color: #6b7280;
}
.case-review__no-data p {
  margin: 0;
  font-size: 0.8125rem;
}
.case-review__qa-panel {
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
}
.case-review__qa-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-review__qa-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}
.case-review__qa-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.case-review__qa-question {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.4;
}
.case-review__qa-answer {
  font-size: 0.8125rem;
  color: #111827;
  line-height: 1.5;
  word-break: break-word;
}
.case-review__note-panel {
  background: #ffffff;
}
.case-review__ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 3px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 6px;
  background: #ede9fe;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}
.case-review__ai-notice {
  margin: 0 0 16px;
  padding: 10px 14px;
  background: #ede9fe;
  border: 1px solid #ddd6fe;
  border-radius: 6px;
  font-size: 0.8125rem;
  color: #6d28d9;
  line-height: 1.5;
}
.case-review__soap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.case-review__soap-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 8px;
}
.case-review__soap-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4b5563;
}
.case-review__soap-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #F0FDFA;
  border: 1px solid #CCFBF1;
  border-radius: 6px;
  color: #0D9488;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.case-review__soap-text {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #111827;
  min-height: 60px;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid #f3f4f6;
  outline: none;
  cursor: text;
  transition: border-color 0.15s;
  resize: none;
  overflow: hidden;
  background: transparent;
}
.case-review__soap-text:focus {
  border-bottom-color: #14B8A6;
}
.case-review__soap-text::placeholder {
  color: #9ca3af;
  font-style: italic;
}
.case-review__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
  background: #fafafa;
}
.case-review__footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.case-review__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.case-review__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.case-review__btn--approve {
  background: #14B8A6;
  border: none;
  color: #ffffff;
}
.case-review__btn--approve:hover:not(:disabled) {
  background: #0D9488;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.25);
}
.case-review__btn--reject {
  background: #ffffff;
  border: 1px solid #fca5a5;
  color: #dc2626;
}
.case-review__btn--reject:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #f87171;
}
.case-review__btn--cancel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #4b5563;
}
.case-review__btn--cancel:hover:not(:disabled) {
  background: #f3f4f6;
  color: #111827;
}
.case-review__reject-confirm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.case-review__reject-reason {
  width: 100%;
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: 1.5;
  padding: 8px 12px;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  outline: none;
  resize: none;
  background: #fef2f2;
  color: #111827;
}
.case-review__reject-reason:focus {
  border-color: #f87171;
}
.case-review__reject-reason::placeholder {
  color: #9ca3af;
}
.case-review__reject-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@keyframes caseReviewFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes caseReviewSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 768px) {
  .case-review-overlay {
    padding: 12px;
  }
  .case-review {
    max-height: calc(100vh - 24px);
  }
  .case-review__body {
    grid-template-columns: 1fr;
  }
  .case-review__body--with-qa {
    grid-template-columns: 1fr;
  }
  .case-review__patient-panel {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
  .case-review__qa-panel {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
  .case-review__footer {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .case-review__footer .case-review__btn--reject {
    width: 100%;
    justify-content: center;
  }
  .case-review__footer-right {
    width: 100%;
  }
  .case-review__footer-right .case-review__btn {
    flex: 1;
    justify-content: center;
  }
}
/**
 * Oaklet - ePrescribe Page Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Grant Jensen
 *
 * Matches the unified page layout used across Billing and Patients:
 *   {module}-page-container > {module}-page-wrapper > {module}-page-header + tabs + content
 */
.eprescribe-page-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 72px);
  padding: 20px;
  background-color: #F5F5F9;
  position: relative;
  overflow: hidden;
}

.eprescribe-page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
}

.eprescribe-page-header {
  background-color: #ffffff;
  border-radius: 24px 24px 0 0;
  padding: 24px 24px 0;
  margin-bottom: -20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}
.eprescribe-page-header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.eprescribe-page-header__info {
  flex: 1;
  min-width: 0;
}
.eprescribe-page-header__title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px 0;
}
.eprescribe-page-header__subtitle {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}
.eprescribe-page-header__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.eprescribe-page-header__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.eprescribe-page-header__action--primary {
  background-color: #14B8A6;
  color: #ffffff;
}
.eprescribe-page-header__action--primary:hover:not(:disabled) {
  background-color: #0D9488;
}
.eprescribe-page-header__action--secondary {
  background-color: #ffffff;
  color: #1f2937;
  border-color: #e5e7eb;
}
.eprescribe-page-header__action--secondary:hover:not(:disabled) {
  background-color: #f9fafb;
}
.eprescribe-page-header__action--verified {
  background-color: #ecfdf3;
  color: #067647;
  border-color: #abefc6;
}
.eprescribe-page-header__action--verified:hover:not(:disabled) {
  background-color: #dcfce7;
}
.eprescribe-page-header__action--verify {
  background-color: #fef3f2;
  color: #b42318;
  border-color: #fecdca;
}
.eprescribe-page-header__action--verify:hover:not(:disabled) {
  background-color: #fde7e3;
}
.eprescribe-page-header__action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.eprescribe-tabs-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e5e7eb;
  margin: 0 -8px;
  padding: 0 8px;
}
.eprescribe-tabs-bar .eprescribe-tabs {
  border-bottom: none;
  margin: 0;
  padding: 0;
}

.eprescribe-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
}
.eprescribe-filters select,
.eprescribe-filters input {
  padding: 7px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  color: #111827;
}
.eprescribe-filters select:focus,
.eprescribe-filters input:focus {
  outline: none;
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.eprescribe-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  border-bottom: 1px solid #e5e7eb;
  margin: 0 -8px;
  padding: 0 8px;
}
.eprescribe-tabs__tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 14px;
  background: transparent;
  border: none;
  color: #6b7280;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 150ms ease-out, background-color 150ms ease-out;
  position: relative;
  border-radius: 6px 6px 0 0;
}
.eprescribe-tabs__tab svg {
  width: 18px;
  height: 18px;
  transition: color 150ms ease-out;
}
.eprescribe-tabs__tab:hover:not(.eprescribe-tabs__tab--active) {
  color: #374151;
  background: #f9fafb;
}
.eprescribe-tabs__tab--active {
  color: #1f2937;
  font-weight: 600;
}
.eprescribe-tabs__tab--active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #14B8A6;
}
.eprescribe-tabs__tab--active svg {
  color: #14B8A6;
}
.eprescribe-tabs__tab:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}

.eprescribe-page-content {
  background: #ffffff;
  border-radius: 0 0 24px 24px;
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.eprescribe-loading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.eprescribe-loading__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.eprescribe-loading__text {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/**
 * Oaklet - Clinician Onboarding Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Grant Jensen
 */
.clinician-onboarding {
  max-width: 600px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.clinician-onboarding__title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
}
.clinician-onboarding__subtitle {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 24px 0;
}
.clinician-onboarding__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.clinician-onboarding__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.clinician-onboarding__field--full {
  grid-column: 1/-1;
}
.clinician-onboarding__field label {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}
.clinician-onboarding__field input,
.clinician-onboarding__field select {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.15s ease;
}
.clinician-onboarding__field input:focus,
.clinician-onboarding__field select:focus {
  outline: none;
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.clinician-onboarding__field input::placeholder,
.clinician-onboarding__field select::placeholder {
  color: #9ca3af;
}
.clinician-onboarding__error {
  font-size: 12px;
  color: #dc2626;
  margin-top: 2px;
}
.clinician-onboarding__btn {
  grid-column: 1/-1;
  margin-top: 8px;
  padding: 12px 24px;
  background: #14B8A6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.clinician-onboarding__btn:hover:not(:disabled) {
  background: #0D9488;
}
.clinician-onboarding__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/**
 * Oaklet - Practice Onboarding Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Grant Jensen
 */
.practice-onboarding {
  max-width: 720px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.practice-onboarding__title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
}
.practice-onboarding__subtitle {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 24px 0;
}
.practice-onboarding__section-title {
  grid-column: 1/-1;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}
.practice-onboarding__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.practice-onboarding__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.practice-onboarding__field--full {
  grid-column: 1/-1;
}
.practice-onboarding__field label {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}
.practice-onboarding__field input,
.practice-onboarding__field select {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.15s ease;
}
.practice-onboarding__field input:focus,
.practice-onboarding__field select:focus {
  outline: none;
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.practice-onboarding__field input::placeholder,
.practice-onboarding__field select::placeholder {
  color: #9ca3af;
}
.practice-onboarding__error {
  grid-column: 1/-1;
  font-size: 12px;
  color: #dc2626;
  background: rgba(239, 68, 68, 0.08);
  padding: 8px;
  border-radius: 6px;
}
.practice-onboarding__success {
  text-align: center;
  padding: 24px 0;
}
.practice-onboarding__btn {
  grid-column: 1/-1;
  margin-top: 8px;
  padding: 12px 24px;
  background: #14B8A6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.practice-onboarding__btn:hover:not(:disabled) {
  background: #0D9488;
}
.practice-onboarding__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/**
 * Oaklet - Prescription List Component Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Grant Jensen
 */
.prescription-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.prescription-list__send-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #14B8A6;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.prescription-list__send-btn:hover:not(:disabled) {
  background: #0D9488;
}
.prescription-list__send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.prescription-list__table {
  width: calc(100% + 48px);
  margin: 0 -24px;
  border-collapse: collapse;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
}
.prescription-list__table:first-child {
  margin-top: -24px;
}
.prescription-list__table thead {
  background: #FAFBFC;
}
.prescription-list__table thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.prescription-list__table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background-color 0.1s ease;
}
.prescription-list__table tbody tr:hover {
  background: #f9fafb;
}
.prescription-list__table tbody tr:last-child {
  border-bottom: none;
}
.prescription-list__table tbody td {
  padding: 14px 16px;
  font-size: 14px;
  color: #111827;
  vertical-align: middle;
}
.prescription-list__empty {
  text-align: center;
  padding: 48px 20px;
  color: #6b7280;
  font-size: 14px;
  background: #F9FAFB;
  border: 1px dashed #e5e7eb;
  border-radius: 8px;
  margin: 0;
}
.prescription-list__error {
  padding: 12px 16px;
  margin-bottom: 12px;
  color: #b42318;
  font-size: 14px;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 8px;
}
.prescription-list__status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.prescription-list__status-badge--draft {
  background: #f3f4f6;
  color: #6b7280;
}
.prescription-list__status-badge--sent {
  background: rgba(20, 184, 166, 0.1);
  color: #0D9488;
}
.prescription-list__status-badge--pending {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
}
.prescription-list__status-badge--dispensed {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}
.prescription-list__status-badge--cancelled, .prescription-list__status-badge--denied, .prescription-list__status-badge--error {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

/**
 * Oaklet - New Prescription Form Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Grant Jensen
 */
.new-rx-form__overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  padding: 16px;
}

.new-rx-form {
  position: relative;
  width: 100%;
  max-width: 760px;
  height: min(780px, 92vh);
  max-height: 92vh;
  background: #ffffff;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.new-rx-form__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}
.new-rx-form__header h2 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.new-rx-form__close-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.new-rx-form__close-btn:hover {
  color: #111827;
  background: #f3f4f6;
}
.new-rx-form__steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 32px 24px;
  gap: 16px;
  background: #FAFBFC;
  border-bottom: 1px solid #f1f3f5;
}
.new-rx-form__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 8px;
  position: relative;
  min-width: 0;
}
.new-rx-form__step::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}
.new-rx-form__step:last-child::after {
  display: none;
}
.new-rx-form__step-number {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.new-rx-form__step-label {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  max-width: 100%;
  line-height: 1.2;
}
.new-rx-form__step--active .new-rx-form__step-number {
  background: #14B8A6;
  color: #ffffff;
  border-color: #14B8A6;
}
.new-rx-form__step--active .new-rx-form__step-label {
  color: #111827;
  font-weight: 600;
}
.new-rx-form__step--completed .new-rx-form__step-number {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}
.new-rx-form__step--completed::after {
  background: #16a34a;
}
.new-rx-form__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.new-rx-form__body label {
  display: block;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 6px;
}
.new-rx-form__body input,
.new-rx-form__body select,
.new-rx-form__body textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #111827;
  box-sizing: border-box;
}
.new-rx-form__body input:focus,
.new-rx-form__body select:focus,
.new-rx-form__body textarea:focus {
  outline: none;
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.new-rx-form__body textarea {
  resize: vertical;
  min-height: 80px;
}
.new-rx-form__field-group, .new-rx-form__field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.new-rx-form__field-group .new-rx-form__field, .new-rx-form__field-row .new-rx-form__field {
  margin-bottom: 0;
}
.new-rx-form__field-row {
  margin-bottom: 16px;
}
.new-rx-form__field {
  margin-bottom: 16px;
}
.new-rx-form__req {
  color: #ef4444;
  margin-left: 2px;
  font-weight: 600;
}
.new-rx-form__label {
  display: block;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}
.new-rx-form__hint {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 16px;
}
.new-rx-form__step-section {
  display: flex;
  flex-direction: column;
}
.new-rx-form__step-section .new-rx-form__hint {
  margin-top: -2px;
}
.new-rx-form__alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
.new-rx-form__alert svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.new-rx-form__alert--error {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
}
.new-rx-form__alert--success {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #067647;
}
.new-rx-form__review-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
}
.new-rx-form__review-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.new-rx-form__review-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  background: #ffffff;
}
.new-rx-form__review-row:nth-child(even) {
  background: #fafbfc;
}
.new-rx-form__review-row:last-child {
  border-bottom: none;
}
.new-rx-form__review-label {
  flex: 0 0 120px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #6b7280;
}
.new-rx-form__review-value {
  flex: 1;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  word-break: break-word;
}
.new-rx-form__edit-btn {
  flex-shrink: 0;
  padding: 4px 12px;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.new-rx-form__edit-btn:hover {
  background: #f9fafb;
  color: #111827;
}
.new-rx-form__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: #FAFBFC;
}
.new-rx-form__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.new-rx-form__btn--back {
  background: #ffffff;
  color: #4b5563;
  border-color: #e5e7eb;
  margin-right: auto;
}
.new-rx-form__btn--back:hover:not(:disabled) {
  background: #f9fafb;
  color: #111827;
}
.new-rx-form__btn--next, .new-rx-form__btn--send {
  background: #14B8A6;
  color: #ffffff;
}
.new-rx-form__btn--next:hover:not(:disabled), .new-rx-form__btn--send:hover:not(:disabled) {
  background: #0D9488;
}
.new-rx-form__btn--draft {
  background: #ffffff;
  color: #0D9488;
  border-color: #5EEAD4;
}
.new-rx-form__btn--draft:hover:not(:disabled) {
  background: #F0FDFA;
}
.new-rx-form__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/**
 * Oaklet - Drug Search Component Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Grant Jensen
 */
.drug-search,
.patient-search {
  position: relative;
}
.drug-search__input,
.patient-search__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #111827;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}
.drug-search__input:focus,
.patient-search__input:focus {
  outline: none;
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.drug-search__input::placeholder,
.patient-search__input::placeholder {
  color: #9ca3af;
}
.drug-search__loading,
.patient-search__loading {
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}
.drug-search__results,
.patient-search__results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 300px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.drug-search__result-item,
.patient-search__result-item {
  padding: 10px 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #111827;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.1s ease;
}
.drug-search__result-item:hover,
.patient-search__result-item:hover {
  background: #f0f4ff;
}
.drug-search__result-item:last-child,
.patient-search__result-item:last-child {
  border-bottom: none;
}
.drug-search__result-item-name,
.patient-search__result-item-name {
  font-weight: 500;
}
.drug-search__result-item-detail,
.patient-search__result-item-detail {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}
.drug-search__no-results,
.patient-search__no-results {
  padding: 12px 16px;
  font-size: 14px;
  color: #6b7280;
  text-align: center;
}
.drug-search__selected,
.patient-search__selected {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 20px;
  margin-top: 8px;
}
.drug-search__selected-name,
.patient-search__selected-name {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #14B8A6;
  font-weight: 500;
}
.drug-search__selected-remove,
.patient-search__selected-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: none;
  border: none;
  color: #14B8A6;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  border-radius: 50%;
  transition: background-color 0.1s ease;
}
.drug-search__selected-remove:hover,
.patient-search__selected-remove:hover {
  background: rgba(20, 184, 166, 0.2);
}

.pharmacy-search {
  width: 100%;
}
.pharmacy-search__form {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.pharmacy-search__form > input {
  flex: 1 1 140px;
  width: auto !important;
  min-width: 120px;
}
.pharmacy-search__form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 160px;
}
.pharmacy-search__form-field label {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}
.pharmacy-search__form-field input {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #111827;
}
.pharmacy-search__form-field input:focus {
  outline: none;
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.pharmacy-search__form-btn {
  padding: 8px 20px;
  background: #14B8A6;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.pharmacy-search__form-btn:hover:not(:disabled) {
  background: #0D9488;
}
.pharmacy-search__form-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.pharmacy-search__results {
  width: 100%;
  border-collapse: collapse;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.pharmacy-search__results thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}
.pharmacy-search__results tbody tr {
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background-color 0.1s ease;
}
.pharmacy-search__results tbody tr:hover {
  background: #f9fafb;
}
.pharmacy-search__results tbody tr:last-child {
  border-bottom: none;
}
.pharmacy-search__results tbody td {
  padding: 10px 14px;
  font-size: 14px;
  color: #111827;
}
.pharmacy-search__empty {
  text-align: center;
  padding: 32px 20px;
  color: #6b7280;
  font-size: 14px;
}
.pharmacy-search__result-item--selected {
  background: rgba(20, 184, 166, 0.1);
}
.pharmacy-search__selected {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  margin-top: 16px;
}
.pharmacy-search__selected-info {
  flex: 1;
}
.pharmacy-search__selected-info-name {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.pharmacy-search__selected-info-address {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}
.pharmacy-search__selected-change {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
}
.pharmacy-search__selected-change:hover {
  background: #f9fafb;
  color: #111827;
}

/**
 * Oaklet - Notifications Dashboard Component Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Grant Jensen
 */
.notifications-dashboard {
  width: 100%;
}
.notifications-dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.notifications-dashboard__header h3 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}
.notifications-dashboard__filters {
  display: flex;
  gap: 8px;
}
.notifications-dashboard__filters select {
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #111827;
  background: #ffffff;
}
.notifications-dashboard__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notifications-dashboard__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.notifications-dashboard__item:hover {
  border-color: #e5e7eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.notifications-dashboard__item--unread {
  border-left: 3px solid #14B8A6;
}
.notifications-dashboard__item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 1rem;
}
.notifications-dashboard__item-content {
  flex: 1;
  min-width: 0;
}
.notifications-dashboard__item-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  margin: 0 0 4px 0;
}
.notifications-dashboard__item-message {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}
.notifications-dashboard__item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.notifications-dashboard__item-time {
  font-size: 12px;
  color: #9ca3af;
}
.notifications-dashboard__empty {
  text-align: center;
  padding: 48px 20px;
  color: #6b7280;
  font-size: 14px;
}
.notifications-dashboard__urgency-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}
.notifications-dashboard__urgency-badge--high {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
.notifications-dashboard__urgency-badge--medium {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
.notifications-dashboard__urgency-badge--low {
  background: #f3f4f6;
  color: #6b7280;
}

/**
 * Oaklet - ePrescribe Shared Modal Styles
 * @copyright (c) 2025-2026 Oaklet
 * @author Grant Jensen
 *
 * Covers: RenewalResponseModal, ChangeResponseModal, CancelPrescriptionModal, PrescriptionDetail
 * Structure convention (all four): .X__overlay (fixed backdrop) > .X (card)
 */
.renewal-modal,
.change-modal,
.cancel-rx-modal,
.prescription-detail {
  position: relative;
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}
.renewal-modal__overlay,
.change-modal__overlay,
.cancel-rx-modal__overlay,
.prescription-detail__overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.renewal-modal__header,
.change-modal__header,
.cancel-rx-modal__header,
.prescription-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}
.renewal-modal__header h2,
.renewal-modal__header h3,
.change-modal__header h2,
.change-modal__header h3,
.cancel-rx-modal__header h2,
.cancel-rx-modal__header h3,
.prescription-detail__header h2,
.prescription-detail__header h3 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.renewal-modal__close-btn,
.change-modal__close-btn,
.cancel-rx-modal__close-btn,
.prescription-detail__close-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  font-size: 1.5rem;
  line-height: 1;
}
.renewal-modal__close-btn:hover,
.change-modal__close-btn:hover,
.cancel-rx-modal__close-btn:hover,
.prescription-detail__close-btn:hover {
  color: #111827;
}
.renewal-modal__error,
.change-modal__error,
.cancel-rx-modal__error,
.prescription-detail__error {
  margin: 12px 24px 0;
  padding: 12px 16px;
  color: #b42318;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 8px;
}
.renewal-modal__info,
.change-modal__info,
.cancel-rx-modal__info,
.prescription-detail__info {
  padding: 16px 24px 0;
}
.renewal-modal__info p,
.change-modal__info p,
.cancel-rx-modal__info p,
.prescription-detail__info p {
  margin: 0 0 8px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #111827;
}
.renewal-modal__field,
.change-modal__field,
.cancel-rx-modal__field,
.prescription-detail__field {
  padding: 16px 24px 0;
}
.renewal-modal__field label,
.change-modal__field label,
.cancel-rx-modal__field label,
.prescription-detail__field label {
  display: block;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 6px;
}
.renewal-modal__field input,
.renewal-modal__field select,
.renewal-modal__field textarea,
.change-modal__field input,
.change-modal__field select,
.change-modal__field textarea,
.cancel-rx-modal__field input,
.cancel-rx-modal__field select,
.cancel-rx-modal__field textarea,
.prescription-detail__field input,
.prescription-detail__field select,
.prescription-detail__field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #111827;
  box-sizing: border-box;
}
.renewal-modal__field input:focus,
.renewal-modal__field select:focus,
.renewal-modal__field textarea:focus,
.change-modal__field input:focus,
.change-modal__field select:focus,
.change-modal__field textarea:focus,
.cancel-rx-modal__field input:focus,
.cancel-rx-modal__field select:focus,
.cancel-rx-modal__field textarea:focus,
.prescription-detail__field input:focus,
.prescription-detail__field select:focus,
.prescription-detail__field textarea:focus {
  outline: none;
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.renewal-modal__field textarea,
.change-modal__field textarea,
.cancel-rx-modal__field textarea,
.prescription-detail__field textarea {
  resize: vertical;
  min-height: 80px;
}
.renewal-modal__req,
.change-modal__req,
.cancel-rx-modal__req,
.prescription-detail__req {
  color: #b42318;
  margin-left: 2px;
}
.renewal-modal__request,
.change-modal__request,
.cancel-rx-modal__request,
.prescription-detail__request {
  margin: 16px 24px 0;
  padding: 12px 16px;
  background: #f9fafb;
  border: 1px solid #eef0f3;
  border-radius: 8px;
}
.renewal-modal__request-title,
.change-modal__request-title,
.cancel-rx-modal__request-title,
.prescription-detail__request-title {
  display: block;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
  margin-bottom: 8px;
}
.renewal-modal__request-loading,
.change-modal__request-loading,
.cancel-rx-modal__request-loading,
.prescription-detail__request-loading {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #6b7280;
}
.renewal-modal__request-grid,
.change-modal__request-grid,
.cancel-rx-modal__request-grid,
.prescription-detail__request-grid {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.renewal-modal__request-row,
.change-modal__request-row,
.cancel-rx-modal__request-row,
.prescription-detail__request-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.renewal-modal__request-row dt,
.change-modal__request-row dt,
.cancel-rx-modal__request-row dt,
.prescription-detail__request-row dt {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #6b7280;
  flex-shrink: 0;
}
.renewal-modal__request-row dd,
.change-modal__request-row dd,
.cancel-rx-modal__request-row dd,
.prescription-detail__request-row dd {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  text-align: right;
}

.cancel-rx-modal__btn, .prescription-detail__btn, .cancel-rx-modal__btn--confirm, .prescription-detail__btn--cancel, .change-modal__btn, .renewal-modal__submit-btn, .prescription-detail__btn--send, .renewal-modal__cancel-btn, .renewal-modal__action-btn, .cancel-rx-modal__btn--back {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cancel-rx-modal__btn:disabled, .prescription-detail__btn:disabled, .cancel-rx-modal__btn--confirm:disabled, .prescription-detail__btn--cancel:disabled, .change-modal__btn:disabled, .renewal-modal__submit-btn:disabled, .prescription-detail__btn--send:disabled, .renewal-modal__cancel-btn:disabled, .renewal-modal__action-btn:disabled, .cancel-rx-modal__btn--back:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.renewal-modal__cancel-btn, .renewal-modal__action-btn, .cancel-rx-modal__btn--back {
  background: transparent;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  font-weight: 500;
}
.renewal-modal__cancel-btn:hover:not(:disabled), .renewal-modal__action-btn:hover:not(:disabled), .cancel-rx-modal__btn--back:hover:not(:disabled) {
  background: #f9fafb;
  color: #111827;
}

.change-modal__btn, .renewal-modal__submit-btn, .prescription-detail__btn--send {
  background: #14B8A6;
  color: #ffffff;
}
.change-modal__btn:hover:not(:disabled), .renewal-modal__submit-btn:hover:not(:disabled), .prescription-detail__btn--send:hover:not(:disabled) {
  background: #0D9488;
}

.cancel-rx-modal__btn--confirm, .prescription-detail__btn--cancel {
  background: #ef4444;
  color: #ffffff;
}
.cancel-rx-modal__btn--confirm:hover:not(:disabled), .prescription-detail__btn--cancel:hover:not(:disabled) {
  background: #dc2626;
}

.prescription-detail {
  max-width: 640px;
}
.prescription-detail__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.prescription-detail__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #111827;
}
.prescription-detail__row:last-child {
  border-bottom: none;
}
.prescription-detail__label {
  color: #6b7280;
  flex-shrink: 0;
}
.prescription-detail__status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: #f3f4f6;
  color: #6b7280;
}
.prescription-detail__status--draft {
  background: #f3f4f6;
  color: #6b7280;
}
.prescription-detail__status--pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
.prescription-detail__status--sent, .prescription-detail__status--dispensed {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.prescription-detail__status--cancelled, .prescription-detail__status--removed, .prescription-detail__status--denied, .prescription-detail__status--error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
.prescription-detail__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
}
.cancel-rx-modal__form {
  padding: 16px 24px 0;
}
.cancel-rx-modal__form label {
  display: block;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 6px;
}
.cancel-rx-modal__form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #111827;
  box-sizing: border-box;
  resize: vertical;
  min-height: 80px;
}
.cancel-rx-modal__form textarea:focus {
  outline: none;
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.cancel-rx-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  margin-top: 16px;
  border-top: 1px solid #e5e7eb;
}
.renewal-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 24px 0;
}
.renewal-modal__action-btn--selected {
  background: #14B8A6;
  border-color: #14B8A6;
  color: #ffffff;
  font-weight: 600;
}
.renewal-modal__action-btn--selected:hover:not(:disabled) {
  background: #0D9488;
  color: #ffffff;
}
.renewal-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  margin-top: 16px;
  border-top: 1px solid #e5e7eb;
}
.change-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  margin-top: 16px;
  border-top: 1px solid #e5e7eb;
}
.clinician-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  background: #f3f4f6;
  color: #6b7280;
}
.clinician-status-badge--active {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.clinician-status-badge--pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
.clinician-status-badge--suspended {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/**
 * Oaklet - ID.me Verification Modal
 * @copyright (c) 2025-2026 Oaklet
 * @author Grant Jensen
 *
 * Modal opened from the header "Verify" button. Structure follows the eRx modal
 * convention: .idme-modal__overlay (fixed backdrop) > .idme-modal (card).
 */
.idme-modal {
  position: relative;
  width: 90%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
}
.idme-modal__overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.idme-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}
.idme-modal__header h2 {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}
.idme-modal__close-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  font-size: 1.5rem;
  line-height: 1;
}
.idme-modal__close-btn:hover {
  color: #111827;
}
.idme-modal__body {
  padding: 20px 24px;
}
.idme-modal__intro {
  margin: 0 0 18px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #6b7280;
}
.idme-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
}
.idme-modal__error, .idme-modal__info {
  margin: 14px 0 0;
  padding: 10px 14px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  border-radius: 8px;
}
.idme-modal__error {
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
}
.idme-modal__info {
  color: #0D9488;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.25);
}
.idme-modal__success {
  text-align: center;
  padding: 28px 24px 8px;
}
.idme-modal__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ecfdf3;
  color: #067647;
  margin-bottom: 14px;
}
.idme-modal__success-title {
  margin: 0 0 6px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}
.idme-modal__success-text {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #6b7280;
}

.idme-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.idme-step {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 18px;
}
.idme-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}
.idme-step:last-child {
  padding-bottom: 0;
}
.idme-step__marker {
  flex-shrink: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid transparent;
}
.idme-step--active .idme-step__marker {
  background: #ffffff;
  color: #0D9488;
  border-color: #14B8A6;
}
.idme-step--done .idme-step__marker {
  background: #067647;
  color: #ffffff;
}
.idme-step__body {
  flex: 1;
  min-width: 0;
  padding-top: 3px;
}
.idme-step__title {
  display: block;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}
.idme-step__hint {
  display: block;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  color: #6b7280;
}
.idme-step__row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.idme-step__input {
  flex: 1 1 220px;
  padding: 9px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #111827;
  box-sizing: border-box;
}
.idme-step__input:focus {
  outline: none;
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.idme-step__readonly {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

.idme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border: none;
  border-radius: 8px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.idme-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.idme-btn--primary {
  background: #14B8A6;
  color: #ffffff;
}
.idme-btn--primary:hover:not(:disabled) {
  background: #0D9488;
}
.idme-btn--ghost {
  background: transparent;
  border: 1px solid #d8dbe0;
  color: #111827;
}
.idme-btn--ghost:hover:not(:disabled) {
  background: #f9fafb;
}

.idme-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #0D9488;
  text-decoration: none;
}
.idme-link:hover {
  text-decoration: underline;
}

.idme-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0D9488;
  cursor: pointer;
  text-decoration: underline;
}

.idme-spin {
  animation: idme-spin 0.8s linear infinite;
}

@keyframes idme-spin {
  to {
    transform: rotate(360deg);
  }
}

/*# sourceMappingURL=main-1.0.0.css.map */
