/* Telas internas H24. Manrope é fornecida localmente por h24-brand.css. */
.ops-shell{--muted:#526a79;--line:#dce5eb;background:#f3f6f9;font-size:14px;line-height:1.5}
.ops-shell h1,.ops-shell h2,.ops-shell strong{font-weight:600}
.ops-shell h1,.ops-shell h2{letter-spacing:-.035em}
.ops-shell button{font-weight:600;line-height:1.4;transition:background-color .15s,border-color .15s}
.ops-shell button:focus-visible,.ops-shell summary:focus-visible{outline:3px solid #25a89f;outline-offset:3px}
.ops-shell .ops-icon{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.ops-icon-defs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.ops-menu-toggle{display:none}
.ops-sidebar{padding:26px 18px;scrollbar-width:thin}
.ops-sidebar .brand-h24{margin-bottom:24px}
.ops-sidebar .brand-h24 .brand-logo{width:112px}
.nav-caption{font-size:10px;letter-spacing:.14em;margin-bottom:12px}
.ops-sidebar nav{gap:4px}
.ops-sidebar nav button{font-size:13px;min-height:46px;padding:12px 14px;border-radius:9px}
.ops-sidebar nav button[aria-current]{background:#1e454f;color:#b0f3e9}
.ops-sidebar nav span{display:flex;align-items:center;justify-content:center;width:20px}
.sidebar-foot{margin-top:auto;padding-top:22px;line-height:1.6}
.sidebar-foot small{font-size:10px;line-height:1.7}
.ops-topbar{min-height:80px;height:auto;padding-top:17px;padding-bottom:17px}
.ops-topbar>div{min-width:0}
.ops-topbar strong{display:block;line-height:1.5;overflow-wrap:anywhere}
.ops-topbar small{font-size:12px;line-height:1.5;margin-top:3px}
.ops-topbar .secondary{font-size:12px;flex-shrink:0}
.page-heading{align-items:center;margin-bottom:28px}
.page-heading>div:first-child{min-width:0}
.page-heading h1{font-size:30px;font-weight:600;line-height:1.2;margin:9px 0 10px}
.page-heading p{font-size:13px;line-height:1.7;max-width:580px}
.ops-shell .eyebrow{font-size:10px;font-weight:600;letter-spacing:.13em}
.ops-shell .action,.ops-shell .secondary{min-height:46px;border-radius:9px;font-size:13px;font-weight:600;padding:12px 16px}
.ops-shell .action{background:#0c726d}
.ops-shell .action:hover{background:#095b58}
.ops-shell .secondary{border-color:#cddce5}
.metrics{gap:16px;margin-bottom:24px}
.metric{padding:22px;border-radius:14px;box-shadow:0 2px 8px #102f4503}
.metric-label{font-size:12px;line-height:1.5;color:#526a79}
.metric-value{font-size:36px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.2;letter-spacing:-.04em;margin:12px 0 7px}
.metric small{font-size:11px;line-height:1.5}
.metric-icon{font-size:20px}
.surface{border-radius:14px;box-shadow:0 2px 8px #102f4503}
.surface-head{padding:21px 24px;align-items:center}
.surface-head>div{min-width:0}
.surface h2{font-size:17px;line-height:1.4;font-weight:600}
.surface-head p{font-size:12px;line-height:1.6;max-width:650px}
.surface-head button{flex-shrink:0}
.toolbar{padding:20px 24px;gap:14px;align-items:end;background:#fcfdfe}
.toolbar label{font-size:12px;font-weight:600;color:#526a79;margin-bottom:7px}
.toolbar>div{min-width:0}
.toolbar .search-field{min-width:180px}
.ops-shell input,.ops-shell select,.ops-shell textarea{border-radius:9px;min-height:46px;font-size:14px;line-height:1.45;padding:11px 13px}
.ops-shell input:focus,.ops-shell select:focus,.ops-shell textarea:focus{border-color:#289c94;outline:2px solid #bfe6e0;outline-offset:1px;box-shadow:none}
.ops-shell input::placeholder,.ops-shell textarea::placeholder{color:#718696;opacity:1}
.ops-shell label{font-weight:600}
.ops-shell table{font-size:13px;line-height:1.6}
.ops-shell th{font-size:10px;letter-spacing:.065em;font-weight:600;padding:13px 22px}
.ops-shell td{padding:18px 22px;vertical-align:middle;max-width:310px;white-space:normal}
.ops-shell td strong{font-size:15px;font-weight:600;letter-spacing:.01em}
.ops-shell td small{font-size:12px;line-height:1.65;margin-top:4px;white-space:normal;max-width:none;overflow-wrap:anywhere;text-overflow:clip}
.cell-value{min-width:0;overflow-wrap:anywhere}
.cell-identity .cell-value{font-weight:600;color:#18394b}
.cell-identity small{font-weight:400}
.ops-shell .badge{font-size:11px;font-weight:600;line-height:1.4;padding:5px 9px;border-radius:6px;white-space:normal}
.ops-shell .badge.open{color:#22644e;background:#e4f3ec}
.row-actions{gap:8px;flex-wrap:wrap}
.ops-shell .text-button{font-size:12px;min-height:44px;line-height:1.5;border-radius:7px;padding:10px 8px}
.ops-shell .empty{padding:42px 24px;line-height:1.7}
.empty .empty-title{font-size:17px;font-weight:600;line-height:1.4;margin:0 0 8px}
.empty-description{max-width:380px;margin:0 auto;color:#526a79;font-size:13px}
.empty-actions{display:flex;justify-content:center;margin-top:22px}
.empty .empty-actions .action{margin-top:0}
.hint-strip{padding:20px 22px;line-height:1.7;font-size:12px;gap:16px}
.hint-strip strong{font-size:13px;font-weight:600;margin-bottom:4px}
.ops-footer{font-size:11px;line-height:1.6;gap:8px;color:#637d8b}
.ops-shell .notice{font-size:13px;line-height:1.7;border-radius:10px}
/* Só o conteúdo do formulário rola; título e confirmação ficam acessíveis. */
.ops-shell #ops-dialog{padding:0;width:min(640px,calc(100% - 40px));max-height:calc(100dvh - 48px);border-radius:18px;overflow:hidden;box-shadow:0 24px 90px #08203340}
#ops-form{display:flex;flex-direction:column;max-height:calc(100dvh - 50px);margin:0;overflow:hidden}
.ops-shell .dialog-head{flex-shrink:0;padding:23px 26px 20px;margin:0;border-bottom:1px solid var(--line);align-items:center;gap:16px;background:#fff}
.ops-shell .dialog-head h2{font-size:24px;font-weight:600;line-height:1.3;margin:6px 0 0;overflow-wrap:anywhere}
.ops-shell .icon-button{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:10px;display:grid;place-items:center;font-size:24px;font-weight:400}
#dialog-error{flex-shrink:0;margin:18px 24px 0;max-height:25dvh;overflow-y:auto}
.dialog-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:24px;padding:24px 26px;flex:1 1 auto}
#dialog-fields{padding:0;min-width:0;overflow:visible}
.ops-shell dialog label{font-size:13px;line-height:1.5;margin:20px 0 8px}
.ops-shell dialog label:first-child{margin-top:0}
.ops-shell dialog textarea{min-height:110px;line-height:1.6}
.ops-shell .field-note{font-size:12px;line-height:1.65;margin-top:8px;color:#526a79}
.ops-shell label .field-note{display:inline;font-size:11px;font-weight:400}
.ops-shell .field-row{gap:18px;margin-top:20px}
.ops-shell .dialog-actions{position:static;flex-shrink:0;margin:0;padding:17px 26px;border-top:1px solid var(--line);background:#fafcfd;gap:10px}
.ops-shell .dialog-actions .action{min-width:150px;white-space:normal}
.ops-shell .details-grid{gap:20px;margin:0}
.ops-shell .details-grid dt{font-size:12px;color:#607889;margin-bottom:5px;line-height:1.5}
.ops-shell .details-grid dd{font-size:14px;font-weight:500;line-height:1.6;overflow-wrap:anywhere}
.detail-notes{font-size:13px;margin:24px 0 0;padding-top:20px;border-top:1px solid var(--line)}
.ops-shell .dialog-summary{padding:18px;line-height:1.8;font-size:13px;margin-bottom:22px}
.ops-shell .dialog-summary strong{font-size:22px;margin-bottom:6px}
.flow-note{font-size:13px;padding:14px;line-height:1.7}
.lookup-actions{gap:10px}
.lookup-actions a{display:inline-flex;align-items:center;min-height:44px;font-size:12px;line-height:1.6;padding:10px 0}
.aircraft-summary{padding:16px;font-size:13px;line-height:1.6;border:1px solid #dce8ed}
.arrival-notices{padding:16px;font-size:13px;line-height:1.7}
.pilot-change{font-size:13px;border-bottom:1px solid var(--line);margin-bottom:20px;padding-bottom:4px}
.pilot-change summary{min-height:44px;font-weight:500;line-height:1.6}
.extra-operator-row label{margin:0!important}
.extra-operator-row .icon-button{margin-bottom:0}
@media(max-width:1100px) and (min-width:761px){
  .ops-sidebar{padding:22px 14px}
  .ops-sidebar .brand-h24 .brand-logo{width:100px}
  .metric{padding:17px}
  .page-heading{align-items:flex-start}
  .ops-shell td,.ops-shell th{padding-left:16px;padding-right:16px}
}
@media(max-width:760px){
  .ops-shell{min-height:100dvh}
  .ops-sidebar{position:sticky;top:0;z-index:20;padding:14px 20px;box-shadow:0 3px 14px #08203310;max-height:85dvh;overflow-y:auto}
  .ops-sidebar .brand-h24{margin:0;width:max-content;max-width:calc(100% - 105px)}
  .ops-sidebar .brand-h24 .brand-logo{width:64px}
  .ops-menu-toggle{display:flex;gap:9px;align-items:center;justify-content:center;position:absolute;right:20px;top:20px;min-height:44px;padding:10px 14px;background:#ffffff0c;border:1px solid #ffffff38;border-radius:9px;color:#fff;font-size:13px}
  .ops-menu-toggle[aria-expanded=true]{background:#1e454f;border-color:#7fcfc1}
  .ops-sidebar nav{display:none;overflow:visible;padding:16px 0 2px;margin-top:14px;border-top:1px solid #ffffff1f;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .ops-navigation-open .ops-sidebar nav{display:grid}
  .ops-sidebar nav button{min-height:48px;font-size:12px;white-space:normal;padding:11px 10px;gap:9px}
  .ops-sidebar nav span{display:flex}
  .ops-sidebar nav b{font-size:11px}
  .ops-topbar{min-height:76px;padding:15px 20px;gap:12px}
  .ops-topbar strong{font-size:13px}
  .ops-topbar small{font-size:11px}
  .ops-topbar .secondary{font-size:11px;min-height:44px;padding:10px 12px}
  .ops-main{padding:26px 18px 24px}
  .page-heading{margin-bottom:24px}
  .page-heading h1{font-size:27px;line-height:1.25;margin:8px 0 10px}
  .page-heading p{font-size:13px;line-height:1.6}
  .page-actions{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;margin-top:20px}
  .page-actions .action,.page-actions .secondary{width:100%;min-height:48px;padding:12px;font-size:12px;white-space:normal}
  .metrics{gap:12px;margin-bottom:22px}
  .metric{padding:17px 15px;min-height:130px}
  .metric-label{font-size:12px;line-height:1.5}
  .metric-value{font-size:31px;line-height:1.15;margin:10px 0 6px}
  .metric small{font-size:11px;line-height:1.55}
  .surface-head{padding:18px;gap:12px;flex-wrap:wrap}
  .surface h2{font-size:17px}
  .surface-head p{font-size:12px}
  .surface-head .secondary{width:100%}
  .toolbar{display:flex;padding:18px;gap:14px}
  .toolbar .search-field{flex:1 1 100%;min-width:0}
  .toolbar>div{flex:1 1 calc(50% - 7px);min-width:0}
  .toolbar>.secondary{flex:1 1 calc(50% - 7px);min-width:0;white-space:normal;min-height:48px}
  .toolbar label{font-size:12px}
  .ops-shell input,.ops-shell select,.ops-shell textarea{min-height:48px;font-size:16px}
  .ops-shell .responsive-table{overflow:visible}
  .ops-shell table.responsive-table{display:block;width:100%;white-space:normal}
  .ops-shell .responsive-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .ops-shell .responsive-table tbody{display:grid;padding:16px;gap:14px}
  .ops-shell .responsive-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:18px;background:#fff;border:1px solid var(--line);border-radius:12px;min-width:0}
  .ops-shell .responsive-table td{display:block;order:1;min-width:0;width:auto;max-width:none;white-space:normal;overflow:visible;border:0;padding:0;font-size:13px;line-height:1.65;overflow-wrap:anywhere}
  .ops-shell .responsive-table td::before{content:attr(data-label);display:block;font-size:10px;letter-spacing:.06em;text-transform:uppercase;font-weight:600;color:#637a89;margin-bottom:6px}
  .ops-shell .responsive-table td.cell-identity{order:0;grid-column:1/-1;padding-bottom:13px;border-bottom:1px solid #e8eef2;font-size:16px;line-height:1.5}
  .ops-shell .responsive-table td.cell-identity strong{font-size:19px;letter-spacing:.015em}
  .ops-shell .responsive-table td.cell-identity small{font-size:12px;font-weight:400;color:#526a79}
  .ops-shell .responsive-table td:not(.cell-identity):is([data-label="Cliente"],[data-label="Contato"],[data-label="Cidade / empresa"],[data-label="Recado"]){grid-column:1/-1;order:2}
  .ops-shell .responsive-table td.cell-actions{order:3;grid-column:1/-1;padding-top:14px;border-top:1px solid #e8eef2}
  .ops-shell .responsive-table td.cell-identity::before,.ops-shell .responsive-table td.cell-actions::before{display:none}
  .cell-actions>.cell-value,.cell-actions .row-actions{display:flex;gap:10px;flex-wrap:wrap}
  .ops-shell .cell-actions button{flex:1;min-width:0;width:auto;min-height:46px;padding:11px 12px;font-size:13px;line-height:1.5;white-space:normal;text-decoration:none;background:#edf6f4;border:1px solid #d1e8e2;border-radius:8px}
  .ops-shell .cell-actions .row-actions{width:100%}
  .ops-shell .empty{padding:36px 22px}
  .empty .empty-title{font-size:17px}
  .empty-description{font-size:13px;line-height:1.7}
  .empty-actions .action{max-width:100%;white-space:normal}
  .hint-strip{padding:18px;font-size:12px;line-height:1.7}
  .hint-strip strong{font-size:14px}
  .ops-footer{font-size:11px;margin-top:24px;flex-direction:column;gap:4px}
  .ops-shell #ops-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;inset:0}
  #ops-form{height:100%;max-height:100dvh}
  .ops-shell .dialog-head{padding:18px 20px;gap:12px}
  .ops-shell .dialog-head h2{font-size:22px;line-height:1.3}
  .dialog-body{padding:22px 20px;scroll-padding-block:24px}
  #dialog-error{margin:14px 20px 0}
  .ops-shell .dialog-actions{padding:14px 20px max(14px,env(safe-area-inset-bottom));gap:10px}
  .ops-shell .dialog-actions .action{flex:1;min-width:0;min-height:48px;font-size:13px}
  .ops-shell .dialog-actions .secondary{min-width:86px;min-height:48px;font-size:13px}
  .ops-shell .field-row{grid-template-columns:1fr;gap:18px}
  .ops-shell .details-grid{grid-template-columns:1fr;gap:18px}
  .ops-shell .details-grid>div{padding-bottom:14px;border-bottom:1px solid #edf1f4}
  .lookup-actions{align-items:stretch}
  .lookup-actions .secondary{flex:1;white-space:normal;font-size:13px}
  .ops-shell .field-note{font-size:12px}
  .history-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .history-filters>div{grid-column:1/-1}
}
@media(max-width:350px){
  .ops-main{padding-left:14px;padding-right:14px}
  .ops-shell .responsive-table tbody{padding:12px}
  .ops-shell .responsive-table tr{padding:15px;gap:14px}
  .ops-sidebar nav{grid-template-columns:1fr 1fr}
  .ops-sidebar nav button{padding-left:7px;padding-right:7px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){.ops-shell button{transition:none}}

.ops-sidebar nav button.ops-logout{margin-top:8px;border-top:1px solid #ffffff24;border-radius:0;padding-top:18px;color:#d6e4ec}@media(max-width:760px){.ops-sidebar nav button.ops-logout{grid-column:1/-1}}
