/*
 * Shared styling for the new module layer.
 *
 * This sits beside legacy main.css so new modules can share a cleaner visual
 * language without changing the old pages all at once.
 */

.zt-module-shell {
  --zt-card-radius: 18px;
  --zt-soft-border: rgba(17, 24, 39, 0.08);
  --zt-soft-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  --zt-ink: #12315b;
  --zt-muted: #5b6b7f;
}

.zt-module-card {
  border: 1px solid var(--zt-soft-border);
  border-radius: var(--zt-card-radius);
  box-shadow: var(--zt-soft-shadow);
}

.zt-module-heading {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--zt-ink);
}

.zt-module-subheading {
  color: var(--zt-muted);
  max-width: 920px;
}

.zt-form-hero {
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.18), transparent 32%),
    linear-gradient(135deg, #f8fbfb 0%, #eef4f3 48%, #fdf7ee 100%);
  border-radius: 18px;
  padding: 1.35rem 1.4rem;
}

.zt-form-kicker {
  font-size: 1.05rem;
  color: #1f2937;
  margin-bottom: 0.4rem;
}

.zt-form-title {
  color: #12304a;
  font-weight: 800;
  font-size: 2.00rem;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.zt-form-copy {
  color: #5b6b7f;
  margin-bottom: 0;
  max-width: 920px;
  line-height: 1.6;
}

.zt-module-shell .dropdown-menu,
#body-content .dropdown-menu {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 0.45rem;
}

.zt-module-shell .dropdown-item,
#body-content .dropdown-item {
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.92rem;
}

.zt-module-shell .dropdown-item i,
#body-content .dropdown-item i {
  width: 1rem;
  margin-right: 0.45rem;
}

.zt-module-shell .dropdown-item:hover,
.zt-module-shell .dropdown-item:focus,
#body-content .dropdown-item:hover,
#body-content .dropdown-item:focus {
  background: rgba(12, 99, 231, 0.08);
  color: #12304a;
}

.zt-module-shell .table-responsive,
#body-content .table-responsive {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: #fff;
}

.zt-module-shell .table-responsive > .table,
#body-content .table-responsive > .table {
  margin-bottom: 0;
}

.zt-module-shell .table-responsive thead th,
#body-content .table-responsive thead th {
  background: #f6f9fc;
  border-top: 0;
  color: #506175;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.zt-module-shell .table-responsive tbody td,
#body-content .table-responsive tbody td {
  vertical-align: middle;
}

.zt-module-shell .table-responsive tbody tr:last-child td,
#body-content .table-responsive tbody tr:last-child td {
  border-bottom: 0;
}

.zt-filter-panel,
.zt-section-card .zt-filter-panel {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
  padding: 1rem 1.05rem;
}

.zt-filter-panel .form-label {
  font-weight: 700;
  color: #24364d;
  margin-bottom: 0.4rem;
}

.zt-filter-panel .form-control,
.zt-filter-panel .form-select {
  min-height: 42px;
  border-radius: 12px;
}

