/* Lumi Necto ITE 2026.4.2 — Clear Horizon Patch 2
 * Surgical cleanup layered over the approved Summer Sun visual system.
 */

/* The 30-hour primary rule remains in calculations; only its visual marker is removed. */
.tb-goal-marker { display: none !important; }

.ite-ch-core-context {
  font-weight: 800;
  color: var(--green, #477628);
}

.ite-core-total-badge.ite-ch-total-hours {
  white-space: nowrap;
  min-width: max-content;
}

.workflow-status:empty { display: none !important; }

/* Clerk attention hierarchy uses the existing palette and card language. */
.ite-ch-routine {
  border-left: 5px solid #d6a800 !important;
  background: #fffaf0 !important;
}

.ite-ch-urgent {
  border-left: 5px solid #9b4242 !important;
  background: #fff4f4 !important;
}

.ite-ch-attention-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  margin-right: 6px;
}

.ite-ch-attention-pill.routine {
  background: #fff2bd;
  color: #765900;
}

.ite-ch-attention-pill.urgent {
  background: #f7dddd;
  color: #8a3030;
}

.ite-ch-archive-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.ite-ch-system-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}

.ite-ch-system-controls select {
  width: auto;
  min-width: 145px;
}

.ite-ch-show-more {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.ite-ch-recipient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px 12px;
  margin: 10px 0 16px;
}

.ite-ch-recipient-option {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #ddd7cf;
  border-radius: 9px;
  background: #fff;
  font-weight: 700;
}

.ite-ch-email-note {
  margin: 14px 0;
  padding: 14px 16px;
  border-left: 5px solid var(--gold, #b97921);
  border-radius: 9px;
  background: #fff6d9;
  font-weight: 800;
  line-height: 1.5;
}

.ite-ch-communication-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ite-ch-communication-toolbar button.active {
  background: var(--green, #477628);
  color: #fff;
}

/* Registration & Travel keeps functional empty states while removing coaching copy. */
body.ite-clear-horizon-travel .workflow-strip,
body.ite-clear-horizon-travel .topbar .subhead,
body.ite-clear-horizon-travel .subnote,
body.ite-clear-horizon-travel .card-sub,
body.ite-clear-horizon-travel .needs-hero p,
body.ite-clear-horizon-travel .notice-box,
body.ite-clear-horizon-travel #shellMeta,
body.ite-clear-horizon-travel .ite-ch-remove-travel-copy {
  display: none !important;
}

/* ========================================================================
   ITE 2026.4.3 — Clear Horizon Patch 3
   Event-based clerk workflow + compact histories
   ======================================================================== */
.ite-ch43-event-card {
  border: 1px solid #e4dfda;
  border-left: 4px solid var(--gold, #b97921);
  border-radius: 10px;
  background: #fff;
  margin: 10px 0;
  overflow: hidden;
}
.ite-ch43-event-card > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  background: #fffdf8;
}
.ite-ch43-event-card > summary::-webkit-details-marker { display: none; }
.ite-ch43-event-card > summary::after {
  content: '▾';
  color: #6b5b51;
  font-weight: 900;
  margin-left: 4px;
}
.ite-ch43-event-card[open] > summary::after { content: '▴'; }
.ite-ch43-event-main { flex: 1; min-width: 0; }
.ite-ch43-event-main strong { display: block; color: var(--brown, #4d3a32); font-size: 14px; }
.ite-ch43-event-main small { display: block; color: #6f665f; margin-top: 3px; font-size: 11px; line-height: 1.35; }
.ite-ch43-event-summary { color: var(--green, #477628); font-size: 11px; font-weight: 800; white-space: nowrap; }
.ite-ch43-event-body { padding: 12px 14px 14px; border-top: 1px solid #eee9e4; }
.ite-ch43-status-panel {
  display: grid;
  grid-template-columns: minmax(150px, 200px) minmax(240px, 1fr) auto;
  gap: 9px;
  align-items: end;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee9e4;
}
.ite-ch43-status-panel label {
  display: block;
  margin: 0 0 5px;
  color: #5f554f;
  font-size: 11px;
  font-weight: 800;
}
.ite-ch43-status-panel label span { font-weight: 500; }
.ite-ch43-status-panel select,
.ite-ch43-status-panel input {
  width: 100%;
  border: 1px solid #d8d2cc;
  border-radius: 7px;
  background: #fff;
  padding: 8px 9px;
  font: inherit;
  font-size: 12px;
}
.ite-ch43-inline-status {
  grid-column: 1 / -1;
  min-height: 0;
  color: var(--green, #477628);
  font-size: 11px;
  font-weight: 700;
}
.ite-ch43-event-travel,
.ite-ch43-commissioner-notes {
  border-radius: 8px;
  padding: 9px 10px;
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.45;
}
.ite-ch43-event-travel { background: #fff6e6; color: #9a620b; }
.ite-ch43-commissioner-notes { background: #f6f4f2; color: #4d443f; }
.ite-ch43-commissioner-notes div + div { margin-top: 4px; }
.ite-ch43-commissioner-notes span { font-weight: 800; }
.ite-ch43-class-stack { display: grid; gap: 7px; }
.ite-ch43-class-host.selection-card {
  margin: 0;
  padding: 0;
  border-top: 0;
}
.ite-ch43-class-seed {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.ite-ch43-event-card .ite-p1-class-tools { margin: 0; }
.ite-ch43-event-card .ite-p1-class-tools > summary > span:first-child > strong { display: none; }
.ite-ch43-event-card .ite-p1-class-tools > summary > span:first-child { gap: 0; }
.ite-ch43-event-card .ite-p1-course-name { margin-left: 0; }
.ite-ch43-archive-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-bottom: 8px;
}
.ite-ch43-show-more,
.ite-ch43-sent-log-toggle {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.ite-ch43-cleared-history { margin-top: 14px; }
.ite-ch43-cleared-history > details {
  border: 1px solid #e1dcd7;
  border-radius: 9px;
  background: #faf9f7;
  padding: 10px 12px;
}
.ite-ch43-cleared-history summary { cursor: pointer; font-weight: 800; }
.ite-ch43-cleared-history .count { margin-left: 5px; }
.ite-ch43-cleared-list { margin-top: 10px; display: grid; gap: 7px; }
.ite-ch43-cleared-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid #e5e0db;
  border-radius: 7px;
  background: #fff;
  font-size: 11px;
}
@media (max-width: 760px) {
  .ite-ch43-event-card > summary { align-items: flex-start; }
  .ite-ch43-event-summary { white-space: normal; text-align: right; }
  .ite-ch43-status-panel { grid-template-columns: 1fr; }
  .ite-ch43-inline-status { grid-column: auto; }
  .ite-ch43-cleared-row { align-items: flex-start; flex-direction: column; }
}

body.ite-clear-horizon-travel #tabPast { min-width: 110px; }
body.ite-clear-horizon-travel #panelCurrent .ite-feed.hidden { display: none !important; }
