.trip-assessments { display: grid; gap: 14px; width: 100%; min-width: 0; color: var(--text, #172033); overflow-wrap: anywhere; }
.trip-assessments button, .trip-assessments input, .trip-assessments select, .trip-assessments textarea { font: inherit; }
.trip-assessments button { min-height: 44px; padding: 8px 13px; border: 1px solid #8daeca; border-radius: 7px; background: #fff; color: #173e62; font-weight: 800; cursor: pointer; }
.trip-assessments button:hover:not(:disabled) { border-color: #1f5e95; background: #edf6fe; }
.trip-assessments button:disabled { color: #52606d; border-color: #b9c2cd; background: #e5e7eb; cursor: not-allowed; }
.trip-assessments button:focus-visible, .trip-assessments input:focus-visible, .trip-assessments select:focus-visible, .trip-assessments textarea:focus-visible { outline: 3px solid #163b5c; outline-offset: 2px; }
.trip-assessment-primary { border-color: #1f5e95 !important; background: #1f5e95 !important; color: #fff !important; }
.trip-assessment-primary:hover:not(:disabled) { border-color: #163b5c !important; background: #163b5c !important; }
.trip-assessments-heading, .trip-assessment-filters, .trip-assessment-detail, .trip-assessment-form, .trip-assessment-card { border: 1px solid #c5d5e4; border-radius: 9px; background: #fff; box-shadow: 0 4px 14px rgba(23, 59, 92, .05); }
.trip-assessments-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 19px; border-top: 4px solid #2e75b6; }
.trip-assessments-heading p, .trip-assessment-form header p, .trip-assessment-detail header p { margin: 0 0 4px; color: #52606d; font-size: 12px; font-weight: 700; }
.trip-assessments-heading h3 { margin: 0; color: #173e62; font-size: 24px; }
.trip-assessments-heading span, .trip-assessment-form header span, .trip-assessment-detail header span { display: block; margin-top: 7px; color: #374151; font-weight: 700; line-height: 1.5; }
.trip-assessment-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; padding: 13px 15px; }
.trip-assessment-filters label, .trip-assessment-form label { display: grid; min-width: 0; gap: 6px; color: #374151; font-size: 13px; font-weight: 800; }
.trip-assessment-filters select, .trip-assessment-filters input, .trip-assessment-form input, .trip-assessment-form select, .trip-assessment-form textarea { width: 100%; min-height: 44px; box-sizing: border-box; padding: 8px 10px; border: 1px solid #9eb6ca; border-radius: 6px; background: #fff; color: #172033; }
.trip-assessment-form textarea { min-height: 92px; resize: vertical; }
.trip-assessments-state, .trip-assessments-alert, .trip-assessments-notice { margin: 0; padding: 12px 13px; border-radius: 7px; line-height: 1.55; }
.trip-assessments-state { border: 1px solid #b9cde0; background: #f4f8fc; color: #173e62; font-weight: 800; text-align: center; }
.trip-assessments-alert { border: 1px solid #c96369; border-left: 5px solid #9c0006; background: #fff4f5; color: #790008; font-weight: 700; }
.trip-assessments-alert button { min-height: 34px; margin-left: 8px; border-color: #9c0006; color: #790008; }
.trip-assessments-notice { border-left: 5px solid #176b38; background: #edf9f0; color: #075421; font-weight: 800; }
.trip-assessment-list { overflow: hidden; border: 1px solid #c5d5e4; border-radius: 9px; background: #fff; box-shadow: 0 4px 14px rgba(23, 59, 92, .05); }
.trip-assessment-table-head, .trip-assessment-card { display: grid; grid-template-columns: minmax(112px, .85fr) minmax(145px, 1fr) minmax(105px, .7fr) minmax(230px, 2fr) 132px; align-items: center; gap: 12px; }
.trip-assessment-table-head { padding: 10px 14px; background: #edf5fc; color: #173e62; font-size: 13px; font-weight: 800; }
.trip-assessment-card { min-width: 0; padding: 12px 14px; border-top: 1px solid #d3dfeb; }
.trip-assessment-card strong { color: #173e62; font-size: 17px; }
.trip-assessment-card span { color: #52606d; font-size: 13px; font-weight: 700; }
.trip-assessment-card b { color: #075421; font-size: 18px; }
.trip-assessment-card p { display: -webkit-box; margin: 0; overflow: hidden; color: #374151; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.trip-assessment-card button { justify-self: stretch; }
.trip-assessment-detail, .trip-assessment-form { padding: 17px; }
.trip-assessment-detail > header, .trip-assessment-form > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #cbd8e5; }
.trip-assessment-detail h4, .trip-assessment-form h4 { margin: 3px 0 0; color: #173e62; font-size: 23px; }
.trip-assessment-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 14px 0; }
.trip-assessment-score-result, .trip-assessment-summary, .trip-assessment-scores { margin-top: 14px; padding: 14px; border: 1px solid #cbd8e5; border-radius: 8px; background: #f8fbfe; }
.trip-assessment-score-result h5, .trip-assessment-summary h5, .trip-assessment-scores h5 { margin: 0; color: #173e62; font-size: 17px; }
.trip-assessment-score-result dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.trip-assessment-score-result dl div { padding: 9px; border: 1px solid #d3dfeb; border-radius: 6px; background: #fff; }
.trip-assessment-score-result dt { color: #52606d; font-size: 12px; font-weight: 800; }
.trip-assessment-score-result dd { margin: 4px 0 0; color: #173e62; font-weight: 800; }
.trip-assessment-summary p { margin: 10px 0 0; color: #172033; line-height: 1.6; white-space: pre-wrap; }
.trip-assessment-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.trip-assessment-section-heading strong { color: #075421; font-size: 17px; }
.trip-assessment-score-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.trip-assessment-score-grid label { padding: 10px; border: 1px solid #d3dfeb; border-radius: 6px; background: #fff; }
.trip-assessment-score-grid small { color: #52606d; font-weight: 700; }
.trip-assessment-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.trip-assessment-wide { margin-top: 14px; }
.trip-assessment-notes { margin-top: 14px; border: 1px solid #cbd8e5; border-radius: 8px; background: #f8fbfe; }
.trip-assessment-notes summary { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: #173e62; font-weight: 800; cursor: pointer; }
.trip-assessment-notes > p { margin: 0; padding: 0 12px 11px; color: #374151; line-height: 1.55; white-space: pre-wrap; }
.trip-assessment-notes > .trip-assessment-form-grid { padding: 0 12px 12px; margin-top: 0; }
.trip-assessment-form footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.trip-assessment-history { margin-top: 14px; padding: 13px; border: 1px solid #cbd8e5; border-radius: 8px; background: #f8fbfe; }
.trip-assessment-history ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.trip-assessment-history li { display: grid; gap: 8px; padding: 10px; border: 1px solid #cbd8e5; border-radius: 6px; background: #fff; }
.trip-assessment-history-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.trip-assessment-history-row > div { min-width: 0; }
.trip-assessment-history-row button { min-width: 118px; }
.trip-assessment-history li strong { color: #173e62; }
.trip-assessment-history li span { color: #52606d; font-size: 13px; }
.trip-assessment-history li p { margin: 0; color: #374151; line-height: 1.5; white-space: pre-wrap; }
.trip-assessment-history-snapshot { display: grid; gap: 8px; padding: 10px; border-left: 4px solid #2e75b6; background: #f4f8fc; }
.trip-assessment-history-snapshot > p { color: #173e62; font-weight: 800; }
.trip-assessment-history-snapshot dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 0; }
.trip-assessment-history-snapshot dl div { padding: 7px; border: 1px solid #d3dfeb; border-radius: 5px; background: #fff; }
.trip-assessment-history-snapshot dt { color: #52606d; font-size: 12px; font-weight: 800; }
.trip-assessment-history-snapshot dd { margin: 3px 0 0; color: #173e62; font-weight: 800; }
.trip-assessment-pager { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 13px; color: #52606d; font-size: 13px; font-weight: 700; }
.trip-assessment-pager button { min-height: 38px; }

@media (max-width: 760px) {
  .trip-assessments { gap: 10px; }
  .trip-assessments-heading, .trip-assessment-detail > header, .trip-assessment-form > header { align-items: stretch; flex-direction: column; }
  .trip-assessments-heading, .trip-assessment-detail, .trip-assessment-form { padding: 14px 13px; }
  .trip-assessments-heading > div > p, .trip-assessments-heading > div > h3 { display: none; }
  .trip-assessments-heading > button, .trip-assessment-detail-actions button, .trip-assessment-form footer button { width: 100%; }
  .trip-assessment-detail-actions, .trip-assessment-form footer { display: grid; grid-template-columns: 1fr; }
  .trip-assessment-form-grid, .trip-assessment-score-grid { grid-template-columns: 1fr; }
  .trip-assessment-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trip-assessment-filters label:first-child { grid-column: 1 / -1; }
  .trip-assessment-filters { padding: 12px; }
  .trip-assessment-table-head { display: none; }
  .trip-assessment-card { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; min-height: 0; }
  .trip-assessment-card strong { grid-column: 1; }
  .trip-assessment-card span { grid-column: 2; text-align: right; }
  .trip-assessment-card b { grid-column: 1 / -1; }
  .trip-assessment-card p { grid-column: 1 / -1; }
  .trip-assessment-card button { grid-column: 1 / -1; }
  .trip-assessment-card button { width: 100%; }
  .trip-assessment-score-result dl, .trip-assessment-history-snapshot dl { grid-template-columns: 1fr; }
  .trip-assessment-score-grid label { grid-template-columns: minmax(0, 1fr) 96px; align-items: center; column-gap: 10px; padding: 7px 8px; }
  .trip-assessment-score-grid label input { grid-column: 2; grid-row: 1; min-height: 44px; }
  .trip-assessment-score-grid label small { display: none; }
  .trip-assessment-history-row { flex-direction: column; }
  .trip-assessment-history-row button { width: 100%; }
  .trip-assessment-pager { justify-content: stretch; }
  .trip-assessment-pager span { width: 100%; }
  .trip-assessment-pager button { flex: 1; }
}