.zt-empty-state-card,
.zt-project-register-empty {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.modal-content {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.modal-header {
  position: relative;
  padding: 1rem 1.15rem;
  padding-right: 3.5rem;
  border-bottom-color: rgba(17, 24, 39, 0.08);
}

.modal-header .btn-close {
  margin: 0;
  position: absolute;
  top: 1rem;
  right: 1.15rem;
  box-shadow: none !important;
}

.modal-body {
  padding: 1rem 1.15rem 1.15rem;
}

.modal-footer {
  padding: 0.9rem 1.15rem 1rem;
  border-top-color: rgba(17, 24, 39, 0.08);
}

.btn-close {
  box-shadow: none !important;
}

@media (max-width: 767.98px) {
  .zt-form-hero {
    padding: 1rem 1rem 1.05rem;
  }
}

.zt-section-card {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
  background: #fff;
}

.zt-section-title {
  color: #16355d;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.zt-section-copy {
  color: #607286;
  font-size: 0.92rem;
}

.zt-form-label {
  font-weight: 700;
  color: #24364d;
  margin-bottom: 0.4rem;
}

.zt-inline-note {
  color: #607286;
  font-size: 0.84rem;
}

.zt-status-note {
  border-left: 4px solid #d9a441;
  background: #fff8e8;
  color: #6b560c;
  border-radius: 14px;
}

.zt-perm-header {
  background: linear-gradient(125deg, #f7fbff 0%, #fffdf7 60%, #eef6ff 100%);
  border: 1px solid rgba(24, 64, 140, 0.08);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.zt-perm-section {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
}

.zt-perm-section-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: #fbfcfe;
}

.zt-perm-section-title {
  font-weight: 700;
  color: #16355d;
}

.zt-perm-section-text {
  color: #607286;
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

.zt-perm-table-wrap {
  overflow-x: auto;
}

.zt-perm-table {
  width: 100%;
  min-width: 860px;
  margin: 0;
}

.zt-perm-table thead th {
  background: #f6f8fb;
  color: #44576b;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-top: 0;
  white-space: nowrap;
}

.zt-perm-table td,
.zt-perm-table th {
  vertical-align: middle;
}

.zt-perm-key {
  min-width: 250px;
}

.zt-perm-name {
  font-weight: 600;
  color: #19365f;
}

.zt-perm-copy {
  color: #607286;
  font-size: 0.88rem;
  line-height: 1.45;
  margin-top: 0.2rem;
}

.zt-perm-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.zt-perm-note {
  border-left: 4px solid #0c63e7;
  background: #f5f9ff;
  color: #40576f;
  border-radius: 14px;
}

.zt-perm-chip {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #eef4ff;
  color: #19427c;
}

@media (max-width: 991.98px) {
  .zt-module-heading {
    font-size: 1.55rem;
  }

  .zt-form-title {
    font-size: 1.95rem;
  }
}

.zt-submit-lock-active,
.zt-submit-lock-active:hover,
.zt-submit-lock-active:focus {
  cursor: progress;
}

.zt-delete-warning {
  border-left: 4px solid #dc3545;
  background: #fff5f5;
  border-radius: 14px;
  color: #6f1d1b;
  padding: 0.9rem 1rem;
}

/*
 * Shared plan/usage summary card for add flows.
 *
 * New modules can place this near the top of create pages so users understand
 * the current usage before saving a new record.
 */
.zt-limit-card {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
  background:
    radial-gradient(circle at top right, rgba(12, 60, 150, 0.08), transparent 30%),
    linear-gradient(135deg, #fbfdff 0%, #f6fafb 48%, #fffaf1 100%);
}

.zt-limit-card-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0c6b58;
}

.zt-limit-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
}

.zt-limit-stat-label {
  font-size: 0.8rem;
  color: #607286;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.zt-limit-stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  color: #12304a;
}

.zt-record-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.zt-record-field-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #5c7088;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.zt-record-field-value {
  color: #14375f;
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

.zt-record-field-value-lg {
  font-size: 1.1rem;
}

.zt-record-field-subvalue {
  color: #6a7f95;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}

.zt-record-field-text {
  min-height: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.zt-record-field-text .zt-record-field-label {
  margin-bottom: 0.8rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
}

.zt-record-field-text .zt-record-field-value {
  font-size: 0.98rem;
  line-height: 1.65;
  font-weight: 600;
}

.zt-record-stat-tile {
  min-height: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.zt-record-stat-tile .zt-record-field-value {
  font-size: 1.12rem;
}

.zt-flag-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.3rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.zt-flag-value-yes {
  color: #9f1239;
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.2);
}

.zt-flag-value-no {
  color: #166534;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.18);
}

@media (max-width: 767.98px) {
  .zt-record-field-label {
    font-size: 0.86rem;
  }

  .zt-record-field-value {
    font-size: 0.98rem;
  }
}

.zt-limit-stat-copy {
  font-size: 0.85rem;
  color: #607286;
}

.zt-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.zt-summary-item {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 253, 0.92));
  padding: 0.95rem 1rem;
  min-height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.zt-summary-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(12, 60, 150, 0.92), rgba(53, 166, 118, 0.72));
  opacity: 0.72;
}

.zt-summary-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #607286;
}

.zt-summary-value {
  color: #12304a;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 0.28rem;
}

.zt-summary-copy {
  color: #607286;
  font-size: 0.84rem;
  margin-top: 0.25rem;
}

.zt-callout-card {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(12, 60, 150, 0.06), transparent 28%),
    linear-gradient(135deg, #fcfeff 0%, #f5f9fb 48%, #fffaf1 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  position: relative;
}

.zt-callout-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #0c63e7 0%, #27ac69 100%);
}

