/* v0.8.4.14.1 fine-point live QA cleanup */
.reports-export-card {
  padding-top: 9px;
  padding-bottom: 9px;
}
.reports-export-card h2 {
  margin: 0 0 .12rem;
  line-height: 1.05;
}
.reports-export-card p.small {
  margin: 0 0 .25rem;
  line-height: 1.08;
}
.compact-report-export-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(28px, auto);
  gap: .18rem .35rem;
  align-items: stretch;
}
.compact-report-export-row .button {
  width: 100%;
  min-height: 28px;
  padding: .22rem .42rem;
  line-height: 1.08;
  font-size: .84rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.reports-range-card .small {
  margin-top: .28rem;
  line-height: 1.12;
}
@media (max-width: 620px) {
  .compact-report-export-row {
    grid-template-columns: 1fr;
  }
}

/* v0.8.4.14.51 docs catalog picker and danger button readability */
.docs-course-library-table th:nth-child(3),
.docs-course-library-table td:nth-child(3) {
  width: 25%;
  max-width: 340px;
}
.docs-course-library-table {
  table-layout: fixed;
}
.docs-course-library-table th:nth-child(1),
.docs-course-library-table td:nth-child(1) {
  width: 20%;
}
.docs-course-library-table th:nth-child(2),
.docs-course-library-table td:nth-child(2) {
  width: 18%;
}
.docs-course-library-table th:nth-child(4),
.docs-course-library-table td:nth-child(4) {
  width: 8%;
}
.docs-course-library-table th:nth-child(5),
.docs-course-library-table td:nth-child(5) {
  width: 10%;
}
.docs-course-library-table th:nth-child(6),
.docs-course-library-table td:nth-child(6) {
  width: 9%;
  overflow-wrap: anywhere;
}
.docs-course-library-table th:nth-child(7),
.docs-course-library-table td:nth-child(7) {
  width: 10%;
}
.docs-course-library-table td {
  vertical-align: top;
}
.course-product-upload-field,
.course-product-upload-field .course-product-picker {
  min-width: 0;
}
.form-label,
.course-product-scope-label {
  display: block;
  margin-bottom: .25rem;
  color: #516170;
  font-size: .82rem;
  font-weight: 700;
}
.course-product-picker {
  display: grid;
  gap: .4rem;
  min-width: 0;
  padding: .48rem;
  border: 1px solid #dfe7ef;
  border-radius: 10px;
  background: #fbfdff;
}
.course-product-picker .course-product-search {
  width: 100%;
  min-width: 0;
  padding: .42rem .5rem;
}
.course-product-all {
  align-items: center;
  margin: 0;
}
.course-product-list {
  display: grid;
  gap: .18rem;
  max-height: 150px;
  overflow: auto;
  padding-right: .15rem;
}
.course-product-list.is-disabled {
  opacity: 1;
}
.course-product-option {
  display: flex;
  align-items: flex-start;
  gap: .35rem;
  margin: 0;
  padding: .18rem .12rem;
  border-radius: 7px;
  color: #152f45;
  font-size: .86rem;
  line-height: 1.25;
}
.course-product-option[hidden] {
  display: none !important;
}
.course-product-option:hover {
  background: rgba(0, 122, 255, .08);
}
.course-product-option input,
.course-product-all input {
  width: auto;
  min-width: 0;
  margin-top: .12rem;
}
.course-product-picker-shell {
  min-width: 0;
  position: relative;
}
.course-product-picker-shell[open] {
  z-index: 220;
}
.course-product-picker-shell > summary {
  display: block;
  cursor: pointer;
  padding: .44rem .55rem;
  border: 1px solid #dfe7ef;
  border-radius: 9px;
  background: #fff;
  color: #15324a;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.course-product-picker-shell[open] > summary {
  border-radius: 9px;
  position: relative;
  z-index: 81;
}
.course-product-picker-compact {
  box-shadow: 0 18px 45px rgba(15, 35, 54, .18);
  left: 0;
  min-width: min(420px, 82vw);
  position: absolute;
  top: calc(100% + 6px);
  width: max(100%, 320px);
  z-index: 221;
  padding: .4rem;
}
.course-product-picker-floating {
  max-width: calc(100vw - 24px);
  position: fixed !important;
  z-index: 10000 !important;
}
.course-product-picker-compact .course-product-list {
  max-height: 220px;
}
.course-document-upload-grid,
.docs-course-library-table td {
  overflow: visible;
}
.docs-course-library-card,
.docs-course-library-card.course-product-picker-open,
.docs-course-library-card .smart-table-scroll.course-product-picker-open {
  overflow: visible;
}
.docs-course-library-card.course-product-picker-open {
  position: relative;
  z-index: 30;
}
.docs-course-library-card .smart-table-scroll.course-product-picker-open {
  position: relative;
  z-index: 40;
}
.docs-course-library-table tr.course-product-picker-row-open {
  position: relative;
  z-index: 45;
}
.course-document-upload-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: .6rem .6rem;
  align-items: end;
}
.course-document-upload-grid > label {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
  margin: 0;
}
.course-document-upload-grid > label:nth-of-type(1),
.course-document-upload-grid > label:nth-of-type(2),
.course-document-upload-grid > label:nth-of-type(3),
.course-document-upload-grid > label:nth-of-type(4),
.course-document-upload-grid .course-product-upload-field {
  align-self: end;
}
.course-document-upload-grid > label:nth-of-type(1) {
  grid-column: 1 / 5;
  grid-row: 1;
}
.course-document-upload-grid > label:nth-of-type(2) {
  grid-column: 5 / 7;
  grid-row: 1;
}
.course-document-upload-grid > label:nth-of-type(3) {
  grid-column: 7 / 10;
  grid-row: 1;
}
.course-document-upload-grid > label:nth-of-type(4) {
  grid-column: 10 / 13;
  grid-row: 1;
}
.course-document-upload-grid .course-product-upload-field {
  grid-column: 1 / 7;
  grid-row: 2;
}
.course-document-upload-grid .course-document-active-check {
  min-height: var(--sd-control-height);
  white-space: nowrap;
}
.course-document-upload-grid .course-document-active-check:nth-of-type(5) {
  grid-column: 7 / 9;
  grid-row: 2;
}
.course-document-upload-grid .course-document-active-check:nth-of-type(6) {
  grid-column: 9 / 13;
  grid-row: 2;
}
.course-document-upload-grid input:not([type="checkbox"]),
.course-document-upload-grid select,
.course-document-upload-grid .course-product-picker-shell > summary {
  min-height: var(--sd-control-height);
  height: var(--sd-control-height);
  box-sizing: border-box;
  width: 100%;
}
.course-document-upload-grid select {
  padding-top: .45rem;
  padding-bottom: .45rem;
}
.course-document-upload-grid .course-product-picker-shell > summary {
  display: flex;
  align-items: center;
}
.course-document-upload-grid input[type="file"] {
  width: 100%;
  min-width: 0;
  font-size: .82rem;
  padding-left: .45rem;
  padding-right: .45rem;
}
.docs-course-actions-cell,
.docs-all-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  align-items: center;
}
.docs-course-actions-cell .small-btn,
.docs-course-library-table .small-btn,
.docs-all-actions-cell .small-btn {
  min-height: 38px;
  padding: .48rem .78rem;
  border-radius: 999px;
  font-weight: 800;
}
.docs-course-actions-cell .small-btn,
.docs-all-actions-cell .small-btn {
  min-width: 78px;
  width: 78px;
  justify-content: center;
  text-align: center;
}
.docs-course-actions-cell .inline-actions {
  display: flex;
  margin-left: 0;
}
.docs-single-check {
  align-items: center;
  display: inline-flex;
  gap: .35rem;
  margin: 0;
  white-space: nowrap;
}
.docs-single-check input {
  margin: 0;
  min-width: 0;
  width: auto;
}
.docs-expiration-note {
  margin: -.35rem 0 1rem;
}
.docs-uploaded-pdf-action {
  margin-top: .38rem;
}
.docs-title-pdf-action {
  margin-top: .42rem;
  width: fit-content;
}
.docs-review-card button.danger,
.docs-course-library-card button.danger,
.docs-all-card button.danger {
  background: #b42318 !important;
  border-color: #b42318 !important;
  color: #fff !important;
}

