.flight-logbook-link-list{display:flex;flex-wrap:wrap;gap:8px;min-height:40px;align-items:center;margin-bottom:10px}
.flight-logbook-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;border:1px solid #8ca7c5;border-left:4px solid #0b63b6;border-radius:6px;background:#edf5ff;color:#102b4e;padding:6px 8px;font-weight:700}
.flight-logbook-chip.is-digital{border-left-color:#16834a;background:#eef9f2}
.flight-logbook-chip>span{overflow-wrap:anywhere}
.flight-logbook-chip button{border:0;background:transparent;color:#0b3f75;padding:4px;min-width:32px;min-height:32px;font-weight:700;cursor:pointer}
.flight-logbook-chip button:focus-visible,.flight-logbook-add:focus-visible,.flight-logbook-function-options button:focus-visible,.flight-logbook-admin button:focus-visible,.flight-logbook-viewer button:focus-visible,.flight-logbook-candidate-row:has(input:focus-visible){outline:3px solid #f1bb33;outline-offset:2px}
.flight-logbook-empty,.flight-logbook-help{color:#52657d;font-size:.9rem}
.flight-logbook-add,.flight-logbook-function-options button,.flight-logbook-admin button,.flight-logbook-viewer button{border:1px solid #0b3f75;border-radius:6px;background:#0b3f75;color:#fff;min-height:40px;padding:8px 12px;font-weight:700;cursor:pointer}
.flight-logbook-function-options{display:flex;gap:10px;flex-wrap:wrap}
.flight-logbook-function-options button{display:grid;gap:4px;flex:1 1 260px;text-align:left;align-content:center}
.flight-logbook-function-label{font-size:1rem}
.flight-logbook-function-description{font-size:.82rem;font-weight:500;line-height:1.3;color:rgba(255,255,255,.9)}
.flight-logbook-function-options button.active{background:#16834a;border-color:#16834a}
.flight-logbook-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border:1px solid #8ca7c5;border-radius:8px;padding:0;color:#102b4e}
.flight-logbook-dialog::backdrop{background:rgba(8,28,52,.58)}
.flight-logbook-dialog form{display:flex;flex-direction:column;max-height:calc(100dvh - 26px)}
.flight-logbook-dialog header,.flight-logbook-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;background:#eef4fb}
.flight-logbook-dialog header h3{margin:0}
.flight-logbook-dialog header button{border:0;background:transparent;font-size:1.5rem;min-width:40px;min-height:40px}
.flight-logbook-dialog-body{display:grid;gap:12px;padding:16px;overflow:auto}
.flight-logbook-dialog label,.flight-logbook-selector-grid label{display:grid;gap:5px;font-weight:700}
.flight-logbook-dialog select,.flight-logbook-dialog input,.flight-logbook-selector-grid select,.flight-logbook-admin input{width:100%;min-height:42px;border:1px solid #8ca7c5;border-radius:5px;background:#fff;color:#102b4e;padding:7px 9px;font-size:1rem}
.flight-logbook-dialog [data-physical-fields],.flight-logbook-dialog [data-digital-fields]{display:grid;gap:12px}
.flight-logbook-dialog [hidden]{display:none!important}
.flight-logbook-selector-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.flight-logbook-table-wrap{max-width:100%;overflow:auto;overscroll-behavior:contain}
.flight-logbook-stage-table{min-width:960px}
.flight-logbook-warning{border-left:4px solid #c43b2f;background:#fff0ee;padding:10px;color:#711c15;font-weight:700}
.flight-logbook-acc-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;margin-top:12px}
.flight-logbook-acc-summary span{border:1px solid #c8d6e6;background:#f4f7fb;padding:8px}
.flight-logbook-admin-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.flight-logbook-admin fieldset{border:1px solid #aabdd2;padding:12px;margin:0 0 12px}
.flight-logbook-admin fieldset>button{margin-top:10px}
.flight-logbook-viewer[hidden],.flight-logbook-function-card[hidden]{display:none!important}
.flight-logbook-viewer [hidden]{display:none!important}
#diaryPage>[hidden],#h135DiaryPage>[hidden]{display:none!important}
.flight-logbook-stage-table .has-conflict{background:#fff0ee}
.flight-logbook-view-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:14px 0 8px}
.flight-logbook-view-heading h3{margin:0;color:#102b4e}
.flight-logbook-structured-layout{display:grid;gap:12px;min-width:0}
.flight-logbook-structured-layout>.card,.flight-logbook-structured-layout>.diary-summary-row{margin:0;min-width:0}
.flight-logbook-layout-scroll{max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.flight-logbook-structured-layout .etapas-table{min-width:980px}
.flight-logbook-structured-layout input:disabled,.flight-logbook-structured-layout select:disabled,.flight-logbook-structured-layout textarea:disabled{opacity:1;color:#102b4e;background:#f5f8fc;-webkit-text-fill-color:#102b4e;cursor:default}
.flight-logbook-structured-layout .etapa-row.has-conflict{background:#fff0ee}
.flight-logbook-open-record,.flight-logbook-insert-record{display:block!important;width:100%;min-width:58px!important;min-height:30px!important;margin-top:5px!important;padding:4px 5px!important;font-size:.72rem!important;line-height:1.15}
.flight-logbook-insert-record{background:#16834a!important;border-color:#16834a!important}
.flight-logbook-layout-empty{margin:8px 0 12px;border-left:4px solid #8ca7c5;background:#f4f7fb;color:#52657d;padding:10px 12px}
.flight-logbook-digital-nav{display:flex;align-items:center;gap:8px}
.flight-logbook-digital-nav button{min-height:36px;padding:6px 10px}
.flight-logbook-digital-nav button:disabled{opacity:.45;cursor:not-allowed}
.flight-logbook-digital-nav output{min-width:64px;text-align:center;font-weight:700;color:#52657d}
.flight-logbook-candidate-dialog{width:min(780px,calc(100vw - 24px))}
.flight-logbook-candidate-filters{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(260px,1.3fr);gap:12px;align-items:start}
.flight-logbook-candidate-slot{margin:0;border-left:4px solid #16834a;background:#eef9f2;padding:9px 11px;font-weight:700}
.flight-logbook-candidate-list{display:grid;gap:7px;max-height:min(44dvh,420px);overflow:auto;padding:2px;overscroll-behavior:contain}
.flight-logbook-candidate-row{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;border:1px solid #b7c8da;border-radius:6px;background:#fff;padding:10px;cursor:pointer}
.flight-logbook-candidate-row:has(input:checked){border-color:#16834a;background:#eef9f2}
.flight-logbook-candidate-row input{width:18px!important;min-height:18px!important;margin:3px 0 0;padding:0}
.flight-logbook-candidate-row>span{display:grid;grid-template-columns:auto auto 1fr;gap:4px 10px;align-items:center;min-width:0}
.flight-logbook-candidate-row strong,.flight-logbook-candidate-row b{color:#102b4e}
.flight-logbook-candidate-row span span,.flight-logbook-candidate-row small{grid-column:1/-1;overflow-wrap:anywhere}
.flight-logbook-candidate-row small{color:#52657d}
.flight-logbook-candidate-pagination{display:flex;align-items:center;justify-content:center;gap:10px}
.flight-logbook-candidate-pagination output{min-width:96px;text-align:center;font-weight:700;color:#52657d}
.flight-logbook-candidate-pagination button:disabled,.flight-logbook-dialog footer button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:640px){
  .flight-logbook-function-options{display:grid;grid-template-columns:1fr}
  .flight-logbook-chip{display:grid;grid-template-columns:1fr auto auto;width:100%}
  .flight-logbook-dialog footer{position:sticky;bottom:0}
  .flight-logbook-view-heading{align-items:stretch}
  .flight-logbook-view-heading h3{width:100%}
  .flight-logbook-digital-nav{justify-content:space-between;width:100%}
  .flight-logbook-candidate-filters{grid-template-columns:1fr}
  .flight-logbook-candidate-row>span{grid-template-columns:1fr}
  .flight-logbook-candidate-row span span,.flight-logbook-candidate-row small{grid-column:auto}
  .flight-logbook-candidate-pagination{justify-content:space-between}
}