.zt-callout-title {
  color: #16355d;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.zt-callout-copy {
  color: #607286;
  font-size: 0.92rem;
  margin-bottom: 0;
}

.zt-workflow-coach-list {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: #36506b;
  font-size: 0.93rem;
}

.zt-workflow-coach-list li + li {
  margin-top: 0.4rem;
}

.zt-workflow-coach-note {
  margin-top: 0.9rem;
  color: #607286;
  font-size: 0.88rem;
}

.zt-workflow-coach-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.zt-empty-state-card {
  border: 1px dashed rgba(17, 24, 39, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f5f9fc 100%);
  text-align: center;
  padding: 2rem 1.25rem;
}

.zt-empty-state-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 60, 150, 0.08);
  color: #0c3c96;
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

.zt-empty-state-title {
  color: #16355d;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.zt-empty-state-copy {
  color: #607286;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.zt-readiness-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.zt-readiness-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  background: #fff;
}

.zt-readiness-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex: 0 0 26px;
  margin-top: 0.05rem;
}

.zt-readiness-item.is-ready .zt-readiness-dot {
  background: rgba(39, 172, 105, 0.12);
  color: #16824d;
}

.zt-readiness-item.is-pending .zt-readiness-dot {
  background: rgba(217, 164, 65, 0.14);
  color: #9b6b02;
}

.zt-readiness-heading {
  color: #16355d;
  font-weight: 700;
  margin-bottom: 0.12rem;
}

.zt-readiness-copy {
  color: #607286;
  font-size: 0.87rem;
  margin-bottom: 0;
}

.zt-learner-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.zt-learner-summary-card {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.95));
  padding: 1rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.zt-learner-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(12, 60, 150, 0.95) 0%, rgba(23, 162, 184, 0.78) 100%);
}

.zt-learner-summary-label {
  color: #607286;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.zt-learner-summary-value {
  color: #12304a;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 0.25rem;
}

.zt-learner-summary-copy {
  color: #607286;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.zt-learner-page-note {
  border-left: 4px solid #0c63e7;
  background: #f5f9ff;
  border-radius: 14px;
  color: #40576f;
  padding: 0.9rem 1rem;
}

/*
 * Shared dashboard KPI donut cards.
 *
 * Certificates defined the original visual language for these cards. These
 * shared selectors let newer modules reuse the same pattern without copying
 * page-local CSS each time.
 */
.zt-kpi-card,
.kpi-card {
  height: 100%;
}

.zt-kpi-border-blue,
.kpi-border-zt-blue {
  border-top: 3px solid #0c3c96;
}

.zt-kpi-border-green,
.kpi-border-zt-green {
  border-top: 3px solid #27ac69;
}

.zt-kpi-border-gold {
  border-top: 3px solid #d9a441;
}

.zt-kpi-border-red,
.kpi-border-danger {
  border-top: 3px solid #dc3545;
}

.zt-kpi-border-warning,
.kpi-border-warning {
  border-top: 3px solid #ffc107;
}

.zt-kpi-border-info,
.kpi-border-info {
  border-top: 3px solid #17a2b8;
}

.kpi-border-primary {
  border-top: 3px solid #007bff;
}

.kpi-donut-card .h3.mb-0,
.kpi-donut-card .kpi-sub,
.card-body.kpi-donut-card .h4.mb-0 {
  display: none;
}

.zt-kpi-wrap,
.kpi-donut-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 92px;
}

.zt-kpi-chart,
.kpi-donut-chart {
  position: relative;
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
}

.zt-kpi-chart canvas,
.kpi-donut-chart canvas {
  width: 96px !important;
  height: 96px !important;
}

.zt-kpi-center,
.kpi-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.zt-kpi-num,
.kpi-donut-num {
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
}

.zt-kpi-label,
.kpi-donut-label {
  font-size: 11px;
  color: #6c757d;
  margin-top: 2px;
}

.zt-kpi-legend,
.kpi-donut-legend {
  flex: 1;
  min-width: 0;
  font-size: 12px;
}

.zt-kpi-legend-row,
.kpi-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
}

.zt-kpi-legend-left,
.kpi-legend-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.zt-kpi-dot,
.kpi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 10px;
}

.zt-kpi-legend-name,
.kpi-legend-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #343a40;
}

