.platform-view .stat {
  border-top: 1px solid var(--line);
}
.admin-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.admin-chart {
  padding: 8px 24px 26px;
  display: grid;
  gap: 20px;
}
.admin-chart > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 35px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.admin-chart svg {
  width: 100%;
  height: 18px;
  stroke: none;
}
.admin-chart strong {
  text-align: right;
}
.admin-calendar-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.admin-calendar-toolbar > div {
  display: flex;
  gap: 6px;
}
.admin-calendar-toolbar h2 {
  margin: 0 auto;
  font-size: 21px;
}
.admin-calendar-toolbar input,
.admin-calendar-toolbar select {
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 8px;
  background: white;
  max-width: 100%;
}
.admin-calendar {
  overflow: auto;
}
.admin-calendar-labels,
.admin-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 650px;
}
.admin-calendar-labels {
  padding: 14px 0;
  text-align: center;
  font-size: 11px;
  color: #6a7b8d;
}
.admin-calendar-cell {
  min-height: 115px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 7px;
  min-width: 0;
}
.admin-calendar-cell.muted {
  background: #f8fafc;
  color: #8795a5;
}
.admin-date {
  border: 0;
  background: transparent;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.today .admin-date {
  background: #147bff;
  color: white;
}
.admin-event {
  display: block;
  width: 100%;
  border: 0;
  border-left: 3px solid #147bff;
  background: #eaf3ff;
  border-radius: 4px;
  padding: 5px;
  text-align: left;
  font-size: 10px;
  line-height: 1.5;
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.admin-event.teal {
  background: #e5f8f3;
  border-color: #009a8c;
}
.admin-event.purple {
  background: #f0eafa;
  border-color: #8758bf;
}
.admin-agenda {
  min-width: 300px;
  display: flex;
  overflow: auto;
}
.admin-agenda > section {
  flex: 1;
  min-width: 230px;
}
.admin-agenda header {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.admin-agenda h2 {
  font-size: 14px;
}
.admin-hour {
  display: grid;
  grid-template-columns: 46px 1fr;
  min-height: 50px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.admin-hour > span {
  padding: 8px;
  color: #728397;
}
.admin-hour > div {
  border-left: 1px solid var(--line);
  padding: 4px;
}
.admin-task-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.admin-task {
  padding: 16px;
  margin: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.admin-task h3 {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.admin-task p,
.admin-empty {
  font-size: 12px;
  color: #728397;
}
.admin-empty {
  padding: 20px;
}
.ticket-thread {
  padding: 0 20px 20px;
  display: grid;
  gap: 14px;
}
.ticket-thread article {
  background: #f3f6fa;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  overflow-wrap: anywhere;
}
.ticket-thread article.team {
  background: #edf5ff;
}
.ticket-thread strong {
  font-size: 12px;
}
.ticket-thread small {
  display: block;
  font-size: 10px;
  color: #728397;
  margin-top: 5px;
}
.ticket-thread p {
  white-space: pre-wrap;
  line-height: 1.8;
  margin: 10px 0 0;
  font-size: 13px;
}
#suite-signature-canvas {
  width: 100%;
  height: 180px;
  border: 1px solid #adc1d5;
  border-radius: 10px;
  touch-action: none;
}
#suite-email-form select[multiple] {
  min-height: 140px;
}
#suite-document-form textarea {
  min-height: 240px;
}
@media (max-width: 900px) {
  .admin-chart-grid,
  .admin-task-board {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-calendar-toolbar h2 {
    font-size: 18px;
  }
  .admin-chart {
    padding: 10px 16px 22px;
  }
  .admin-chart > div {
    grid-template-columns: 85px minmax(0, 1fr) 30px;
  }
  .platform-view .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 450px) {
  .admin-calendar-toolbar input {
    width: 160px;
  }
  .admin-calendar-toolbar h2 {
    width: 100%;
    order: -1;
  }
  .admin-chart > div {
    font-size: 11px;
    gap: 8px;
  }
  .platform-view .stat-value strong {
    font-size: 22px;
    overflow-wrap: anywhere;
  }
  .admin-calendar-toolbar .button {
    font-size: 10px;
  }
  .ticket-thread {
    padding: 0 12px 16px;
  }
}
@media print {
  .admin-calendar-toolbar,
  .consumer-header nav {
    display: none !important;
  }
  .patient-document {
    break-inside: avoid;
  }
}
.admin-view-switch {
  display: flex;
  border: 1px solid #dce5ef;
  background: #edf2f8;
  padding: 3px;
  border-radius: 10px;
  gap: 2px;
}
.admin-view-switch .button {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 13px;
  min-height: 36px;
}
.admin-view-switch [aria-pressed='true'] {
  background: #fff;
  color: #147bff;
  box-shadow: 0 1px 4px #0a1a2f16;
}
.admin-time-grid {
  --calendar-days: 7;
  min-width: 800px;
}
.admin-time-grid.day {
  min-width: 300px;
}
.admin-time-heading,
.admin-all-day,
.admin-time-body {
  display: grid;
  grid-template-columns: 58px repeat(var(--calendar-days), minmax(0, 1fr));
}
.admin-time-heading {
  position: sticky;
  top: 0;
  z-index: 5;
  background: white;
  border-bottom: 1px solid var(--line);
}
.admin-time-heading > div {
  text-align: center;
  padding: 12px 4px;
  border-left: 1px solid var(--line);
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 11px;
  color: #65768a;
}
.admin-time-heading strong {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 20px;
  color: #14283e;
  border-radius: 50%;
}
.admin-time-heading .today strong {
  background: #147bff;
  color: white;
}
.admin-all-day {
  border-bottom: 1px solid var(--line);
  min-height: 44px;
  background: #fcfdff;
}
.admin-all-day > span {
  font-size: 10px;
  color: #728397;
  padding: 12px 5px;
}
.admin-all-day > div {
  border-left: 1px solid var(--line);
  padding: 3px;
  min-width: 0;
}
.admin-time-body {
  height: 1536px;
  position: relative;
}
.admin-time-axis {
  position: relative;
  background: #fff;
  z-index: 2;
}
.admin-time-axis span {
  position: absolute;
  right: 8px;
  font-size: 10px;
  color: #728397;
  line-height: 16px;
  transform: translateY(-7px);
}
.admin-time-axis span:first-child {
  transform: none;
}
.admin-time-column {
  position: relative;
  border-left: 1px solid var(--line);
  min-width: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 31px,
    #eef2f7 31px,
    #eef2f7 32px,
    transparent 32px,
    transparent 63px,
    #dfe7ef 63px,
    #dfe7ef 64px
  );
}
.admin-event.timed {
  position: absolute;
  margin: 0;
  z-index: 3;
  overflow: hidden;
  border-top: 0;
  border-bottom: 0;
  border-right: 0;
  border-radius: 5px;
  padding: 3px 5px;
  font-size: 10px;
  line-height: 1.35;
  min-height: 0;
}
.admin-event.timed strong,
.admin-event.timed span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-event.timed span {
  font-size: 9px;
  margin-top: 3px;
}
.admin-event.timed:hover,
.admin-event.timed:focus-visible {
  z-index: 4;
  filter: brightness(0.96);
}
.admin-calendar:has(.admin-time-grid) {
  max-height: 72vh;
  overscroll-behavior: contain;
}
.admin-time-heading .admin-time-corner {
  background: #fff;
  position: sticky;
  left: 0;
  z-index: 6;
}
@media (max-width: 600px) {
  .admin-time-grid.week {
    min-width: 750px;
  }
  .admin-time-grid.day {
    min-width: 280px;
  }
  .admin-calendar:has(.admin-time-grid) {
    max-height: 70dvh;
  }
  .admin-view-switch {
    width: 100%;
    justify-content: space-between;
  }
  .admin-view-switch .button {
    flex: 1;
  }
}
.admin-time-axis {
  position: sticky;
  left: 0;
  z-index: 4;
}
.admin-all-day > span {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #fcfdff;
}
.notification-bell {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
}
.notification-bell svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.notification-count {
  position: absolute;
  right: -3px;
  top: -3px;
  min-width: 17px;
  height: 17px;
  padding: 1px 4px;
  border-radius: 10px;
  background: #147bff;
  color: white;
  font-size: 9px;
  line-height: 15px;
  font-weight: 600;
}
.notification-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.notification-list {
  display: grid;
  gap: 6px;
  max-height: 60dvh;
  overflow: auto;
}
.notification-item {
  display: flex;
  gap: 12px;
  padding: 15px 12px;
  border-radius: 10px;
  background: #f8fafc;
  min-width: 0;
}
.notification-item.unread {
  background: #eef5ff;
}
.notification-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  margin-top: 5px;
}
.unread .notification-dot {
  background: #147bff;
}
.notification-item strong {
  font-size: 12px;
}
.notification-item p {
  margin: 5px 0 !important;
  overflow-wrap: anywhere;
}
.notification-item small {
  font-size: 10px;
  color: #728397;
}
@media (max-width: 760px) {
  .notification-bell {
    min-width: 44px;
    min-height: 44px;
  }
}
.notification-toolbar {
  gap: 8px;
  flex-wrap: wrap;
}
