.cal-permissions-card[data-columns='1'] .cal-permissions-row { grid-template-columns: minmax(110px, 1.05fr) minmax(110px, 2fr) minmax(102px, .95fr); }
@media (max-width: 650px) { .cal-permissions-card[data-columns='1'] .cal-permissions-row { grid-template-columns: minmax(82px, .85fr) minmax(90px, 2fr) minmax(86px, .9fr); } }
.ca-analytics { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; color: #263143; background: #fff; font: 14px/1.4 'PT Sans', Arial, sans-serif; }
.ca-analytics *, .ca-analytics *::before, .ca-analytics *::after { box-sizing: border-box; }
.ca-analytics [hidden] { display: none !important; }
.ca-header { min-height: 65px; padding: 12px 24px; display: flex; align-items: center; gap: 22px; border-bottom: 1px solid #e1e5e9; flex-shrink: 0; }
.ca-back { border: 0; padding: 0; font-weight: 400; }
.ca-refresh { margin-left: auto; }
.ca-scroll { overflow: auto; min-height: 0; flex: 1; padding: 18px 24px 12px; }
.ca-filters { display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; }
.ca-date-row, .ca-period, .ca-presets, .ca-filter-fields, .ca-filter-actions { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.ca-date-row { gap: 14px; }
.ca-period { flex-wrap: nowrap; }
.ca-presets { gap: 4px; }
.ca-preset { border-color: transparent; padding: 0 8px; font-weight: 400; }
.ca-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; width: 180px; }
.ca-period .ca-field { width: 145px; }
.ca-label { color: #657080; font-size: 13px; }
.ca-filter-fields .ca-field { flex: 1 1 170px; max-width: 270px; }
.ca-analytics .cal-input { width: 100%; height: 36px; border-color: #dbdedf; color: #313942; background: #fff; padding: 8px 9px 7px; font: 15px/20px 'PT Sans', Arial, sans-serif; box-shadow: none; }
.ca-analytics .cdt-field > input:not([hidden]) { padding-right: 32px; }
.cal-app .ca-analytics .cdt-popover button:focus-visible { outline: none; box-shadow: none; }
.ca-analytics .ca-action { height: 36px; padding: 10px; border-color: #dbdedf; background: #fcfcfc; color: #2e3640; font: 700 14px/14px 'PT Sans', Arial, sans-serif; box-shadow: none; }
.ca-analytics .ca-action:where(:not(:disabled)):is(:hover, :active) { border-color: #dbdedf; background: #fcfcfc; box-shadow: none; }
.ca-analytics .ca-action.cal-primary { border-color: #4077d6; background: #4c8bf7; color: #fff; }
.ca-analytics .ca-action.cal-primary:where(:not(:disabled)):is(:hover, :active) { border-color: #4077d6; background: #4d85e6; box-shadow: none; }
.ca-analytics .ca-action:disabled { border-color: #dbdedf; background: #fcfcfc; color: #2e3640; opacity: .6; }
.ca-analytics .cal-single { width: 100%; min-width: 0; }
.ca-kind { margin-top: 14px; }
.ca-kind .ca-field { width: 190px; }
.ca-tabs { display: flex; gap: 24px; border-bottom: 1px solid #d9dfe5; }
.ca-tab { height: 44px; border: 0; border-radius: 0; padding: 0 2px; font-size: 16px; font-weight: 400; color: #74808e; }
.ca-tab[aria-selected=true] { color: #263143; font-weight: 700; }
.ca-content { min-width: 0; }
.ca-content h2, .ca-details h2 { font-size: 17px; line-height: 1.3; font-weight: 400; margin: 22px 0 12px; }
.ca-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 18px; }
.ca-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 14px; border: 1px solid #dbe0e5; border-radius: 3px; background: #fff; text-align: left; }
.ca-card-action { height: auto; white-space: normal; font-weight: 400; justify-content: flex-start; }
.ca-card-label { color: #657080; font-size: 13px; }
.ca-card-value { align-self: stretch; text-align: center; font-size: 25px; line-height: 1.2; font-weight: 400; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ca-table-wrap { max-width: 100%; overflow: auto; border: 1px solid #e1e5e9; border-radius: 3px; }
.ca-table { width: 100%; border-collapse: collapse; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ca-table th, .ca-table td { padding: 11px 14px; border-bottom: 1px solid #e5e8eb; vertical-align: middle; }
.ca-table thead th { background: #f7f8fa; color: #657080; font-size: 12px; font-weight: 400; white-space: normal; min-width: 88px; max-width: 160px; text-align: right; }
.ca-table th:first-child { text-align: left; min-width: 155px; }
.ca-table tbody tr:last-child th, .ca-table tbody tr:last-child td { border-bottom: 0; }
.ca-table tbody tr:hover { background: #f5f5f5; }
.ca-table tbody th { font-weight: 400; }
.ca-person { padding: 0; height: auto; border: 0; background: transparent; font-weight: 400; color: #427dc9; text-align: left; }
.ca-person:hover { border-color: transparent; background: transparent; color: #2e66ad; }
.ca-person-meta { display: block; margin-top: 3px; color: #8b95a3; font-size: 12px; }
.ca-note { font-size: 12px; color: #84909c; line-height: 1.5; margin: 10px 0; }
.ca-error { color: #b33a3a; margin: 4px 0; font-size: 13px; }
.ca-empty { color: #84909c; padding: 24px 0; margin: 0; }
.ca-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; font-size: 12px; color: #657080; }
.ca-legend > span { display: inline-flex; gap: 5px; align-items: center; }
.ca-legend i { width: 8px; height: 8px; border-radius: 1px; }
.ca-trend { display: flex; align-items: flex-end; width: 100%; gap: 6px; overflow-x: auto; padding: 6px 0 10px; }
.ca-trend-day { display: flex; flex-direction: column; align-items: center; flex: 1 0 28px; min-width: 28px; border: 0; border-radius: 0; padding: 0; height: auto; gap: 4px; font-weight: 400; }
.ca-trend-count { font-size: 11px; color: #657080; }
.ca-trend-date { font-size: 10px; color: #8b95a3; }
.ca-trend-bar { width: min(100%, 28px); height: 96px; display: flex; flex-direction: column; justify-content: flex-end; border-bottom: 1px solid #e0e5ea; }
.ca-segment { display: block; width: 100%; }
.ca-segment-completed { background: #6c9e79; }
.ca-segment-cancelled { background: #cf8585; }
.ca-segment-rescheduled { background: #d4ae6a; }
.ca-segment-pending { background: #90a4bb; }
.ca-segment-other { background: #dce3eb; }
.ca-details { border-top: 1px solid #dce2e8; margin-top: 22px; padding-top: 16px; }
.ca-detail-heading { display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.ca-detail-heading h2 { margin: 0; }
.ca-detail-filter { display: flex; align-items: flex-end; gap: 16px; margin: 14px 0; flex-wrap: wrap; }
.ca-details > .cal-button { margin-top: 12px; }
.ca-multi { position: relative; width: 100%; min-width: 0; }
.ca-multi .cal-multi-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-multi-dropdown { z-index: 30; width: max(100%, 230px); max-width: min(350px, calc(100vw - 48px)); }
.ca-check-row span { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .ca-header { padding: 12px 14px; gap: 12px; flex-wrap: wrap; }
  .ca-back { font-size: 13px; }
  .ca-refresh { padding: 0 10px; }
  .ca-scroll { padding: 14px; }
  .ca-filter-fields .ca-field { flex-basis: calc(50% - 5px); max-width: none; }
  .ca-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ca-card { padding: 12px; }
  .ca-card-value { font-size: 22px; }
  .ca-period { width: 100%; }
  .ca-period .ca-field { flex: 1; width: auto; }
  .ca-presets { flex-wrap: wrap; }
  .ca-preset { padding: 0 6px; font-size: 13px; }
  .ca-multi-dropdown { max-width: calc(100vw - 28px); }
}
.ca-analytics-open { min-width: 0; }