.zt-kpi-legend-val,
.kpi-legend-val {
  white-space: nowrap;
  color: #6c757d;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1199.98px) {
  .zt-kpi-wrap,
  .kpi-donut-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

/*
 * Orientation builder workflow styling.
 *
 * These tinted panels make each builder step easier to scan and align the
 * visual treatment with the workflow order shown at the top of the page.
 */
.zt-builder-stage {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.zt-builder-stage .card-body {
  border-radius: 18px;
}

.zt-builder-stage-sections .card-body {
  background: linear-gradient(135deg, #eef6ff 0%, #ddeeff 100%);
}

.zt-builder-stage-documents .card-body {
  background: linear-gradient(135deg, #eefcf4 0%, #dcf5e6 100%);
}

.zt-builder-stage-media .card-body {
  background: linear-gradient(135deg, #fff6e8 0%, #ffe9c7 100%);
}

.zt-builder-stage-quiz .card-body {
  background: linear-gradient(135deg, #fff0f6 0%, #ffdce9 100%);
}

.zt-builder-stage-access .card-body {
  background: linear-gradient(135deg, #f3f1ff 0%, #e4defd 100%);
}

.zt-builder-subpanel {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.zt-builder-subpanel-links {
  background: linear-gradient(135deg, rgba(239, 247, 255, 0.96) 0%, rgba(224, 238, 255, 0.96) 100%);
}

.zt-builder-subpanel-videos {
  background: linear-gradient(135deg, rgba(255, 248, 235, 0.97) 0%, rgba(255, 235, 202, 0.97) 100%);
}

.zt-builder-subpanel-upload {
  background: linear-gradient(135deg, rgba(255, 242, 248, 0.97) 0%, rgba(255, 225, 236, 0.97) 100%);
}

.zt-builder-stage-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #16324f;
}

.zt-builder-stage-copy {
  color: #58697d;
  font-size: 0.92rem;
}

.zt-builder-workflow-panel {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.94));
  padding: 0.95rem 1rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.zt-fact-tile {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.95));
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.zt-fact-label {
  color: #607286;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.zt-fact-value {
  color: #12304a;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 0.2rem;
}

.zt-fact-copy {
  color: #607286;
  font-size: 0.84rem;
  margin-top: 0.25rem;
}

.zt-kpi-card {
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 253, 0.96));
}

.zt-kpi-card .card-body {
  padding: 1rem 1.05rem;
}

.zt-builder-item {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
}

.zt-builder-item-sections {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(239, 247, 255, 0.94) 100%);
}

.zt-builder-item-documents {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(239, 251, 244, 0.95) 100%);
}

.zt-builder-item-links {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 247, 255, 0.95) 100%);
}

.zt-builder-item-videos {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 244, 225, 0.95) 100%);
}

.zt-builder-item-quiz {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 238, 245, 0.95) 100%);
}

.zt-builder-item-access {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 238, 255, 0.95) 100%);
}

.zt-builder-jump {
  border-width: 1px;
  border-style: solid;
  border-radius: 999px;
  font-weight: 600;
  background: #fff;
}

.zt-builder-jump-sections {
  color: #0c63e7;
  border-color: rgba(12, 99, 231, 0.28);
  background: #eef6ff;
}

.zt-builder-jump-documents {
  color: #198754;
  border-color: rgba(25, 135, 84, 0.28);
  background: #eefcf4;
}

.zt-builder-jump-media {
  color: #b96a00;
  border-color: rgba(185, 106, 0, 0.28);
  background: #fff6e8;
}

.zt-builder-jump-quiz {
  color: #c2185b;
  border-color: rgba(194, 24, 91, 0.26);
  background: #fff0f6;
}

.zt-builder-jump-access {
  color: #6f42c1;
  border-color: rgba(111, 66, 193, 0.28);
  background: #f3f1ff;
}

/* Ensure saved orientation rich text renders consistently across pages. */
.zt-rich-content {
  line-height: 1.6;
}

.zt-rich-content p,
.zt-rich-content h3,
.zt-rich-content h4,
.zt-rich-content ul,
.zt-rich-content ol,
.zt-rich-content blockquote {
  margin-bottom: 0.75rem;
}

.zt-rich-content ul,
.zt-rich-content ol {
  padding-left: 1.5rem;
}

.zt-rich-content ul {
  list-style: disc outside !important;
}