.schedule-control-card {
  margin: 1rem 0 1.25rem;
  border: 1px solid #e1e7ef;
  box-shadow: 0 2px 8px #00000012;
  overflow: visible;
}
.schedule-stat-grid {
  margin-bottom: 1.85rem;
}
.schedule-control-card .card-title-row {
  border-bottom: 1px solid #edf1f5;
  padding-bottom: .75rem;
  margin-bottom: .85rem;
  align-items: center;
}
.schedule-control-card h2,
.schedule-control-card h3 {
  color: #072235;
}
.schedule-control-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.08fr) minmax(250px, .96fr) minmax(220px, .78fr);
  gap: .8rem;
  align-items: stretch;
}
.schedule-control-block {
  border: 1px solid #edf1f5;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  padding: .85rem;
}
.schedule-control-label {
  display: block;
  margin-bottom: .35rem;
  color: #64748b;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.schedule-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 95, 143, .22);
  border-radius: 999px;
  background: #e8f3fb;
  color: #0b4b73;
  font-size: .86rem;
  font-weight: 900;
  padding: .42rem .72rem;
  white-space: nowrap;
}
.schedule-month-block h3 {
  margin-top: 0;
}
.schedule-current-month {
  margin-bottom: .65rem;
}
.schedule-month-picker {
  margin-top: .65rem;
}
.schedule-month-picker > summary {
  cursor: pointer;
  font-weight: 800;
  color: #1f5f7c;
}
.schedule-month-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .35rem;
  margin-top: .55rem;
}
.schedule-month-link {
  display: block;
  text-align: center;
  text-decoration: none;
  border: 1px solid #d6e2ed;
  border-radius: 10px;
  padding: .4rem .25rem;
  background: #fff;
  color: #123b66;
  font-weight: 800;
}
.schedule-month-link.active {
  color: #fff;
  background: var(--accent, #0f5f8f);
  border-color: var(--accent, #0f5f8f);
}
.schedule-export-actions {
  display: grid;
  gap: .45rem;
  align-content: start;
}
.schedule-export-actions .btn,
.schedule-control-card button.btn,
.schedule-control-card .schedule-filter-row button {
  color: #fff !important;
}
.schedule-control-card .btn.is-disabled,
.schedule-control-card button:disabled {
  cursor: not-allowed;
  opacity: .62;
}
.schedule-filter-row.schedule-control-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
  align-items: end;
}
.schedule-filter-row.schedule-control-block label,
.schedule-filter-row.schedule-control-block input,
.schedule-filter-row.schedule-control-block select,
.schedule-filter-row.schedule-control-block button {
  width: 100%;
  box-sizing: border-box;
}
.schedule-calendar-card {
  margin-top: 0;
}
.schedule-calendar-grid .calendar-cell.outside-month {
  background: #f1f5f9;
}
.schedule-calendar-grid .calendar-cell.outside-month.has-events {
  background: #eef4f8;
}
.schedule-calendar-grid .calendar-cell.outside-month .calendar-day {
  color: #94a3b8;
}
.schedule-calendar-grid .calendar-cell.outside-month .calendar-event {
  opacity: .96;
}
@media (max-width: 1050px) {
  .schedule-control-grid {
    grid-template-columns: 1fr;
  }
  .schedule-month-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .schedule-controls-title-row {
    align-items: flex-start;
  }
  .schedule-count-pill {
    white-space: normal;
  }
  .schedule-month-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* v0.8.4.14.2 Docs workspace expansion */
.docs-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.docs-hero h1 {
  color: #102b3c;
  margin-bottom: 8px;
}
.docs-summary-grid {
  margin-bottom: 16px;
}
.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.card-title-row h2 {
  margin-top: 0;
}
.docs-all-card table td,
.docs-review-card table td {
  vertical-align: top;
}

/* v0.8.4.14.4 minor point-revision polish */
.reports-range-form {
  display: grid;
  grid-template-columns: minmax(112px, .8fr) repeat(2, minmax(132px, .85fr)) auto;
  gap: .45rem .55rem;
  align-items: end;
}
.reports-range-form label {
  display: grid;
  gap: .2rem;
}
.reports-range-form select[name="range"],
.reports-range-form input[type="date"] {
  width: 100%;
  min-width: 0;
}
.reports-range-form button {
  min-height: 38px;
}
.docs-association,
.docs-file-name {
  display: inline-block;
  max-width: 260px;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.docs-all-card .status-pill,
.docs-review-card .status-pill {
  white-space: nowrap;
}
@media (max-width: 860px) {
  .catalog-setup-strip {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .reports-range-form {
    grid-template-columns: 1fr;
  }
  .reports-range-form button {
    width: 100%;
  }
}

/* v0.8.4.14.5 consolidated admin UI pass */
:root {
  --ui-radius: 8px;
  --ui-border: #d9e2ec;
  --ui-panel: #f8fafc;
  --ui-panel-strong: #eef4f8;
  --ui-text: #1f2937;
  --ui-muted: #64748b;
  --ui-primary: var(--accent, #0f5f8f);
  --ui-primary-dark: #0b4b73;
  --ui-danger: #9b111e;
}

main > h1,
.page-title-row h1,
.page-hero h1,
.catalog-hero h1,
.schedule-page-hero h1 {
  color: #102b3c;
}
.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(148,163,184,.24);
}
.page-title-row h1 {
  margin: 0 0 .2rem;
}
.page-title-row p {
  margin: 0;
}

.card,
.metric,
.stat,
.settings-add-panel,
.settings-inline-row,
.settings-section-heading,
.settings-section-head,
.schedule-control-block,
.schedule-form-section,
.catalog-edit-section,
.muted-box,
.compact-note-box {
  border-radius: var(--ui-radius);
}
.card,
.metric,
.stat {
  border: 1px solid rgba(148,163,184,.24);
  box-shadow: 0 1px 4px rgba(15,23,42,.08);
}
.card-title-row,
.settings-section-heading,
.settings-section-head {
  align-items: flex-start;
}
.card-title-row h2,
.settings-section-heading h2,
.settings-section-head h2 {
  margin-bottom: .18rem;
}

button,
.btn,
.button,
.small-btn,
.settings-add-panel > summary,
.polished-details > summary {
  border-radius: var(--ui-radius);
  font-weight: 800;
  line-height: 1.15;
  min-height: 38px;
  box-sizing: border-box;
}
button,
.btn,
.button {
  background: var(--ui-primary);
  border: 1px solid var(--ui-primary);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  text-align: center;
}
button:hover,
.btn:hover,
.button:hover {
  background: var(--ui-primary-dark);
  border-color: var(--ui-primary-dark);
}
.btn.secondary,
.button.secondary,
button.secondary {
  background: #475569;
  border-color: #475569;
  color: #fff !important;
}
button.danger,
.btn.danger,
.button.danger,
.danger {
  background: var(--ui-danger) !important;
  border-color: var(--ui-danger) !important;
  color: #fff !important;
}
button.small,
.small-btn,
.mini,
.nav-sort-buttons button {
  min-height: 32px;
  padding: .35rem .6rem;
  font-size: .84rem;
}

input,
select,
textarea {
  border-color: #b8c4d1;
  border-radius: var(--ui-radius);
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
.btn:focus-visible,
.button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(15,95,143,.18);
  outline-offset: 2px;
}
label {
  color: var(--ui-text);
  font-weight: 700;
}
label input,
label select,
label textarea {
  font-weight: 400;
}
label.check,
.settings-inline-check,
.catalog-checkline {
  font-weight: 700;
}

.table-tools,
.dashboard-range-form,
.reports-range-form,
.schedule-filter-row.schedule-control-block,
.settings-inline-actions,
.settings-row-actions,
.catalog-footer-actions {
  gap: .55rem;
}
table.smart th,
table.smart td {
  vertical-align: top;
}
table.smart th {
  color: #475569;
  font-size: 12px;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.app-drawer-card,
.add-client-card,
.schedule-create-card,
.catalog-add-card,
.docs-review-card,
.docs-all-card,
.reports-range-card,
.reports-export-card {
  border-color: var(--ui-border);
}
.inline-actions {
  align-items: stretch;
}
.inline-actions button,
.inline-actions .btn {
  min-height: 34px;
}

.catalog-workspace .catalog-console-hero,
.docs-hero {
  border-radius: var(--ui-radius);
  border-color: var(--ui-border);
  background: #fff;
  box-shadow: 0 1px 4px rgba(15,23,42,.08);
}
.schedule-control-card,
.schedule-calendar-card,
.schedule-create-card,
.schedule-list-card,
.catalog-list-card,
.settings-section {
  border-color: var(--ui-border);
}
.schedule-day-row {
  border: 1px solid rgba(148,163,184,.22);
  border-radius: var(--ui-radius);
  padding: .5rem;
  background: #fff;
}
.schedule-day-row.has-remove {
  grid-template-columns: 58px minmax(130px, 1fr) 95px 95px auto;
}
.schedule-day-row .label {
  color: var(--ui-muted);
}
.schedule-remove-day {
  min-height: 34px;
  padding: .38rem .62rem;
}
.schedule-remove-day[hidden] {
  display: none !important;
}

.catalog-setup-strip a,
.settings-subcard,
.settings-add-panel,
.settings-inline-row {
  border-radius: var(--ui-radius);
  border-color: rgba(148,163,184,.24);
}
.catalog-setup-strip a {
  box-shadow: none;
}
.catalog-edit-section,
.settings-subcard {
  background: var(--ui-panel);
}
.catalog-tax-panel.compact {
  background: #fff;
  border-color: rgba(148,163,184,.24);
}
.polished-details > summary,
.summary-action {
  border-radius: var(--ui-radius);
}
.catalog-edit-details[open] .catalog-edit-form {
  border-radius: var(--ui-radius);
}

.settings-section {
  box-shadow: 0 1px 4px rgba(15,23,42,.08);
}
.settings-subcard.card {
  box-shadow: none;
  background: var(--ui-panel);
}
.settings-subcard h3::before {
  display: none;
}
.settings-subcard h3 {
  padding-bottom: .45rem;
  border-bottom: 1px solid rgba(148,163,184,.2);
}
.settings-add-panel {
  overflow: hidden;
  background: #fff;
}
.settings-add-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem .9rem;
  background: var(--ui-panel);
  color: var(--ui-primary);
}
.settings-add-panel > summary::after {
  content: "Open";
  color: #fff;
  background: var(--ui-primary);
  border-radius: 999px;
  min-width: 52px;
  text-align: center;
  padding: .3rem .62rem;
  font-size: .78rem;
}
.settings-add-panel[open] > summary::after {
  content: "Close";
  background: #475569;
}
.settings-inline-row {
  background: #fff;
}
.settings-category-table .settings-inline-header {
  display: none;
}
.settings-category-table .settings-inline-row {
  grid-template-columns: minmax(190px, 1.2fr) 70px 92px minmax(150px, auto);
  align-items: end;
  gap: .45rem .55rem;
  padding: .55rem .65rem;
}
.settings-category-table .settings-category-tax-cell {
  grid-column: 1 / -1;
}
.settings-category-table .settings-inline-row > input[name="cat_name"] {
  font-weight: 800;
}
.settings-category-table .settings-category-tax-cell {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .35rem .65rem;
  padding: .42rem .55rem;
  border: 1px solid rgba(148,163,184,.2);
  border-radius: var(--ui-radius);
  background: rgba(248,250,252,.8);
}
.settings-category-table .settings-tax-checks {
  gap: .25rem .55rem;
}
.settings-category-table .settings-category-tax-cell .small {
  margin: 0;
  white-space: nowrap;
}
.settings-category-table .settings-row-actions {
  justify-content: flex-end;
}
.settings-agency-table .settings-inline-row textarea {
  min-height: 38px;
}
.settings-subcard-divider {
  border-top: 1px solid rgba(148,163,184,.22);
  margin-top: .9rem;
  padding-top: .9rem;
}
.settings-subcard-divider h3 {
  margin-top: 0;
}
.settings-embedded-section > h2 {
  color: #e8f3fb;
  text-shadow: 0 1px 10px rgba(0, 24, 40, .38);
}
.app-logo-preview-row {
  display: flex;
  justify-content: center;
  margin: .65rem 0 .85rem;
}
.settings-token-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
}
.settings-token-cloud span {
  border: 1px solid rgba(15,95,143,.22);
  border-radius: 999px;
  background: #e8f3fb;
  color: #0b4b73;
  font-size: .82rem;
  font-weight: 800;
  padding: .34rem .58rem;
}
.settings-inline-row input,
.settings-inline-row select,
.settings-inline-row textarea,
.settings-add-form input,
.settings-add-form select,
.settings-add-form textarea {
  min-height: 38px;
}
.settings-mini-stack {
  gap: .45rem;
}
.sortable-nav-settings li,
.selected-token {
  border-radius: var(--ui-radius);
}
.selected-token {
  background: var(--ui-panel);
}
.selected-token button {
  min-height: 24px;
  background: #475569;
  border-color: #475569;
}
.typeahead-results button {
  color: var(--ui-primary) !important;
  background: #fff;
  border-color: var(--ui-border);
}

@media (max-width: 760px) {
  .page-title-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .page-title-row .btn,
  .page-title-row button,
  .schedule-hero-actions .btn,
  .catalog-hero-actions .btn {
    width: 100%;
  }
  .schedule-day-row {
    grid-template-columns: 1fr;
  }
  .inline-actions button,
  .inline-actions .btn,
  .settings-row-actions button,
  .settings-inline-actions button,
  .catalog-footer-actions button {
    width: 100%;
  }
  .settings-category-table .settings-inline-row,
  .settings-category-table .settings-category-tax-cell {
    grid-template-columns: 1fr;
  }
  .settings-category-table .settings-row-actions {
    justify-content: stretch;
  }
  .settings-category-table .settings-category-tax-cell .small {
    white-space: normal;
  }
}

/* v0.8.4.14.12 docs page aligns with the shared title header pattern. */
.docs-title-row {
  margin-bottom: 1rem;
}
.docs-title-row h1 {
  color: var(--ui-primary);
}
.docs-course-library-card {
  margin-bottom: 1rem;
}
.docs-course-library-card .inline-actions {
  display: inline-flex;
  margin-left: .35rem;
}
.docs-course-library-card .inline-actions button {
  min-height: 32px;
  padding: .35rem .65rem;
}

/* v0.8.4.14.37 reports alignment and export contrast */
.reports-range-card .reports-range-form {
  margin-left: 0;
  padding-left: 0;
  justify-items: stretch;
}
.reports-range-card .reports-range-form label:first-of-type {
  margin-left: 0;
}
.reports-export-card .compact-report-export-row .button {
  background: #0b4b73;
  border-color: #083b5b;
  color: #fff !important;
}
.reports-export-card .compact-report-export-row .button:hover,
.reports-export-card .compact-report-export-row .button:focus {
  background: #083b5b;
  border-color: #062f49;
  color: #fff !important;
}
.reports-range-card .reports-range-form {
  width: 100%;
  justify-content: flex-start;
  justify-items: start;
  grid-template-columns: 136px 200px 200px auto;
}
.reports-range-card .reports-range-form label {
  width: 100%;
}
.reports-range-card .reports-range-form select[name="range"] {
  width: 136px;
  min-width: 136px;
}
.reports-range-card .small {
  margin-left: 0;
}

/* v0.8.4.14.42 reports tax and export card alignment */
.grid.two.reports-analysis-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  margin: 1rem 0;
}
.grid.two.reports-analysis-grid > .card {
  min-width: 0;
  margin-bottom: 0;
}
.reports-analysis-grid .tax-total-card {
  height: 100%;
}
.reports-analysis-grid .tax-total-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .55rem;
}
.reports-analysis-grid .tax-total-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.reports-analysis-grid .tax-total-heading h2 {
  margin: 0;
}
.reports-analysis-grid .tax-total-main {
  margin: 0;
  text-align: right;
}
.reports-analysis-grid .tax-total-breakdown {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .4rem;
}
.reports-analysis-grid .tax-total-breakdown:empty {
  display: none;
}
.reports-analysis-grid .tax-total-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .75rem;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}
.reports-analysis-grid .tax-total-line.tax-depth-1,
.reports-analysis-grid .tax-total-line.tax-depth-2,
.reports-analysis-grid .tax-total-line.tax-depth-3 {
  margin-left: 0;
}
.reports-analysis-grid .tax-total-line span {
  min-width: 0;
}
.reports-analysis-grid .tax-total-line em {
  display: block;
  margin-left: 0;
  white-space: normal;
}
.reports-analysis-grid .table-tools {
  align-items: center;
  gap: .45rem;
}
.reports-analysis-grid .table-tools-left {
  min-width: 0;
}
.reports-analysis-grid .table-pager {
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: flex-end;
  text-align: right;
}
.reports-analysis-grid .table-pager button {
  min-width: 64px;
  white-space: nowrap;
}
.reports-analysis-grid .table-page-prev {
  justify-self: auto;
}
.reports-analysis-grid .table-page-info {
  justify-self: auto;
  text-align: center;
}
.reports-analysis-grid .table-page-next {
  justify-self: auto;
}
.reports-export-card .compact-report-export-row .button {
  background: var(--sd-ios-blue, #007aff);
  border-color: var(--sd-ios-blue-hover, #006ee6);
  box-shadow: 0 1px 2px rgba(0, 122, 255, .18);
  color: #fff !important;
}
.reports-export-card .compact-report-export-row .button:hover,
.reports-export-card .compact-report-export-row .button:focus {
  background: var(--sd-ios-blue-hover, #006ee6);
  border-color: var(--sd-ios-blue-hover, #006ee6);
  color: #fff !important;
}
@media (max-width: 900px) {
  .grid.two.reports-analysis-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .reports-analysis-grid .tax-total-grid,
  .reports-analysis-grid .table-pager {
    grid-template-columns: 1fr;
  }
  .reports-analysis-grid .tax-total-heading {
    display: block;
  }
  .reports-analysis-grid .tax-total-main {
    margin-top: .2rem;
    text-align: left;
  }
  .reports-analysis-grid .table-page-prev,
  .reports-analysis-grid .table-page-info,
  .reports-analysis-grid .table-page-next {
    justify-self: stretch;
  }
}

/* v0.8.4.14.52 All Client Documents table compression */
.docs-all-table {
  table-layout: fixed;
}
.docs-all-table th:nth-child(1),
.docs-all-table td:nth-child(1) {
  width: 10%;
}
.docs-all-table th:nth-child(2),
.docs-all-table td:nth-child(2) {
  width: 18%;
}
.docs-all-table th:nth-child(3),
.docs-all-table td:nth-child(3) {
  width: 12%;
}
.docs-all-table th:nth-child(4),
.docs-all-table td:nth-child(4) {
  width: 10%;
}
.docs-all-table th:nth-child(5),
.docs-all-table td:nth-child(5) {
  width: 11%;
  max-width: 150px;
}
.docs-all-table th:nth-child(6),
.docs-all-table td:nth-child(6) {
  width: 17%;
}
.docs-all-table th:nth-child(7),
.docs-all-table td:nth-child(7) {
  width: 10%;
}
.docs-all-table th:nth-child(8),
.docs-all-table td:nth-child(8) {
  width: 12%;
}
.docs-all-table td:nth-child(5) label.small {
  display: grid;
  gap: .15rem;
  margin-bottom: .35rem;
  max-width: 138px;
}
.docs-all-table td:nth-child(5) input[type="date"] {
  width: 100%;
  min-width: 0;
  max-width: 148px;
  padding-left: .38rem;
  padding-right: .32rem;
}
.docs-review-card select[name="course_event_id"],
.docs-all-card select[name="course_event_id"] {
  min-height: 38px;
  height: 38px;
  line-height: 1.25;
}
@media (max-width: 680px) {
  .course-document-upload-grid {
    grid-template-columns: 1fr;
  }
  .course-document-upload-grid > label:nth-of-type(1),
  .course-document-upload-grid > label:nth-of-type(2),
  .course-document-upload-grid > label:nth-of-type(3),
  .course-document-upload-grid > label:nth-of-type(4),
  .course-document-upload-grid .course-product-upload-field,
  .course-document-upload-grid .course-document-active-check:nth-of-type(5),
  .course-document-upload-grid .course-document-active-check:nth-of-type(6) {
    grid-column: auto;
    grid-row: auto;
  }
}
.docs-all-table button.danger.small-btn,
.docs-all-card .docs-all-table button.danger.small-btn {
  background: #b42318 !important;
  border-color: #b42318 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

/* v0.8.4.14.53 Reports page alignment and export polish */
.grid.two.reports-analysis-grid {
  align-items: start !important;
}
.reports-analysis-grid > .card,
.reports-analysis-grid .tax-total-card,
.reports-analysis-grid .reports-tax-type-card {
  align-self: start;
  margin-top: 0;
}
.reports-analysis-grid .tax-total-card {
  height: auto !important;
}
.reports-analysis-grid > .card > h2,
.reports-analysis-grid .tax-total-heading h2 {
  margin-top: 0;
}
.reports-export-card .compact-report-export-row .button {
  border-radius: 999px;
  background: linear-gradient(180deg, #167fbe, #0a5f94);
  border-color: #084f7c;
  box-shadow: 0 8px 18px rgba(10, 95, 148, .20), inset 0 1px 0 rgba(255,255,255,.22);
  color: #fff !important;
  font-weight: 800;
}
.reports-export-card .compact-report-export-row .button:hover,
.reports-export-card .compact-report-export-row .button:focus {
  background: linear-gradient(180deg, #0f73ae, #084f7c);
  border-color: #073f63;
  color: #fff !important;
}

/* v0.8.4.14.101 Reports accounting/teaching view tabs */
.reports-view-tabs {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem;
  margin: .25rem 0 1rem;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}
.reports-view-tab {
  border-radius: 999px;
  color: #334155;
  font-size: .92rem;
  font-weight: 800;
  padding: .5rem .9rem;
  text-decoration: none;
  white-space: nowrap;
}
.reports-view-tab:hover,
.reports-view-tab:focus {
  background: rgba(14, 116, 144, .10);
  color: #0f4f6c;
}
.reports-view-tab.is-active {
  background: linear-gradient(180deg, #167fbe, #0a5f94);
  color: #fff;
  box-shadow: 0 8px 18px rgba(10, 95, 148, .18);
}
.teaching-analysis-grid > .card h2 {
  margin-top: 0;
}
.teaching-metrics-grid .metric span {
  color: #64748b;
}
.teaching-chart-grid {
  margin-top: 1rem;
}
.teaching-chart-card .simple-chart,
.teaching-chart-card .simple-pie {
  min-height: 230px;
}
.teaching-chart-card .report-bar-chart-inner {
  min-height: 210px;
}
.teaching-chart-card .bar-fill {
  background: linear-gradient(180deg, #167fbe, #0a5f94);
}
@media (max-width: 560px) {
  .reports-view-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    border-radius: 14px;
  }
  .reports-view-tab {
    text-align: center;
  }
}

/* v0.8.4.14.83 My Documents action buttons match All Client Documents */
.docs-course-library-table .docs-course-actions-cell {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: .55rem;
  align-items: center;
}
.docs-course-library-table .docs-course-actions-cell .inline-actions {
  display: flex;
  margin: 0;
  width: 78px;
}
.docs-course-library-table .docs-course-actions-cell .small-btn,
.docs-course-library-card .docs-course-actions-cell .inline-actions button.small-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  min-width: 78px;
  min-height: 38px;
  padding: .48rem .78rem;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}
.docs-course-actions-cell .ajax-form-status:empty,
.docs-all-actions-cell .ajax-form-status:empty {
  display: none;
}

/* v0.8.4.14.85 Course Schedule header and calendar toolbar consolidation */
.schedule-page-title-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  gap: 1rem;
}
.schedule-title-count-pill {
  justify-self: center;
  align-self: start;
  margin-top: .25rem;
}
.schedule-page-title-row .schedule-hero-actions {
  justify-self: end;
  justify-content: flex-end;
}
.schedule-page-title-row .schedule-hero-actions .btn,
.schedule-page-title-row .schedule-hero-actions button {
  white-space: nowrap;
}
.schedule-top-actions {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: .42rem;
  flex-wrap: wrap;
  margin: -.65rem 0 .95rem;
}
.schedule-action-buttons {
  display: inline-flex;
  justify-content: flex-end;
  align-items: end;
  gap: .42rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.schedule-top-actions .btn,
.schedule-top-actions button {
  min-height: 38px;
  padding: .5rem .72rem;
  font-size: .88rem;
  white-space: nowrap;
}
.schedule-run-class-beta {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
}
.schedule-run-class-beta span {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 .42rem;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  color: #fff;
  font-size: .68rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.schedule-summary-range-form {
  display: inline-flex;
  align-items: end;
  gap: .45rem;
  margin: 0;
}
.schedule-summary-range-form label {
  display: grid;
  gap: .18rem;
  color: #334155 !important;
  font-size: .78rem;
  font-weight: 800;
}
.schedule-summary-range-form select {
  width: 166px;
  min-height: 38px;
}
.schedule-create-panel {
  width: 100%;
  margin: 0 0 1rem;
}
.schedule-create-panel .schedule-form {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(300px, .82fr);
  gap: .85rem;
  align-items: start;
}
.schedule-create-panel .schedule-form > input[type="hidden"] {
  display: none;
}
.schedule-create-panel .schedule-form .schedule-form-section:first-of-type,
.schedule-create-panel .schedule-form > label,
.schedule-create-panel .schedule-form > .schedule-submit-row {
  grid-column: 1 / -1;
}
.schedule-create-panel .schedule-form-grid {
  grid-template-columns: minmax(340px, 2fr) minmax(210px, 1.1fr) minmax(190px, 1fr) 74px 132px;
  align-items: end;
}
.schedule-create-panel .schedule-form-grid label:first-child {
  grid-column: auto;
}
.schedule-create-panel input[name="title"] {
  min-width: 0;
  width: 100%;
}
.schedule-create-panel input[name="capacity"] {
  max-width: 64px;
}
.schedule-create-panel select[name="status"] {
  max-width: 132px;
}
.schedule-create-panel .schedule-form-section,
.schedule-create-panel .compact-note-box {
  height: 100%;
  margin: 0;
}
.schedule-create-panel .compact-note-box {
  align-self: stretch;
}
.schedule-create-panel .schedule-day-row {
  grid-template-columns: 46px 148px 118px 118px 74px;
}
.schedule-create-panel .schedule-day-row.has-remove {
  grid-template-columns: 46px 148px 118px 118px 74px;
}
.schedule-create-panel .schedule-day-row input[type="date"] {
  min-width: 0;
}
.schedule-create-panel .schedule-day-row input[type="time"] {
  min-width: 112px;
}
.schedule-create-panel .schedule-remove-day {
  justify-self: start;
  padding: .38rem .5rem;
  font-size: .75rem;
}
.schedule-create-panel .schedule-repeat-inline {
  display: flex;
  align-items: end;
  gap: .55rem;
  margin-top: .4rem;
}
.schedule-create-panel .schedule-repeat-inline span {
  flex: 1 1 auto;
}
.schedule-create-panel .schedule-repeat-inline input {
  width: 72px;
  flex: 0 0 72px;
}
.schedule-submit-row {
  display: flex;
  justify-content: flex-start;
}
.schedule-submit-row button {
  width: auto;
  min-width: 190px;
}
.schedule-create-panel[hidden] {
  display: none !important;
}
.schedule-create-panel.is-open {
  animation: schedule-panel-open .16s ease-out;
}
@keyframes schedule-panel-open {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.schedule-main-grid {
  display: block;
}
.schedule-display-stack {
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
}
.schedule-order-calendar_first .schedule-calendar-slot {
  order: 1;
}
.schedule-order-calendar_first .schedule-list-slot {
  order: 2;
}
.schedule-order-list_first .schedule-list-slot {
  order: 1;
}
.schedule-order-list_first .schedule-calendar-slot {
  order: 2;
}
.schedule-list-card {
  width: 100%;
}
.schedule-list-card .schedule-class-table {
  width: 100%;
}
.schedule-card-controls {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  flex: 0 0 auto;
}
.schedule-card-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.schedule-header-action {
  min-height: 34px;
  padding: .42rem .68rem;
  font-size: .84rem;
  white-space: nowrap;
}
.schedule-collapse-toggle,
.schedule-swap-toggle {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  padding: 0 !important;
  border-radius: 50% !important;
  background: var(--ui-primary, var(--accent, #0f5f8f));
  border: 1px solid var(--ui-primary, var(--accent, #0f5f8f));
  color: #fff !important;
  display: inline-grid !important;
  align-items: center;
  justify-content: center;
  place-items: center;
  font-size: 1.2rem;
  line-height: 0;
  font-weight: 900;
  flex: 0 0 34px !important;
  box-shadow: 0 8px 18px rgba(15,95,143,.18);
  overflow: hidden;
  white-space: nowrap;
}
.schedule-swap-toggle .sd-icon {
  width: 17px;
  height: 17px;
  display: block;
  margin: 0;
}
.schedule-collapse-toggle:hover,
.schedule-swap-toggle:hover {
  background: var(--ui-primary-dark, #0b4b73);
  border-color: var(--ui-primary-dark, #0b4b73);
}
.schedule-collapsible-body[hidden] {
  display: none !important;
}
.schedule-calendar-card.is-collapsed .card-title-row,
.schedule-list-card.is-collapsed .card-title-row {
  margin-bottom: 0;
}
.schedule-calendar-card .card-title-row {
  align-items: center;
  margin-bottom: .75rem;
}
.schedule-calendar-toolbar {
  display: grid;
  grid-template-columns: auto auto minmax(360px, 1fr);
  align-items: end;
  gap: .65rem;
  padding: .72rem;
  margin: 0 0 .85rem;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.92));
}
.schedule-calendar-toolbar .schedule-month-actions {
  display: inline-flex;
  gap: .45rem;
  margin: 0;
}
.schedule-calendar-toolbar .schedule-month-picker {
  position: relative;
  margin: 0;
}
.schedule-calendar-toolbar .schedule-month-picker > summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: .48rem .72rem;
  border: 1px solid rgba(15, 95, 143, .22);
  border-radius: 999px;
  background: #fff;
  color: #0b4b73;
  white-space: nowrap;
}
.schedule-calendar-toolbar .schedule-month-picker[open] .schedule-month-grid {
  position: absolute;
  z-index: 30;
  left: 0;
  top: calc(100% + .45rem);
  width: 300px;
  padding: .55rem;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
}
.schedule-calendar-filter {
  display: inline-flex;
  align-items: end;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: flex-end;
  margin: 0;
}
.schedule-calendar-filter label {
  display: grid;
  gap: .2rem;
  font-size: .8rem;
}
.schedule-calendar-filter input[type="month"] {
  width: 150px;
}
.schedule-calendar-filter select {
  width: 190px;
}
.schedule-calendar-filter input[type="month"],
.schedule-calendar-filter select,
.schedule-calendar-filter button {
  height: var(--sd-control-height);
  min-height: var(--sd-control-height);
  box-sizing: border-box;
  line-height: 1.2;
}
.schedule-calendar-filter select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0 2.15rem 0 .72rem;
  background-image: linear-gradient(45deg, transparent 50%, #425466 50%), linear-gradient(135deg, #425466 50%, transparent 50%);
  background-position: calc(100% - 15px) 18px, calc(100% - 10px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.schedule-calendar-filter button,
.schedule-calendar-toolbar .btn {
  min-height: var(--sd-compact-control-height);
}
@media (max-width: 920px) {
  .schedule-page-title-row {
    grid-template-columns: 1fr;
  }
  .schedule-title-count-pill,
  .schedule-page-title-row .schedule-hero-actions,
  .schedule-top-actions {
    justify-self: start;
  }
  .schedule-page-title-row .schedule-hero-actions,
  .schedule-top-actions {
    justify-content: flex-start;
  }
  .schedule-action-buttons {
    margin-left: 0;
    justify-content: flex-start;
  }
  .schedule-create-panel .schedule-form-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}
@media (max-width: 980px) {
  .schedule-create-panel .schedule-form {
    grid-template-columns: 1fr;
  }
  .schedule-create-panel .schedule-form .schedule-form-section:first-of-type,
  .schedule-create-panel .schedule-form > label,
  .schedule-create-panel .schedule-form > .schedule-submit-row {
    grid-column: auto;
  }
}
@media (max-width: 1100px) {
  .schedule-calendar-toolbar {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
  }
  .schedule-calendar-filter {
    justify-content: flex-start;
  }
}
@media (max-width: 720px) {
  .schedule-create-panel .schedule-form {
    grid-template-columns: 1fr;
  }
  .schedule-create-panel .schedule-form .schedule-form-section:first-of-type,
  .schedule-create-panel .schedule-form > label,
  .schedule-create-panel .schedule-form > .schedule-submit-row {
    grid-column: auto;
  }
  .schedule-submit-row button {
    width: 100%;
  }
}
@media (max-width: 760px) {
  .schedule-calendar-toolbar {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
  }
  .schedule-calendar-toolbar .schedule-month-actions,
  .schedule-calendar-filter,
  .schedule-calendar-filter label,
  .schedule-calendar-filter input[type="month"],
  .schedule-calendar-filter select,
  .schedule-calendar-filter button,
  .schedule-calendar-toolbar .btn,
  .schedule-calendar-toolbar .schedule-month-picker,
  .schedule-calendar-toolbar .schedule-month-picker > summary {
    width: 100%;
  }
  .schedule-calendar-toolbar .schedule-month-picker[open] .schedule-month-grid {
    position: static;
    width: auto;
    margin-top: .55rem;
  }
  .schedule-summary-range-form,
  .schedule-summary-range-form label,
  .schedule-summary-range-form select {
    width: 100%;
    margin-left: 0;
  }
  .schedule-create-panel .schedule-form-grid label:first-child {
    grid-column: auto;
  }
  .schedule-create-panel input[name="capacity"],
  .schedule-create-panel select[name="status"] {
    max-width: none;
  }
}
