/* Dashboard surface system. Interactions stay owned by dashboard-interactions. */
.trends-panel {
  --trend-gynecology: #d72b7c;
  --trend-obstetrics: #0869e8;
  min-width: 0;
}
:root[data-theme='dark'] .trends-panel {
  --trend-gynecology: #ff71b3;
  --trend-obstetrics: #6caaff;
}
.trends-period .pick {
  width: auto;
  min-width: 110px;
}
.trends-period {
  flex-shrink: 0;
}
.trends-readout {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  min-height: 48px;
  margin-bottom: 12px;
}
.trends-month {
  font-size: 13px;
  color: var(--muted);
  text-transform: capitalize;
}
.trends-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
  min-width: 0;
}
.trend-key {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
.trend-key i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--trend-colour);
  opacity: 1;
  margin: 0;
}
.trends-panel .gynecology {
  --trend-colour: var(--trend-gynecology);
}
.trends-panel .obstetrics {
  --trend-colour: var(--trend-obstetrics);
}
.trend-key strong {
  min-width: 1.2em;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.trends-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  padding: 4px;
  margin: 0 -4px;
}
.trends-canvas {
  position: relative;
  min-width: var(--trend-min-width);
  height: 220px;
}
.trends-svg {
  display: block;
  width: 100%;
  height: 220px;
  overflow: visible;
}
.trend-guide line {
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 3 5;
}
.trend-axis {
  position: absolute;
  inset: 0 auto 0 0;
  width: 18px;
  pointer-events: none;
}
.trend-axis span {
  position: absolute;
  left: 0;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 10px;
}
.trend-series path {
  fill: none;
  stroke: var(--trend-colour);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.trend-points {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.trend-point {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid var(--trend-colour);
  border-radius: 50%;
  background: var(--surface);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 180ms ease;
}
.trend-point.is-active {
  opacity: 1;
}
.trend-months {
  position: absolute;
  inset: 0 2% 0 4.6667%;
  display: grid;
  grid-template-columns: repeat(var(--trend-columns), minmax(0, 1fr));
}
.trend-month {
  position: relative;
  min-width: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.trend-month::before {
  content: '';
  position: absolute;
  inset: 8px auto 38px 50%;
  width: 1px;
  background: var(--text);
  opacity: 0;
  transition: opacity 180ms ease;
}
.trend-month.is-active::before {
  opacity: 0.12;
}
.trend-month span {
  position: absolute;
  inset: auto 0 3px;
  padding: 5px 0;
  border-radius: 7px;
  font-size: 11px;
  white-space: nowrap;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}
.trend-month.is-active span {
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 600;
}
@media (max-width: 760px), (pointer: coarse) {
  .trends-info summary {
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .trend-point,
  .trend-month::before,
  .trend-month span {
    transition: none;
  }
}
.dashboard-page .dashboard-grid {
  grid-template-columns: minmax(0, 1.95fr) minmax(280px, 1fr);
  gap: 24px;
}
.dashboard-page .dashboard-lane {
  gap: 24px;
}
.dashboard-page .panel {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.dashboard-page .panel-heading {
  margin-bottom: 18px;
}
.dashboard-page .panel-heading h2 {
  font-family: var(--font-display);
  font-size: var(--type-section);
  font-weight: 620;
  letter-spacing: -0.035em;
}
.dashboard-page .brief-scope {
  color: var(--muted);
  font-size: var(--type-caption);
  line-height: 1.4;
  text-align: right;
}
.dashboard-page .brief-panel {
  container: brief / inline-size;
}
.brief-greeting {
  display: flex;
  align-items: center;
  gap: 10px;
}
.greeting-wave {
  display: inline-block;
  transform-origin: 75% 75%;
  font-size: 25px;
}
.brief-panel:hover .greeting-wave {
  animation: brief-wave 900ms ease-in-out;
}
@keyframes brief-wave {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(20deg);
  }
  55% {
    transform: rotate(-12deg);
  }
  80% {
    transform: rotate(13deg);
  }
}
.dashboard-page .brief-panel {
  position: relative;
  transform: perspective(1000px) rotateX(var(--brief-rx, 0deg)) rotateY(var(--brief-ry, 0deg));
  transition: transform 420ms var(--ease-response);
}
.brief-panel::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--brief-x, 50%) var(--brief-y, 50%),
    color-mix(in srgb, var(--blue) 6%, transparent),
    transparent 65%
  );
  opacity: var(--brief-glow, 0);
  transition: opacity 300ms;
}
.activity-period {
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
  flex-shrink: 0;
}
.activity-period .pick {
  width: auto;
  min-width: 110px;
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-page .brief-panel {
    transform: none;
    transition: none;
  }
  .brief-panel:hover .greeting-wave {
    animation: none;
  }
}
.dashboard-page .eyebrow {
  font-size: var(--type-caption);
  font-weight: 500;
}
.dashboard-page .brief-panel .metrics {
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: transparent;
  border: 0;
  border-radius: 0;
  gap: 10px;
  margin: 0;
}
.dashboard-page .metrics > .metric {
  --metric-vivid: #0869e8;
  --metric-ink: #fff;
  padding: 12px 14px;
  border-radius: 15px;
  min-height: 90px;
  border: 0;
  background: var(--metric-surface);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'label label' 'value caption';
  column-gap: 8px;
  transition:
    background-color 220ms ease,
    color 180ms ease,
    transform 360ms var(--ease-response);
}
.dashboard-page .metric.rose {
  --metric-vivid: #7136df;
}
.dashboard-page .metric.amber {
  --metric-vivid: #ffd60a;
  --metric-ink: #302300;
}
.dashboard-page .metric.teal {
  --metric-vivid: #00796f;
}
.dashboard-page .metrics > .metric:focus-visible,
.dashboard-page .metrics > .metric:active {
  background: var(--metric-vivid);
  color: var(--metric-ink);
  box-shadow: none;
}
.dashboard-page .metric :is(.tile-icon, .metric-name, .metric-sub, .metric-arrow) {
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 360ms var(--ease-response);
}
.dashboard-page
  .metric:is(:focus-visible, :active)
  :is(.tile-icon, .metric-name, .metric-sub, .metric-arrow) {
  color: var(--metric-ink);
}
.dashboard-page .metric:is(:focus-visible, :active) .metric-arrow {
  opacity: 1;
  transform: translateX(3px);
}
.dashboard-page .metrics > .metric:active {
  transform: scale(0.97);
}
@media (hover: hover) and (pointer: fine) {
  .dashboard-page .metrics > .metric:hover {
    background: var(--metric-vivid);
    color: var(--metric-ink);
    transform: translateY(-2px);
    box-shadow: none;
  }
  .dashboard-page .metric:hover :is(.tile-icon, .metric-name, .metric-sub, .metric-arrow) {
    color: var(--metric-ink);
  }
  .dashboard-page .metric:hover .tile-icon {
    transform: translateY(-1px);
  }
  .dashboard-page .metric:hover .metric-arrow {
    opacity: 1;
    transform: translateX(3px);
  }
  .dashboard-page .metrics > .metric:active {
    transform: scale(0.97);
  }
}
.dashboard-page .metric-top {
  grid-area: label;
  justify-content: flex-start;
  gap: 8px;
  min-height: 24px;
  margin-bottom: 5px;
}
.dashboard-page .metric .tile-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}
.dashboard-page .metric .tile-icon svg {
  width: 18px;
  height: 18px;
}
.dashboard-page .metric-name {
  min-height: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text);
  font-weight: 500;
}
.dashboard-page .metric > strong {
  grid-area: value;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 620;
  line-height: 1.1;
  margin: 0 0 3px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.dashboard-page .metric-sub {
  grid-area: caption;
  font-size: 11px;
  min-height: 14px;
  align-items: flex-end;
  align-self: end;
  max-width: 92px;
  text-align: right;
  padding-bottom: 3px;
}
.dashboard-page .activity-panel {
  min-height: 430px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.dashboard-page .activity-panel .eyebrow {
  display: none;
}
.dashboard-page .activity-panel .panel-heading h2 {
  font-size: 23px;
  line-height: 1.2;
}
.dashboard-page .activity-panel .chart-summary {
  margin: 0 0 28px;
  gap: 12px;
}
.dashboard-page .chart-summary > strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(48px, 4.2vw, 68px);
  font-weight: 580;
  letter-spacing: -0.065em;
  line-height: 1.1;
}
.dashboard-page .chart-summary > span {
  font-size: 14px;
  color: var(--muted);
}
.dashboard-page .chart-summary small {
  font-size: 12px;
  margin-top: 4px;
}
.dashboard-page .bar-chart {
  height: 245px;
  margin-top: auto;
  overflow-x: auto;
}
.dashboard-page .chart-columns {
  min-width: 100%;
  padding-top: 10px;
}
.bar-chart.is-dense .bar-number {
  opacity: 0;
}
.bar-chart.is-dense .chart-columns {
  gap: 2px;
}
.bar-chart.is-dense .chart-column {
  padding-inline: 0;
}
.bar-chart.is-dense .chart-column:first-child .month-label {
  align-self: flex-start;
}
.bar-chart.is-dense .chart-column:last-child .month-label {
  align-self: flex-end;
}
.bar-chart.is-dense .chart-column:is(:hover, :focus-visible) .bar-number {
  opacity: 1;
}
.bar-chart.is-dense .month-label {
  font-size: 10px;
  white-space: nowrap;
}
.bar-chart .is-muted-label {
  visibility: hidden;
}
.dashboard-page .chart-guides {
  top: 10px;
}
.dashboard-page .bar {
  width: 48%;
  max-width: 38px;
  border-radius: 12px 12px 5px 5px;
  background: var(--chart-bar);
  transition:
    background-color 220ms ease,
    filter 220ms ease;
}
.dashboard-page .bar.current {
  background: var(--action);
}
.dashboard-page .chart-column:is(:hover, :focus-visible) .bar {
  background: var(--action);
  filter: none;
}
.dashboard-page .bar-number {
  font-size: 12px;
  font-weight: 500;
}
.dashboard-page .month-label {
  font-size: 12px;
}
.dashboard-page .pick.compact {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 24px;
  min-width: 120px;
  padding: 0 15px;
  gap: 10px;
  font-size: 14px;
  font-weight: 550;
  background: var(--surface);
  color: var(--text);
}
.dashboard-page .pick.compact > .pick-leading-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.dashboard-page .pick.compact > svg:last-child {
  width: 14px;
  height: 14px;
  transition: transform 160ms ease;
}
.dashboard-page .pick.compact:is(:hover, [aria-expanded='true']) {
  color: var(--blue);
  background: var(--blue-bg);
  border-color: transparent;
  box-shadow: none;
}
.dashboard-page .pick.compact[aria-expanded='true'] > svg:last-child {
  transform: rotate(180deg);
}
.dashboard-page .pending-row {
  padding: 12px 0;
  gap: 11px;
}
.dashboard-page .pending-row .tile-icon {
  width: 33px;
  height: 39px;
  border-radius: 9px;
  background: var(--surface-alt);
  color: var(--muted);
  box-shadow: none;
}
.dashboard-page .pending-row strong {
  font-size: 13px;
  font-weight: 600;
}
.dashboard-page .pending-procedure {
  font-size: 13px;
}
.dashboard-page .pending-row small {
  font-size: 12px;
}
.dashboard-page .recent-row {
  padding: 18px 0;
}
.dashboard-page .recent-main > strong {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}
.dashboard-page .recent-main small {
  font-size: 14px;
}
:root[data-theme='dark'] .dashboard-page .panel {
  box-shadow: var(--shadow);
  border-color: var(--line);
}
:root[data-theme='dark'] .dashboard-page .activity-panel {
  background: transparent;
}
.dashboard-page .operation-calendar {
  background: var(--surface);
}
.dashboard-page .operation-calendar .panel-heading {
  margin-bottom: 24px;
}
.dashboard-page .operation-calendar .eyebrow {
  font-size: 10px;
  letter-spacing: 0.09em;
}
.dashboard-page .operation-calendar .calendar-day {
  border-radius: 12px;
}
.dashboard-page .operation-calendar .calendar-controls .icon-button {
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  border-color: transparent;
}
.dashboard-page .recents {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 4px;
}
.dashboard-page .recents .panel-heading {
  padding: 0 8px;
}
.dashboard-page .recent-row {
  padding: 15px 12px;
  margin: 0 0 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 220ms ease;
}
.dashboard-page .date-tile {
  background: var(--surface-alt);
  border-radius: 12px;
  transition:
    background-color 220ms ease,
    color 180ms ease;
}
.dashboard-page .date-tile small,
.dashboard-page .recent-row > svg {
  transition:
    color 180ms ease,
    transform 360ms var(--ease-response);
}
.dashboard-page .recent-row:focus-visible {
  border-color: var(--blue);
}
.dashboard-page .recent-row:focus-visible .date-tile {
  background: var(--action);
  color: #fff;
}
.dashboard-page .recent-row:focus-visible .date-tile small {
  color: #fff;
}
.dashboard-page .calendar-day:not(:disabled):is(:focus-visible, :active) {
  background: var(--action);
  color: #fff;
}
.dashboard-page .calendar-day:not(:disabled):is(:focus-visible, :active) .day-dot {
  background: #fff;
}
.dashboard-page .calendar-day:active {
  transform: scale(0.93);
}
@media (hover: hover) and (pointer: fine) {
  .dashboard-page .recent-row:hover {
    border-color: var(--blue);
  }
  .dashboard-page .recent-row:hover .date-tile,
  .dashboard-page .calendar-day:not(:disabled):hover {
    background: var(--action);
    color: #fff;
  }
  .dashboard-page .recent-row:hover .date-tile small {
    color: #fff;
  }
  .dashboard-page .calendar-day:not(:disabled):hover .day-dot {
    background: #fff;
  }
  .dashboard-page .recent-row:hover > svg {
    color: var(--blue);
    transform: translateX(3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-page .metrics > .metric,
  .dashboard-page .metric .tile-icon,
  .dashboard-page .metric .metric-arrow,
  .dashboard-page .recent-row > svg,
  .dashboard-page .calendar-day {
    transform: none !important;
  }
}
@container brief (max-width: 620px) {
  .dashboard-page .brief-panel .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.dashboard-page .brief-panel .metric {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'label' 'value' 'caption';
  row-gap: 5px;
}
.dashboard-page .brief-panel .metric-sub {
  max-width: none;
  text-align: left;
  justify-content: space-between;
}
@media (max-width: 1100px) and (min-width: 761px) {
  .dashboard-page .dashboard-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
    gap: 16px;
  }
  .dashboard-page .panel {
    padding: 19px;
  }
  .dashboard-page .metrics > .metric {
    padding: 12px 9px;
  }
}
@media (max-width: 760px) {
  .dashboard-page .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .dashboard-page .panel {
    padding: 18px;
    border-radius: 20px;
  }
  .dashboard-page .metrics > .metric {
    min-height: 110px;
    padding: 13px;
  }
  .dashboard-page .metric > strong {
    font-size: 32px;
  }
  .dashboard-page .metric-name {
    min-height: 0;
  }
  .dashboard-page .activity-panel {
    min-height: 320px;
  }
  .dashboard-page .brief-panel {
    order: 0;
  }
  .dashboard-page .activity-panel {
    order: 1;
  }
  .dashboard-page .operation-calendar {
    order: 2;
  }
  .dashboard-page .gesture-distribution {
    order: 3;
  }
  .dashboard-page .next-panel {
    order: 4;
  }
  .dashboard-page .recents {
    order: 5;
  }
  .dashboard-page .brief-panel .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-page .activity-panel .chart-summary {
    margin: 0 0 20px;
  }
  .trends-readout {
    gap: 10px 12px;
  }
  .trends-month {
    flex-basis: 100%;
  }
  .trends-legend {
    flex: 1;
    margin-left: 0;
    gap: 6px 12px;
  }
  .trend-key {
    font-size: 11px;
    gap: 5px;
  }
  .dashboard-page .bar-chart {
    height: 205px;
  }
  .dashboard-page .recents {
    padding: 4px 0;
  }
}
.gesture-distribution {
  min-width: 0;
  --gesture-colour: var(--blue);
}
@media (min-width: 761px) and (max-width: 1000px) {
  .app-shell[data-sidebar='expanded'] .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-shell[data-sidebar='expanded'] .dashboard-lane {
    grid-column: 1;
  }
}
.gesture-distribution .panel-heading {
  margin-bottom: 12px;
  gap: 12px;
}
.gesture-distribution .panel-heading h2 {
  font-size: 20px;
  line-height: 1.3;
}
.gesture-distribution .panel-heading > svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.gesture-donut {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1;
  margin: 4px auto 10px;
}
.gesture-donut-chart {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: gesture-donut-enter 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.gesture-donut-track {
  stroke: var(--surface-alt);
}
.gesture-donut-segment {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  outline: none;
  transition:
    opacity 180ms ease,
    stroke-width 180ms ease,
    filter 180ms ease;
}
.gesture-distribution.has-selection .gesture-donut-segment:not(.is-selected) {
  opacity: 0.28;
}
.gesture-donut-segment.is-selected {
  stroke-width: 20;
}
.gesture-donut-segment:focus-visible {
  stroke-width: 20;
  filter: drop-shadow(0 0 2px var(--text));
}
.gesture-donut-center {
  position: absolute;
  inset: 28%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.gesture-donut-center strong {
  font-size: clamp(36px, 3vw, 44px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.gesture-donut-center span {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.gesture-donut-detail {
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 84px;
  height: auto;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 0 2px;
  text-align: left;
  background: transparent;
}
.gesture-donut-detail:hover,
.gesture-donut-detail:focus-visible {
  background: transparent;
}
.gesture-donut-detail:hover .gesture-detail-copy strong,
.gesture-donut-detail:focus-visible .gesture-detail-copy strong {
  color: var(--blue);
}
.gesture-detail-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--muted);
  transition: background 180ms ease;
}
.has-selection .gesture-detail-dot {
  background: var(--gesture-colour);
}
.gesture-detail-copy {
  flex: 1;
  min-width: 0;
}
.gesture-detail-copy strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.4;
  overflow-wrap: anywhere;
  transition: color 160ms ease;
}
.gesture-detail-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.gesture-donut-detail > svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
  flex-shrink: 0;
}
@keyframes gesture-donut-enter {
  from {
    opacity: 0;
    transform: rotate(-12deg) scale(0.94);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gesture-donut-chart {
    animation: none;
  }
  .gesture-donut-segment,
  .gesture-donut-detail,
  .gesture-detail-dot,
  .gesture-detail-copy strong {
    transition: none;
  }
}
.dashboard-grid .next-panel {
  background: var(--surface);
  border: 1px solid var(--line);
}
.next-panel .pending-row {
  background: transparent;
}
.pending-procedure {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  margin-top: 4px;
  color: var(--text);
  font-weight: 400;
}
.pending-extra {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 280ms ease,
    opacity 220ms ease;
}
.pending-extra.expanded {
  grid-template-rows: 1fr;
  opacity: 1;
}
.pending-extra > div {
  min-height: 0;
  overflow: hidden;
}
.next-panel .pending-toggle {
  width: 100%;
  margin: 8px 0 0;
}
.pending-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pending-actions .icon-button {
  background: transparent;
  border: 0;
  color: var(--muted);
}
.pending-actions .icon-button:hover {
  background: var(--surface-alt);
  color: var(--blue);
}
.calendar-controls {
  display: flex;
  gap: 6px;
}
.calendar-controls .icon-button {
  width: 32px;
  height: 32px;
}
.operation-calendar .panel-heading h2 {
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.02em;
  text-transform: capitalize;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.weekday {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding-bottom: 9px;
}
.calendar-day {
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 40px;
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
  transition:
    background 150ms,
    transform 150ms;
}
.calendar-day:disabled {
  color: var(--muted);
  opacity: 1;
  cursor: default;
}
.calendar-day:not(:disabled):hover {
  background: var(--blue-bg);
}
.calendar-day.today {
  box-shadow: inset 0 0 0 1px var(--blue);
  color: var(--blue);
}
.day-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  opacity: 1;
  margin: 0;
}
.day-dot.has-activity,
.calendar-key i {
  background: var(--blue);
}
.calendar-key {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.calendar-key i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  opacity: 1;
  margin: 0;
}
@media (pointer: coarse) {
  .calendar-controls .icon-button {
    width: 44px;
    height: 44px;
  }
  .calendar-day {
    min-height: 44px;
  }
  .calendar-grid {
    gap: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pending-extra,
  .calendar-day {
    transition: none;
  }
}