.zt-rich-content ol {
  list-style: decimal outside !important;
}

.zt-rich-content li {
  list-style-position: outside;
  margin-bottom: 0.25rem;
}

.zt-accordion-trigger {
  width: 100%;
}

.zt-accordion-trigger:hover,
.zt-accordion-trigger:focus {
  text-decoration: none;
}

.zt-accordion-trigger::after {
  display: none;
}

.zt-accordion-indicator {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 48, 74, 0.08);
  color: #12304a;
  position: relative;
  flex-shrink: 0;
}

.zt-accordion-indicator::before,
.zt-accordion-indicator::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 999px;
}

.zt-accordion-indicator::before {
  width: 0.7rem;
  height: 0.14rem;
}

.zt-accordion-indicator::after {
  width: 0.14rem;
  height: 0.7rem;
}

.zt-accordion-trigger:not(.collapsed) .zt-accordion-indicator::after {
  display: none;
}

.zt-filter-panel {
  background:
    radial-gradient(circle at top right, rgba(12, 99, 231, 0.06), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.zt-filter-panel .form-control,
.zt-filter-panel .custom-control-label {
  font-size: 0.93rem;
}

.zt-filter-actions {
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  margin-top: 0.75rem;
  padding-top: 1rem;
}

.zt-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.zt-button-row .btn {
  box-shadow: none;
}

.zt-button-row .btn-primary {
  box-shadow: 0 10px 22px rgba(12, 99, 231, 0.16);
}

.zt-dashboard-panel {
  background:
    radial-gradient(circle at top right, rgba(12, 60, 150, 0.04), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 253, 0.96));
}

.zt-dashboard-panel .table thead th {
  background: #f6f9fc;
  border-top: 0;
  color: #506175;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.zt-dashboard-panel .list-group-item {
  border-color: rgba(17, 24, 39, 0.08);
}

.zt-section-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.zt-section-kicker-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #eef6ff;
  color: #173d6b;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.zt-surface-muted {
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(245, 249, 252, 0.96));
}

.zt-content-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.zt-content-index-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #f5f8fb;
  border: 1px solid rgba(23, 61, 107, 0.08);
  color: #173d6b;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.zt-content-index-link:hover {
  text-decoration: none;
  background: #eef6ff;
  color: #173d6b;
}

.zt-content-index-link:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(12, 99, 231, 0.12);
}

.zt-section-shell {
  border: 1px solid rgba(23, 61, 107, 0.08);
  border-radius: 1.1rem;
  padding: 1rem 1rem 1.05rem;
  background: #fff;
  box-shadow: 0 0.6rem 1.4rem rgba(15, 41, 71, 0.04);
}

.zt-section-kicker {
  color: #6c7a88;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.zt-resource-card {
  border: 1px solid rgba(23, 61, 107, 0.08);
  border-radius: 0.95rem;
  padding: 0.9rem 1rem;
  margin-top: 0.9rem;
  background: #fbfdff;
  transition: box-shadow 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.zt-resource-card:hover {
  border-color: rgba(23, 61, 107, 0.14);
  box-shadow: 0 12px 24px rgba(15, 41, 71, 0.06);
}

.zt-resource-title {
  font-weight: 700;
  color: #173d6b;
  margin-bottom: 0.2rem;
}

.zt-resource-meta {
  font-size: 0.82rem;
  color: #6c7a88;
  margin-bottom: 0.65rem;
}

.zt-resource-shell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.zt-resource-main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
  flex: 1 1 auto;
}

.zt-resource-icon {
  width: 2.4rem;
  height: 2.4rem;
  min-width: 2.4rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef6ff;
  color: #173d6b;
  font-size: 1rem;
}

.zt-resource-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.zt-resource-link {
  color: #173d6b;
  word-break: break-word;
}

.zt-evidence-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.zt-evidence-item {
  border: 1px solid rgba(23, 61, 107, 0.08);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  background: #fbfdff;
  box-shadow: 0 10px 24px rgba(15, 41, 71, 0.04);
}

.zt-evidence-shell {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.zt-evidence-icon {
  width: 2.65rem;
  height: 2.65rem;
  min-width: 2.65rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef6ff;
  color: #173d6b;
  font-size: 1rem;
}

.zt-evidence-main {
  min-width: 0;
  flex: 1 1 auto;
}

.zt-evidence-title {
  font-weight: 700;
  color: #173d6b;
  margin-bottom: 0.2rem;
}

.zt-evidence-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.zt-evidence-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #f4f8fb;
  color: #5b6b7f;
  font-size: 0.76rem;
  font-weight: 600;
}

