/* Refinamento v0.7.2: hierarquia de navegação, formulários e planejamento. */
.operation-page-heading { display:flex;align-items:center;justify-content:space-between;gap:16px; }
.operation-page-heading>.eyebrow { margin:0;color:#80a9d9;font-size:10px;font-weight:700;letter-spacing:.08em; }
.operation-page-heading>div { min-width:0; }
.operation-page-heading>div>p:last-child { margin-bottom:0; }
.operation-context-link { display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:8px 12px;border:1px solid #29435f;border-radius:8px;background:#10243a;color:#c9def7;text-decoration:none;font-size:12px;font-weight:650;white-space:nowrap; }
.operation-context-link:hover { border-color:#3e70b5;background:#173252;color:#fff; }

.appointment-page { display:grid;gap:18px;min-width:0;padding:22px;border:1px solid #233a55;border-radius:14px;background:#0c1b2d;color:#edf4fc;box-shadow:0 10px 26px #02091424; }
.appointment-page[hidden] { display:none; }
body.appointments-active .page-heading,body.appointments-active .demo-notice,body.appointments-active .data-toolbar { display:none; }
.appointment-page-heading { display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:17px;border-bottom:1px solid #233a55; }
.appointment-page-heading h2 { margin:3px 0 5px;color:#edf4fc;font-size:23px; }
.appointment-page-heading p:not(.eyebrow) { margin:0;color:#9aadc3;font-size:13px; }
.appointment-page-heading .primary { display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:10px 16px;white-space:nowrap; }
.appointment-page-heading .primary svg { width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8; }
.appointment-page .appointment-filters { display:grid;grid-template-columns:repeat(3,minmax(140px,1fr)) auto;align-items:end;gap:12px;padding:15px;border:1px solid #233a55;border-radius:11px;background:#0a192b; }
.appointment-page .appointment-filters>div { display:grid;gap:6px;min-width:0; }
.appointment-page .appointment-filters label { color:#a9bad0;font-size:11px;font-weight:650; }
.appointment-page .appointment-filters select,.appointment-page .appointment-filters input { width:100%;min-height:38px; }
.appointment-page .appointment-filters>button { min-height:38px;white-space:nowrap; }
.appointment-list-heading { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.appointment-list-heading h3 { margin:0;color:#eaf2fb;font-size:15px; }
.appointment-list-heading p { margin:4px 0 0;color:#91a7c0;font-size:11px; }
.appointment-list-heading>span { color:#91a7c0;font-size:11px;font-weight:650; }
.appointment-page .appointment-list { display:grid;gap:9px; }
.appointment-page .appointment-card { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:15px;padding:14px 16px;border:1px solid #263e59;border-left:3px solid #1769ed;border-radius:10px;background:#10243a; }
.appointment-page .appointment-card.overdue { border-left-color:#ed6673; }
.appointment-page .appointment-card.approaching { border-left-color:#e8ad4c; }
.appointment-page .appointment-card>div:first-child { display:grid;gap:5px;min-width:0; }
.appointment-page .appointment-card strong { color:#edf4fc; }
.appointment-page .appointment-card span,.appointment-page .appointment-card small { color:#9aadc3;line-height:1.5; }
.appointment-page .appointment-card .record-actions { justify-content:flex-end;margin:0; }
.appointment-page .empty-state { min-height:100px;display:grid;place-content:center;text-align:center; }

#record-form .record-form-section { display:grid;gap:14px;margin:0 0 14px;padding:15px;border:1px solid #263e59;border-radius:11px;background:#0a192b; }
#record-form .record-form-section>header { display:flex;align-items:flex-start;gap:11px;padding-bottom:11px;border-bottom:1px solid #223950; }
#record-form .record-form-section>header>span { display:grid;place-items:center;width:27px;height:27px;flex:0 0 27px;border:1px solid #27518a;border-radius:8px;background:#122e50;color:#8dbbff;font-size:10px;font-weight:750; }
#record-form .record-form-section>header h3 { margin:0;color:#edf4fc;font-size:14px; }
#record-form .record-form-section>header p { margin:3px 0 0;color:#91a7c0;font-size:10px;line-height:1.5; }
#record-form .record-form-section>.form-grid { gap:13px 15px; }
#record-form .field { display:grid;align-content:start;gap:6px; }
#record-form .field>label { color:#c6d3e1;font-size:11px;font-weight:650; }
#record-form .field small,.privacy-note { color:#8ea4bc;line-height:1.55; }
#record-form .address-actions>div { display:flex;flex-wrap:wrap;gap:8px; }
#record-form .address-actions>div button { min-height:39px; }
#record-form .location-state { line-height:1.55; }
#record-dialog .dialog-actions { position:sticky;bottom:-27px;margin:18px -27px -27px;padding:14px 27px;background:#0d1e31ee;backdrop-filter:blur(10px); }

body.route-planning-active .route-workspace { gap:8px; }
body.route-planning-active .route-controls { gap:7px; }
body.route-planning-active .route-control-block { padding:10px; }
body.route-planning-active .route-operator-list { gap:3px;margin-top:7px; }
body.route-planning-active .route-operator-option { min-height:42px;padding:6px 7px; }
body.route-planning-active .route-advanced-filters { padding-top:5px;border-top:1px solid #20354a; }
body.route-planning-active .route-advanced-filters summary { padding:3px 0;color:#a9bad0;font-size:10px;cursor:pointer; }
body.route-planning-active .route-advanced-filters>label { margin-top:7px; }
body.route-planning-active .route-company-filters { gap:6px;margin-top:8px; }
body.route-planning-active .route-company-list-heading { margin-top:8px;padding:6px 0; }
body.route-planning-active .route-company-groups { gap:6px; }
body.route-planning-active .route-operator-group { padding:7px; }
body.route-planning-active .route-company { padding:6px 3px; }
body.route-planning-active .route-result-panel { overflow:auto; }

@media(max-width:900px) {
  .appointment-page { padding:16px; }
  .appointment-page .appointment-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .appointment-page .appointment-filters>button { justify-self:start; }
}
@media(max-width:560px) {
  .operation-page-heading { align-items:flex-start;flex-direction:column; }
  .appointment-page { gap:14px;padding:13px; }
  .appointment-page-heading { align-items:stretch;flex-direction:column;gap:12px; }
  .appointment-page-heading h2 { font-size:20px; }
  .appointment-page-heading .primary { justify-content:center;width:100%; }
  .appointment-page .appointment-filters { grid-template-columns:1fr;gap:10px;padding:12px; }
  .appointment-page .appointment-filters>button { width:100%; }
  .appointment-page .appointment-card { grid-template-columns:1fr;gap:10px;padding:12px; }
  .appointment-page .appointment-card .record-actions { justify-content:flex-start; }
  #record-form .record-form-section { padding:11px; }
  #record-form .record-form-section>.form-grid { grid-template-columns:1fr; }
  #record-form .record-form-section .wide { grid-column:1; }
  #record-dialog .dialog-actions { bottom:-20px;margin:14px -20px -20px;padding:12px 20px; }
}
@media print {
  .printing-executive-report .exec-heading:before { content:"";display:block;top:0;right:0;width:156px;height:44px;background:url("/assets/milebs-wordmark.svg") center/contain no-repeat; }
  .printing-executive-report .exec-heading>div:first-child { padding-top:48px; }
}
