#fleet-details > .inspector-close { margin-bottom: 10px; }
#fleet-details[data-panel='summary'] > .inspector-close, #fleet-details[data-panel='summary'] #selected-id { display: none; }
#fleet-details .vehicle-heading { margin-bottom: 12px; }
#fleet-details .inspector-tabs { margin: 8px 0 10px; overflow-x: auto; scrollbar-width: thin; }
#fleet-details .inspector-tabs .tab { white-space: nowrap; font-size: .84rem; }
.trip-order-line { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; font-size: .82rem; }
.trip-order-line strong { color: #234f61; }
#trip-live-status { color: #708892; }
.trip-order-line #trip-live-status { display: none; }
.trip-overview .trip-summary { margin: 0 0 12px; padding: 13px; }
.trip-overview .trip-summary > span:first-child { color: #2e596c; font-size: .88rem; line-height: 1.55; }
.trip-overview .trip-summary > strong { font-size: 1.1rem; margin-block: 5px; }
.trip-overview .trip-summary #remaining { display: none; }
.trip-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.trip-kpis > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 11px; border: 1px solid #dce7eb; border-radius: 6px; background: #f9fbfc; }
.trip-kpis span { font-size: .82rem; color: #5f7b88; line-height: 1.4; }
.trip-kpis strong { color: #234c5e; font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
.trip-kpis small { font-size: .75rem; color: #748b95; line-height: 1.4; }
.trip-window { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: .82rem; color: #587481; }
.trip-window input { flex: 0 0 70px; width: 70px; min-height: 34px; padding: 5px 8px; }
#trip-coverage { margin: 7px 0 12px; }
.trip-resources { margin: 7px 0 12px; font-size: .76rem; color: #718892; line-height: 1.6; }
.trip-condition { padding: 11px 12px; margin: 12px 0; border: 1px solid #ecdfc6; border-radius: 6px; background: #fff7e9; color: #8a672e; font-size: .82rem; line-height: 1.65; }
.trip-first { display: grid; gap: 3px; margin: 8px 0 12px; padding: 9px 11px; border-left: 3px solid #38988e; background: #eef7f5; border-radius: 4px; }
.trip-first > span { font-size: .78rem; color: #5e8585; }
.trip-first strong { font-size: .88rem; color: #2d615f; line-height: 1.5; }
.trip-first small { font-size: .78rem; color: #628382; line-height: 1.5; }
.trip-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 7px; z-index: 5; padding: 8px 0; margin-bottom: 12px; background: #fff; border-top: 1px solid #e1e9ed; }
.trip-actions .button { min-width: 0; white-space: normal; font-size: .8rem; line-height: 1.45; }
.trip-editor { padding: 14px; margin: 14px 0 24px; border: 1px solid #b6d5d0; border-radius: 8px; background: #f9fcfb; }
.trip-editor > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.trip-editor h3 { font-size: 1rem; }
.trip-editor .field { margin-top: 13px; font-size: .875rem; line-height: 1.5; }
.trip-editor .form-actions { background: #f9fcfb; }
.trip-steps { margin: 12px 0; padding: 0; list-style: none; }
.trip-step { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding: 11px 0 11px 12px; border-left: 2px solid #d5e5e8; border-bottom: 1px solid #e7edf0; }
.trip-step > div { flex: 1; min-width: 0; }
.trip-step strong { display: block; font-size: .875rem; line-height: 1.5; color: #305363; }
.trip-step span, .trip-step small { display: block; margin-top: 4px; font-size: .77rem; line-height: 1.5; color: #718893; }
.trip-step .button { flex-shrink: 0; font-size: .75rem; padding: 6px 8px; }
.trip-step.program { border-left-color: #c8a262; }
.trip-step.current { border-left-color: #43998d; background: #f4f9f8; }
.context-details { border-top: 1px solid #e1e9ed; margin-top: 15px; padding-top: 12px; }
.context-details > summary { color: #315c6d; font-size: .875rem; font-weight: 600; }
.context-details .tachograph-panel { margin-bottom: 0; }
#trip-events p { padding: 10px 0; border-bottom: 1px solid #e7edf0; font-size: .82rem; line-height: 1.6; }
#trip-events time { display: block; color: #78909a; font-size: .75rem; }
.plan-stages { list-style: none; padding: 0; margin: 12px 0; }
.plan-stage { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0; border-bottom: 1px solid #dce7eb; }
.plan-stage-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.plan-stage-info > span, .plan-stage-info small { display: block; font-size: .8125rem; line-height: 1.6; color: #557482; }
.plan-stage-info strong { display: block; font-size: .9375rem; line-height: 1.55; color: #234f61; }
.plan-fixed { font-size: .8125rem; color: #537982; }
.plan-stage-menu { flex: 0 0 100%; }
.plan-stage-menu > summary { display: flex; align-items: center; justify-content: center; min-height: 40px; width: 100%; border: 1px solid #d4e3e7; border-radius: 5px; font-size: .875rem; color: #315e6b; cursor: pointer; list-style: none; background: #f8fbfc; }
.plan-stage-menu > summary::-webkit-details-marker { display: none; }
.plan-stage-menu[open] > summary { background: #e5f3f1; }
.plan-stage-menu > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 7px; }
.plan-stage-menu button { min-height: 44px; border: 1px solid #d8e5e9; border-radius: 5px; background: #fff; padding: 7px; color: #315e6b; font-size: .875rem; }
.plan-stage-menu button:disabled { opacity: .45; cursor: default; }
.plan-stage-menu button.danger, .button.danger { color: #a53e32; border-color: #e7c7c2; }
.plan-remove { background: #fff6f3; padding: 14px; margin: 14px 0; border: 1px solid #ebcdc5; border-radius: 6px; line-height: 1.65; font-size: .875rem; }
.plan-remove > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#trip-plan-manager[aria-busy='true'] .plan-stage-menu { pointer-events: none; opacity: .6; }
#trip-plan-manager .hint { font-size: .875rem; line-height: 1.6; }
.trip-kpis span, .trip-step strong { font-size: .875rem; }
.trip-kpis small { color: #58727e; }
.trip-first > span, .trip-first small { color: #426e70; }
body[data-trip-editing='true'] .trip-actions { position: static; }
.plan-undo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.plan-undo .hint { flex: 1; min-width: 160px; margin: 0; }
.plan-impact { margin: 18px 0; padding: 14px; border: 1px solid #a8cbc5; border-radius: 8px; background: #f9fcfb; min-width: 0; }
.plan-impact > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.plan-impact h3 { font-size: 1rem; color: #24545b; }
.plan-impact h4 { font-size: .875rem; color: #315867; margin: 18px 0 8px; }
#plan-impact-state { padding: 4px 7px; color: #3b7273; background: #e4f1ed; font-size: .8125rem; border-radius: 4px; }
.impact-unsaved { padding: 10px; background: #e9f5f1; color: #315f5c; font-size: .875rem; line-height: 1.6; margin: 12px 0; }
.impact-delta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.impact-delta > div { padding: 11px; border: 1px solid #d7e7e4; background: #fff; border-radius: 5px; }
.impact-delta span { display: block; font-size: .8125rem; line-height: 1.6; color: #54737d; }
.impact-delta strong { display: block; font-size: 1rem; margin-top: 5px; color: #24545b; }
.impact-delta small { display: block; font-size: .8125rem; line-height: 1.5; margin-top: 5px; color: #50767a; }
.cargo-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 11px 0 0; }
.cargo-strip > span { font-size: .8125rem; line-height: 1.6; color: #4c6d7b; }
.cargo-badge { display: inline-block; padding: 4px 7px; border-radius: 4px; font-size: .8125rem; line-height: 1.5; color: #536977; background: #edf1f4; }
.cargo-badge.loaded { color: #286c61; background: #e5f4ee; }
.cargo-badge.empty { color: #8b6028; background: #fff1dd; }
.logistics-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 9px; margin: 14px 0; }
.logistics-toolbar label { display: grid; gap: 7px; flex: 1; min-width: 160px; font-size: .875rem; }
.logistics-toolbar select { min-width: 0; width: 100%; font-size: .875rem; }
.logistics-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.logistics-kpis > div { padding: 11px; border: 1px solid #dce7e7; border-radius: 5px; background: #f7fbfa; }
.logistics-kpis span { display: block; font-size: .8125rem; color: #52737d; line-height: 1.55; }
.logistics-kpis strong { display: block; font-size: 1.05rem; color: #305b65; margin-top: 6px; }
.logistics-advice { padding: 11px; background: #eff7f4; color: #3b6964; font-size: .875rem; line-height: 1.7; margin: 12px 0; }
.logistics-orders { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .8125rem; }
.logistics-orders th, .logistics-orders td { padding: 9px 4px; border-bottom: 1px solid #e0e8e9; text-align: right; overflow-wrap: anywhere; line-height: 1.5; font-weight: 400; }
.logistics-orders th:first-child { width: 37%; text-align: left; }
.logistics-orders thead { color: #496e7b; }
.logistics-record { display: grid; gap: 4px; padding: 11px 0; border-bottom: 1px solid #e0e8e9; font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; }
.logistics-record small { font-size: .8125rem; color: #68838d; }
#trip-logistics .hint { font-size: .8125rem; line-height: 1.65; }
.mobile-cargo { display: none; }
@media(max-width:700px) { .logistics-toolbar select { font-size: 16px; min-height: 44px; } .logistics-toolbar .button { min-height: 44px; } .mobile-cargo { display: block; margin-top: 6px; font-size: .8125rem; color: #5d7783; } }
.impact-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .8125rem; line-height: 1.55; }
.impact-table th, .impact-table td { text-align: left; padding: 9px 6px; border-bottom: 1px solid #dce7e6; vertical-align: top; overflow-wrap: anywhere; }
.impact-table thead th { color: #4b6c77; font-weight: 600; }
.impact-table th:first-child { width: 38%; }
.impact-table tbody th { color: #3d6470; font-weight: 500; }
.impact-table small, .impact-rests small { display: block; font-size: .75rem; color: #587b7c; margin-top: 4px; }
.impact-rests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.impact-rests p { border-bottom: 1px solid #dce7e6; padding: 9px 0; font-size: .8125rem; line-height: 1.6; }
.impact-actions { position: sticky; bottom: 0; z-index: 9; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 7px; margin-top: 14px; padding: 9px 0; background: #f9fcfb; border-top: 1px solid #cfdedb; }
.impact-actions .button { min-width: 0; white-space: normal; font-size: .875rem; }
#plan-impact-refresh { grid-column: 1 / -1; min-height: 40px; font-size: .875rem; }
@media(max-width:700px) { .plan-impact { padding: 10px; } .impact-rests { grid-template-columns: minmax(0, 1fr); } .impact-table { font-size: .875rem; } .impact-table th, .impact-table td { padding: 8px 4px; } .impact-table th:first-child { width: 38%; } .impact-actions .button { min-height: 44px; } }
@media(max-width:700px) { .trip-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; } .trip-kpis > div { padding: 10px; } .trip-kpis strong { font-size: 1.05rem; } .trip-kpis span { font-size: .8rem; } .trip-kpis small { font-size: .75rem; } .trip-editor { padding: 11px; } .trip-actions { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } .trip-actions .button { font-size: .875rem; } .trip-step { flex-wrap: wrap; } }