.zt-evidence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.zt-evidence-actions form {
  margin: 0;
}

.zt-certificate-preview-shell {
  margin-top: 1rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  padding: 0.75rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f2f6fa 100%);
  overflow: hidden;
}

.zt-certificate-preview-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
  margin: 0 auto;
}

.zt-signature-field {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.zt-signature-pad-wrap {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,251,253,0.96)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 38px,
      rgba(23, 61, 107, 0.05) 38px,
      rgba(23, 61, 107, 0.05) 39px
    );
  min-height: 210px;
}

.zt-signature-canvas {
  display: block;
  width: 100%;
  height: 210px;
  touch-action: none;
  cursor: crosshair;
}

.zt-signature-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.zt-signature-status {
  color: #607286;
  font-size: 0.86rem;
}

.zt-signature-status.is-signed {
  color: #16824d;
  font-weight: 600;
}

.zt-builder-item .btn,
.zt-resource-actions .btn,
.zt-filter-actions .btn,
.zt-button-row .btn {
  border-radius: 10px;
}

.zt-builder-stage-toggle {
  min-width: 138px;
}

.zt-builder-item-actions {
  align-items: center;
}

.zt-builder-item-actions form {
  margin-bottom: 0 !important;
}

.zt-builder-subpanel .btn-block {
  font-weight: 600;
}

.zt-builder-notice {
  border-radius: 14px;
  border: 1px solid rgba(12, 99, 231, 0.1);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

@media (max-width: 767.98px) {
  .zt-button-row,
  .zt-filter-actions {
    flex-direction: column;
    align-items: stretch !important;
  }

  .zt-button-row .btn,
  .zt-filter-actions .btn {
    width: 100%;
    margin-right: 0 !important;
  }

  .zt-builder-stage > .card-body > .d-flex,
  .zt-section-intro {
    flex-direction: column;
    align-items: stretch !important;
  }

  .zt-builder-stage-toggle {
    width: 100%;
  }

  .zt-builder-item-shell {
    flex-direction: column;
  }

  .zt-builder-item-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .zt-builder-item-actions .btn,
  .zt-builder-item-actions form {
    width: 100%;
  }

  .zt-builder-item-actions form .btn {
    width: 100%;
  }

  .zt-resource-shell {
    flex-direction: column;
  }

  .zt-resource-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .zt-resource-actions .btn {
    width: 100%;
  }

  .zt-evidence-shell {
    flex-direction: column;
  }

  .zt-evidence-actions {
    flex-direction: column;
  }

  .zt-evidence-actions .btn,
  .zt-evidence-actions form,
  .zt-evidence-actions form .btn {
    width: 100%;
  }

  .zt-certificate-preview-shell {
    padding: 0.5rem;
  }

  .zt-certificate-preview-image {
    max-height: 60vh;
  }

  .zt-signature-pad-wrap {
    min-height: 180px;
  }

  .zt-signature-canvas {
    height: 180px;
  }

  .zt-signature-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .zt-signature-toolbar .btn {
    width: 100%;
  }

  .zt-summary-strip,
  .zt-learner-summary-grid {
    grid-template-columns: 1fr;
  }
}

.zt-quiz-card {
  border: 1px solid rgba(23, 61, 107, 0.08);
  border-radius: 1rem;
  padding: 1rem 1rem 0.9rem;
  background: #fff;
  box-shadow: 0 0.55rem 1.3rem rgba(15, 41, 71, 0.04);
}

.zt-quiz-question {
  font-weight: 700;
  color: #173d6b;
  margin-bottom: 0.9rem;
}

.zt-quiz-option {
  border: 1px solid rgba(23, 61, 107, 0.08);
  border-radius: 0.85rem;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.7rem;
  background: #fbfdff;
}

.zt-quiz-option-readonly {
  border: 1px solid rgba(23, 61, 107, 0.08);
  border-radius: 0.85rem;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.7rem;
  background: #f8fbff;
}

/*
 * Projects module shell polish.
 *
 * These shared selectors replace page-local inline styles so the Projects Hub
 * and Project Details screens feel like one enterprise surface.
 */
.zt-project-mini-donut {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.04);
}

