/* ===== global styles (src/styles.scss) ===== */
/* Error text, invalid-field borders and cell padding */

.form-group label {
  display: block;
}

@media print {
  .noprint {
    display: none;
  }
}
/* Wide tooltip for referral assistance table */
.wide-tooltip {
  max-width: none !important;
  width: 680px !important; /* match or exceed table min-width */
  white-space: normal !important;
}

.wide-tooltip .p-tooltip-text {
  white-space: normal !important;
  text-align: left;
  padding: 0.25rem !important;
}

/* ===== footer ===== */
app-footer .footer {
  bottom: 0;
  margin-left: 25%;
  margin-right: 25%;
}

/* ===== loading ===== */
.splash-screen.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 10000;
}

.splash-screen .splash-logo {
  left: 50%;
  top: 50%;
  margin-top: -20px;
  z-index: 2;
  position: absolute;
}

.splash-screen p {
  font-size: 20px;
  position: absolute;
  left: 50%;
  top: 56%;
  z-index: 2;
} /* ===== maintenance ===== */
/* ===== fsc-form ===== */
app-fsc-form .print-page {
  display: none;
  padding: 10px;
}
app-fsc-form .print-page--section {
  border-radius: 5px;
  margin-bottom: 20px;
}
app-fsc-form .print-page--section .header {
  font-size: 20px;
  padding: 10px;
}
app-fsc-form .print-page--section .content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-gap: 30px;
  padding: 10px;
}
app-fsc-form .print-page--section .content.quick {
  grid-template-columns: 1fr 1fr;
}
app-fsc-form .print-page--section .content.client {
  grid-template-columns: 2fr 1.5fr 4fr 1fr;
}
app-fsc-form .print-page--section .content.social {
  grid-template-columns: 1fr 2fr 3fr;
}
app-fsc-form .print-page--section .content.pregnancy {
  grid-template-columns: 1fr 1fr 1fr;
}
app-fsc-form .print-page--section .content.nutrition {
  grid-template-columns: 1fr 2fr 1fr;
}
app-fsc-form .print-page--section .content.lead {
  grid-template-columns: 1.2fr 1fr 1.6fr;
}
app-fsc-form .print-page--section .content .block label {
  font-weight: 700;
}
@media print {
  app-fsc-form .print-page {
    display: block;
  }
}

/* ===== admin ===== */
app-admin .row-border td {
  border-bottom: 1px solid var(--surface-border) !important;
}
app-admin .import-table td {
  margin: 0px;
}

/* ===== inbound-referral-edit-form ===== */
app-inbound-referral-edit-form .inbound-referral-edit label {
  width: 100px;
  text-align: right;
}

/* ===== client-profile-info ===== */
app-client-profile-info .relationship-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== notification-bell ===== */
app-notification-bell {
  /* Notification type styles */
  /* Priority styles */
  /* Bell shake animation */
  /* Responsive design */
}
app-notification-bell .notification-bell-container {
  position: relative;
  display: inline-block;
}
app-notification-bell .notification-bell {
  position: relative;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}
app-notification-bell .notification-bell i {
  font-size: 1.2rem;
  transition: color 0.2s ease;
}
app-notification-bell .notification-bell.has-notifications i.bell-active {
  animation: bellShake 0.5s ease-in-out;
}
app-notification-bell .notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  line-height: 1.2;
}
app-notification-bell .notification-dropdown {
  position: absolute;
  top: 100px;
  right: 0;
  width: 350px;
  max-height: 500px;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  z-index: 1000;
  overflow: hidden;
}
app-notification-bell .notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--surface-border);
}
app-notification-bell .notification-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
app-notification-bell .notification-actions {
  display: flex;
  gap: 8px;
}
app-notification-bell .mark-all-read-btn,
app-notification-bell .close-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}
app-notification-bell .notification-list {
  max-height: 400px;
  overflow-y: auto;
}
app-notification-bell .no-notifications {
  text-align: center;
  padding: 40px 20px;
}
app-notification-bell .no-notifications i {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}
app-notification-bell .notification-item {
  border-bottom: 1px solid var(--surface-border);
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
}
app-notification-bell .notification-item.unread {
  border-left: 4px solid var(--surface-border);
}
app-notification-bell .notification-content {
  display: flex;
  padding: 12px 16px;
  gap: 12px;
}
app-notification-bell .notification-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
app-notification-bell .notification-body {
  flex: 1;
  min-width: 0;
}
app-notification-bell .notification-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
  line-height: 1.3;
}
app-notification-bell .notification-message {
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
app-notification-bell .notification-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}
app-notification-bell .notification-action {
  font-weight: 600;
}
app-notification-bell .notification-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
app-notification-bell .notification-item:hover .notification-controls {
  opacity: 1;
}
app-notification-bell .mark-read-btn,
app-notification-bell .delete-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.8rem;
  transition: background-color 0.2s ease;
}
app-notification-bell .notification-footer {
  padding: 12px 16px;
  text-align: center;
  border-top: 1px solid var(--surface-border);
}
app-notification-bell .notification-footer a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
app-notification-bell .notification-footer a:hover {
  text-decoration: underline;
}
@keyframes bellShake {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: rotate(-10deg);
  }
  20%, 40%, 60%, 80% {
    transform: rotate(10deg);
  }
}
@media (max-width: 768px) {
  app-notification-bell .notification-dropdown {
    width: 300px;
    right: -50px;
  }
}
@media (max-width: 480px) {
  app-notification-bell .notification-dropdown {
    width: 280px;
    right: -100px;
  }
}
