/* Student Letters & Updates (merged page) */
.ltl-head-btns { display: flex; gap: 8px; }
.ltl-filter-card { padding: 14px 16px; }
.ltl-search { width: 100%; box-sizing: border-box; padding: 11px 14px; font-size: 1.02rem; border: 2px solid var(--brand); border-radius: 8px; background: var(--card); color: var(--text); }
.ltl-search:focus { outline: none; box-shadow: 0 0 0 3px var(--brand-tint, #e4ede8); }
.ltl-filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.ltl-filters label { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; }
.ltl-filters select, .ltl-filters input[type=date] { padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--text); max-width: 190px; }

.ltl-kind { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: .02em; }
.ltl-kind.let { background: var(--brand-tint, #e4ede8); color: var(--brand); }
.ltl-kind.upd { background: #fbf1de; color: #8a5f13; }
.ltl-ref { color: var(--brand); font-weight: 600; text-decoration: none; }
.ltl-ref:hover { text-decoration: underline; }
tr.ltl-row.clickable { cursor: pointer; }
.ltl-notes { display: inline-block; max-width: 300px; font-size: 0.82rem; }

.ltl-actions { display: flex; gap: 4px; flex-wrap: wrap; min-width: 280px; max-width: 340px; }
.ltl-actions .btn.small { padding: 4px 7px; }
.detail-actions .ltl-actions { max-width: none; min-width: 0; justify-content: flex-end; }

/* detail */
.ltl-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 20px; }
.ltl-field-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }
.ltl-field-val { font-size: 0.92rem; }
.ltl-text { white-space: pre-wrap; line-height: 1.5; }
.ltl-preview-img { max-width: 100%; max-height: 420px; border: 1px solid var(--border); border-radius: 8px; display: block; }
.ltl-modal-att { min-height: 120px; }
.ltl-modal-att .pdf-preview-frame { height: 520px; }

/* forms / modals */
.ltl-hint { font-weight: 400; }
.ltl-lbl { font-size: 0.82rem; font-weight: 600; margin-bottom: 4px; }
.ltl-inline { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 4px; font-weight: 400 !important; }
.ltl-inline input { width: auto; }
.ltl-form-error { margin-top: 10px; padding: 8px 12px; border-radius: 6px; background: #f8e5e3; color: var(--danger); font-size: 0.86rem; }
.ltl-email-note { margin-top: 12px; padding: 10px 12px; border-radius: 6px; background: var(--bg); font-size: 0.84rem; color: var(--muted); }
.ltl-warn { color: #8a5f13; }
.ltl-pdf-msg { margin-top: 8px; font-size: 0.86rem; }
.ltl-pdf-msg.ok { color: var(--ok); }
.ltl-pdf-msg.warn { color: #8a5f13; }

/* compact list used on a student's own page */
.ltl-mini-head { display: flex; gap: 8px; margin-bottom: 10px; }
.ltl-mini-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.ltl-mini-row:last-child { border-bottom: none; }
.ltl-mini-main { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