.zt-project-mini-donut-inner {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #0f2747;
  font-size: 11px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.zt-project-mini-donut-inner strong {
  font-size: 22px;
  line-height: 1;
}

.zt-project-hub-grid .card-body {
  padding: 1rem 1.1rem;
}

.zt-project-insight-list .small {
  line-height: 1.5;
}

.zt-project-trend-bar {
  height: 10px;
  border-radius: 999px;
  background: #e8edf5;
  overflow: hidden;
}

.zt-project-trend-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8, #10b981);
}

.zt-project-panel {
  border: 1px solid rgba(23, 61, 107, 0.08);
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 253, 0.96));
  box-shadow: 0 0.7rem 1.6rem rgba(15, 41, 71, 0.05);
}

.zt-project-panel .card-body,
.zt-project-panel .card-header {
  background: transparent;
}

.zt-project-compact-card {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  height: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.zt-project-progress-track {
  height: 14px;
  border-radius: 999px;
  background: #e7edf6;
  overflow: hidden;
}

.zt-project-progress-fill-manual {
  height: 100%;
  background: linear-gradient(90deg, #1d4ed8, #2563eb);
  border-radius: 999px;
}

.zt-project-progress-fill-suggested {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  border-radius: 999px;
}

.zt-project-action-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.zt-project-inline-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.zt-project-inline-stat {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  background: #fff;
  padding: 0.95rem 1rem;
}

.zt-project-inline-stat-value {
  color: #12304a;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
}

.zt-project-key-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.zt-project-key-card {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 1rem 1.05rem;
  min-height: 100%;
}

.zt-project-key-card-title {
  color: #16355d;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.zt-project-key-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.zt-project-key-item {
  min-width: 0;
}

.zt-project-key-item-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #607286;
  margin-bottom: 0.2rem;
}

.zt-project-key-item-value {
  color: #12304a;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

.zt-project-rich-panel {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 1rem 1.05rem;
  min-height: 100%;
}

.zt-project-rich-panel-label {
  color: #607286;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

.zt-project-subsection-title {
  color: #16355d;
  font-weight: 800;
  margin-bottom: 1rem;
}

.zt-project-comment-entry {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 0.8rem 0.95rem;
}

.zt-project-comment-meta {
  color: #607286;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.zt-project-comment-body {
  color: #12304a;
  line-height: 1.6;
}

.zt-project-side-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.zt-project-checklist-item {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  background: #fff;
  padding: 0.8rem 0.95rem;
}

.zt-project-workstream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.zt-project-workstream-card {
  border: 1px solid rgba(23, 61, 107, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,251,253,0.96));
  box-shadow: 0 0.8rem 1.8rem rgba(15, 41, 71, 0.05);
  height: 100%;
}

.zt-project-register-table thead th {
  background: #f6f9fc;
  border-top: 0;
  color: #506175;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.zt-project-register-table td {
  vertical-align: middle;
}

.zt-project-report-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #d9e2ef;
  background: #fff;
  font-size: 0.78rem;
  margin: 0.2rem 0.35rem 0.2rem 0;
  color: #173d6b;
  box-shadow: 0 0.35rem 0.85rem rgba(15, 41, 71, 0.04);
}

.zt-project-report-chip strong {
  margin-right: 0.45rem;
  color: #0f2747;
}

.zt-project-analytic-bar {
  height: 12px;
  border-radius: 999px;
  background: #e8edf5;
  overflow: hidden;
}

.zt-project-analytic-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8, #10b981);
}

.zt-project-report-metric {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 1rem 1.05rem;
  height: 100%;
}

.zt-project-report-register td,
.zt-project-report-register th {
  vertical-align: top;
}

.zt-project-report-register thead th {
  background: #f6f9fc;
  border-top: 0;
  color: #506175;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.zt-project-workstream-modal .modal-dialog {
  max-width: min(1180px, 96vw);
}

.zt-project-workstream-modal .modal-content {
  border-radius: 18px;
  overflow: hidden;
}

.zt-project-file-input {
  border: 1px dashed rgba(23, 61, 107, 0.2);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

@media (max-width: 991.98px) {
  .zt-project-key-grid,
  .zt-project-workstream-grid,
  .zt-project-inline-stats {
    grid-template-columns: 1fr;
  }
}
