:root { --ink:#102a43; --muted:#627d98; --line:#d9e2ec; --surface:#fff; --soft:#f0f4f8; --navy:#102a43; --sky:#2f80ed; --green:#157f66; --amber:#f6c453; --danger:#b42318; }
* { box-sizing:border-box; }
body { margin:0; font-family:Inter, Aptos, Arial, sans-serif; color:var(--ink); background:#edf2f7; line-height:1.35; }
button,input,select { font:inherit; }
.app-header { display:flex; justify-content:space-between; gap:1.5rem; align-items:center; padding:1.35rem clamp(1rem,4vw,4rem); background:var(--navy); color:#fff; }
h1,h2,p { margin:0; } h1 { font-size:1.6rem; } h2 { font-size:1.2rem; } .eyebrow { text-transform:uppercase; letter-spacing:.1em; font-size:.72rem; font-weight:700; color:var(--muted); } .app-header .eyebrow{color:#9fb3c8;}
.workspace { max-width:1500px; margin:0 auto; padding:1.25rem clamp(1rem,4vw,4rem) 3rem; }
.header-actions { display:flex; gap:.55rem; flex-wrap:wrap; justify-content:flex-end; }.button { border:1px solid transparent; border-radius:.45rem; padding:.62rem .85rem; cursor:pointer; font-weight:700; }.primary{background:#fff;color:var(--navy)}.secondary{background:var(--sky);color:#fff}.ghost{background:transparent;color:#fff;border-color:#486581}.button:hover{filter:brightness(.96)}
.alert { background:#fff8e1; border-left:4px solid var(--amber); padding:.8rem 1rem; margin-bottom:1rem; font-size:.9rem; }.plan-meta,.profile,.nav-log,.map-section,.print-sheet { background:var(--surface); border:1px solid var(--line); border-radius:.7rem; margin-bottom:1rem; padding:1rem; box-shadow:0 1px 2px #102a4308; }
.plan-meta { display:grid; grid-template-columns:2fr 1fr 1fr 1.3fr 1.6fr; gap:.8rem; }.profile-grid { display:grid; grid-template-columns:repeat(5,minmax(120px,1fr)); gap:.75rem; margin-top:.9rem; } label { display:grid; gap:.28rem; color:#334e68; font-size:.8rem; font-weight:700; } input,select { width:100%; min-width:0; border:1px solid #bcccdc; border-radius:.3rem; padding:.48rem .5rem; background:#fff; color:var(--ink); font-size:.95rem; } input:focus,select:focus { outline:2px solid #90cdf4; border-color:#2f80ed; }.coordinate-pair{display:grid;grid-template-columns:1fr 1fr;gap:.35rem}
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; }.save-state,.map-mode { font-size:.78rem; color:var(--green); font-weight:700; }.table-note{color:var(--muted);font-size:.85rem;margin:.6rem 0}.summary { display:grid; grid-template-columns:repeat(4,1fr); gap:.7rem; margin-bottom:1rem; }.summary article { background:var(--navy); color:#fff; border-radius:.65rem; padding:1rem; }.summary article:nth-child(2){background:#165b4e}.summary article:nth-child(3){background:#234e70}.summary article:nth-child(4){background:#334e68}.summary span,.summary small { display:block; color:#d9e2ec; font-size:.78rem; }.summary strong{font-size:1.45rem;display:block;margin:.2rem 0}
.print-config{background:var(--surface);border:1px solid var(--line);border-radius:.7rem;margin-bottom:1rem;padding:1rem;box-shadow:0 1px 2px #102a4308}.format-badge{font-size:.76rem;font-weight:700;color:#165b4e;background:#e3f9ee;border-radius:999px;padding:.35rem .55rem}.print-config-grid{display:grid;grid-template-columns:minmax(170px,220px) minmax(360px,1.5fr) minmax(190px,1fr);gap:1rem;align-items:start;margin-top:.8rem}.print-choice{display:flex;flex-wrap:wrap;gap:.45rem .85rem;align-items:center;background:#f7fafc;border:1px solid var(--line);border-radius:.45rem;padding:.6rem}.print-choice>span{width:100%;font-size:.76rem;font-weight:700;color:#486581}.print-choice label{display:flex;align-items:center;gap:.3rem;font-size:.78rem;font-weight:600}.print-choice input{width:auto}.print-config-note{font-size:.82rem;color:#486581;margin:0;line-height:1.45}
.table-wrap { overflow:auto; }.nav-log table,.print-table { border-collapse:collapse; width:100%; min-width:1180px; }.nav-log th { background:#102a43; color:#fff; font-size:.73rem; line-height:1.15; text-align:center; padding:.52rem .3rem; white-space:nowrap; }.nav-log td { border-bottom:1px solid var(--line); padding:.35rem .2rem; vertical-align:middle; }.nav-log td input{border-color:transparent;background:transparent;padding:.38rem;text-align:center;border-radius:.2rem}.nav-log td input:hover,.nav-log td input:focus{border-color:#90cdf4;background:#fff}.nav-log .waypoint-cell input { text-align:left; min-width:145px; }.nav-log .calc{font-weight:700;text-align:center;white-space:nowrap}.nav-log .time-cell{min-width:86px}.nav-log .actual-time{margin-top:.25rem;border-top:1px dashed #9fb3c8!important;border-radius:0!important;font-weight:500}.nav-log .warning{color:var(--danger)}.row-number{color:var(--muted);font-size:.78rem}.row-actions{white-space:nowrap}.insert-leg,.remove-leg{background:transparent;border:0;cursor:pointer;font-weight:700}.insert-leg{color:var(--sky);font-size:1.25rem}.remove-leg{color:var(--danger);font-size:1.15rem}.coord-input{min-width:92px!important}
.point-row td{background:#eaf2f8;border-top:2px solid #486581!important}.point-row .waypoint-cell input{font-weight:800;font-size:.9rem}.point-number{font-weight:800;text-align:center;color:#102a43}.point-note{font-size:.72rem;color:#627d98;text-align:center}.leg-row td{background:#fff}.leg-row .route-arrow{font-size:1.2rem;text-align:center;color:#2f80ed}.leg-row .route-name{min-width:165px;font-weight:700;color:#334e68}.leg-row small{font-size:.68rem;color:#627d98}.fuel-calculated{border:1px solid var(--line);background:#f7fafc;border-radius:.38rem;padding:.48rem .55rem;display:grid;gap:.15rem}.fuel-calculated span{font-size:.7rem;color:#627d98;text-transform:uppercase;font-weight:700}.fuel-calculated strong{font-size:1rem;color:#102a43}
#legs-table th:nth-child(4),#legs-table .route-name{min-width:230px}#legs-table th:nth-child(14),#legs-table th:nth-child(15),#legs-table .time-cell{min-width:82px;line-height:1.55}#legs-table th span{display:inline-block;margin-top:.22rem;border-top:1px solid #9fb3c8;padding-top:.12rem}body.print-preview .app-header,body.print-preview .workspace>section:not(.print-sheet){display:none}body.print-preview .workspace{max-width:1120px;padding:1rem;margin:auto}body.print-preview .print-sheet{display:block;box-shadow:0 4px 22px #102a4333;border:1px solid #9fb3c8}
.flight-progress{background:var(--surface);border:1px solid var(--line);border-radius:.7rem;margin-bottom:1rem;padding:1rem;box-shadow:0 1px 2px #102a4308}.flight-progress-grid{display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr);gap:1rem;align-items:end;margin-top:.8rem}.flight-note{display:grid;gap:.2rem;border-left:3px solid var(--sky);padding:.55rem .75rem;background:#f7fafc;color:#486581;font-size:.84rem}.flight-note strong{color:var(--ink)}
.map-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(210px,1fr);gap:1rem;margin-top:.8rem}.route-map{min-height:300px;background:#eaf2f8;border-radius:.45rem;border:1px solid #bcccdc;overflow:hidden}.route-map svg{width:100%;height:300px;display:block}.map-note{background:#f7fafc;border-left:3px solid var(--sky);padding:.9rem;color:#486581;font-size:.88rem}.map-note p{margin-top:.55rem}.empty-map{height:300px;display:grid;place-items:center;color:var(--muted);padding:2rem;text-align:center}
.print-sheet{background:#fff}.print-heading{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:2px solid var(--navy);padding-bottom:.45rem}.print-flight{text-align:right;display:grid;gap:.18rem;font-size:.85rem}.print-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid var(--line);border-top:0}.print-summary div{padding:.45rem .65rem;border-right:1px solid var(--line)}.print-summary div:last-child{border:0}.print-summary span{font-size:.68rem;display:block;color:var(--muted);text-transform:uppercase}.print-summary strong{font-size:1rem}.print-table{min-width:0;margin-top:.8rem;font-size:.77rem}.print-table th{background:#e5edf5;text-align:center;padding:.4rem;border:1px solid #bcccdc}.print-table td{border:1px solid #d9e2ec;padding:.3rem;text-align:center;min-height:1.4rem}.print-table td:nth-child(2){text-align:left;font-weight:700}.print-table .print-leg td{background:#fafcff}.print-table .print-waypoint td{border-bottom:0}.print-table .print-leg td{border-top:0}.print-sheet footer{margin-top:.65rem;color:var(--muted);font-size:.67rem}
.archive-dialog{width:min(760px,calc(100% - 2rem));border:0;border-radius:.75rem;padding:1.1rem;box-shadow:0 18px 60px #102a4366;color:var(--ink)}.archive-dialog::backdrop{background:#102a4388}.archive-heading{display:flex;justify-content:space-between;align-items:start;border-bottom:1px solid var(--line);padding-bottom:.7rem}.close-dialog{border:0;background:transparent;font-size:1.8rem;line-height:1;color:var(--muted);cursor:pointer}.archive-note{font-size:.86rem;color:#486581;margin:.75rem 0}.archive-list{display:grid;gap:.55rem;max-height:55vh;overflow:auto}.archive-item{display:flex;align-items:center;justify-content:space-between;gap:1rem;border:1px solid var(--line);border-radius:.5rem;padding:.7rem}.archive-item strong,.archive-item span{display:block}.archive-item span{font-size:.77rem;color:var(--muted);margin-top:.15rem}.archive-empty{padding:1.1rem;border:1px dashed #9fb3c8;border-radius:.45rem;color:var(--muted);text-align:center}.point-form{display:grid;grid-template-columns:1.2fr 1.6fr 1fr 1fr 1fr auto;gap:.55rem;align-items:end;margin:1rem 0}.point-form .button{white-space:nowrap}.point-link{min-width:180px}
@media(max-width:900px){.app-header{align-items:flex-start;flex-direction:column}.header-actions{justify-content:flex-start}.plan-meta,.profile-grid{grid-template-columns:repeat(2,1fr)}.summary{grid-template-columns:repeat(2,1fr)}.map-layout{grid-template-columns:1fr}.point-form{grid-template-columns:repeat(2,1fr)}.point-form .button{grid-column:1/-1}.flight-progress-grid{grid-template-columns:1fr}.print-config-grid{grid-template-columns:1fr}}
@media (orientation:landscape) and (max-height:600px){.app-header{padding:.7rem 1rem}.workspace{padding: .75rem 1rem 1.5rem}.plan-meta{grid-template-columns:2fr 1fr}.profile-sections{display:grid;grid-template-columns:1fr 2fr 1fr;gap:.7rem}.profile-sections fieldset{margin:0}.summary{grid-template-columns:repeat(4,1fr)}.summary article{padding:.6rem}.summary strong{font-size:1.2rem}.print-config-grid{grid-template-columns:180px 1.6fr 1fr}.nav-log{padding:.7rem}}
@media(max-width:520px){.plan-meta,.profile-grid{grid-template-columns:1fr}.summary{grid-template-columns:1fr}.workspace{padding:1rem}.app-header{padding:1rem}.header-actions{width:100%}.header-actions .button{flex:1}.print-summary{grid-template-columns:repeat(2,1fr)}.print-summary div:nth-child(2){border-right:0}.print-summary div:nth-child(-n+2){border-bottom:1px solid var(--line)}}
@page { size:A4 landscape; margin:8mm; }
@media print { body{background:#fff;font-size:9pt}.no-print,.app-header,.profile,.plan-meta,.nav-log,.map-section,.summary,.alert{display:none!important}.workspace{max-width:none;margin:0;padding:0}.print-sheet{display:block;border:0;box-shadow:none;margin:0;padding:0}.print-heading h2{font-size:15pt}.print-table{font-size:7.5pt}.print-table th,.print-table td{padding:2.4pt}.print-sheet footer{font-size:6.5pt}.print-summary{margin-top:4pt}.print-summary strong{font-size:10pt} }

/* VFR_LOG: griglia a doppia riga, fedele alla logica del foglio di riferimento. */
.plan-meta{grid-template-columns:minmax(0,2fr) minmax(160px,.7fr)}.profile-sections{display:grid;grid-template-columns:.8fr 2.5fr .9fr;gap:.75rem;margin-top:.8rem}.profile fieldset{border:1px solid var(--line);border-radius:.45rem;min-width:0;margin:0;padding:.55rem .7rem .7rem}.profile legend{font-size:.76rem;font-weight:800;color:#486581;padding:0 .25rem}.profile-grid{margin-top:0}.speed-grid{grid-template-columns:minmax(120px,190px) 1fr}.field-help{align-self:end;margin:0;color:var(--muted);font-size:.75rem}.fuel-grid{grid-template-columns:repeat(5,minmax(120px,1fr)) repeat(3,minmax(118px,1fr))}.geo-grid{grid-template-columns:1fr 1fr}
.nav-log table{min-width:1700px;table-layout:fixed}.nav-log th{border:1px solid #294a69;background:#102a43;padding:.47rem .22rem;white-space:normal}.nav-log td{border:1px solid #aabfd3;border-bottom:1px solid #aabfd3;padding:.16rem;background:#fff}.nav-log .waypoint-row td{background:#eef5fb}.nav-log .waypoint-row .route-banner{height:28px;text-align:center;color:#365c7c;font-size:.75rem;letter-spacing:.02em}.route-banner b{padding:0 .65rem;color:#2f80ed;font-size:1rem}.nav-log .point-number{width:40px;background:#e2edf7!important}.nav-log .waypoint-cell{width:145px;background:#e2edf7!important}.nav-log .waypoint-cell small{display:block;font-size:.65rem;color:#627d98;margin-top:.25rem}.nav-log .waypoint-cell input{font-weight:800;min-width:130px;padding:.34rem .15rem}.nav-log .leg-detail td{height:76px;vertical-align:stretch}.nav-log .leg-detail td>input,.nav-log .leg-detail .pair>div>input{height:100%;min-height:30px}.nav-log td input{width:100%;height:auto;min-width:0;font-size:.84rem}.nav-log .calc{font-size:.83rem}.pair{display:grid;grid-template-rows:1fr 1fr;height:100%;min-height:62px}.pair>div{min-height:29px;display:grid;place-items:center;white-space:nowrap}.pair>div+div{border-top:1px solid #aabfd3}.pair input{border:0!important;text-align:center!important}.actual-input{background:#fbfdff!important;border-bottom:1px dashed #7b97b2!important}.auto-note{display:block;text-align:center;color:#627d98;font-size:.62rem;margin-top:.2rem}.final-waypoint-row td{height:45px;background:#e2edf7}.coordinate-pair{height:100%;align-items:center}.coord-input{min-width:0!important;font-size:.72rem!important}.row-actions{width:61px;text-align:center}.insert-leg,.remove-leg{padding:.15rem}.flight-progress{margin-bottom:1rem}.tank-checks{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.7rem}.tank-chip{background:#e3f9ee;color:#165b4e;border:1px solid #a9ddcb;border-radius:999px;padding:.32rem .55rem;font-size:.78rem;font-weight:700}.tank-empty{color:var(--muted);font-size:.84rem}.ghost-dark{background:#fff;color:#334e68;border:1px solid #9fb3c8}.inline-actions{display:flex;gap:.4rem}.button.tiny{padding:.35rem .5rem;font-size:.75rem;background:#e5edf5;color:#102a43;border-color:#bcccdc}.button.tiny.danger{background:#fff0f0;color:#b42318;border-color:#f1b5b0}
.print-preview-bar{display:flex;justify-content:space-between;gap:1rem;align-items:end;border-bottom:1px solid var(--line);padding-bottom:.65rem;margin-bottom:1rem}.print-preview-bar>span{font-size:.82rem;color:var(--muted)}#print-preview-content{overflow:auto;background:#eef3f8;padding:1rem}.print-page{background:#fff;max-width:1120px;margin:auto;padding:1rem;color:#102a43;box-shadow:0 2px 8px #102a4322}.print-page header{display:flex;justify-content:space-between;gap:1rem;align-items:end;border-bottom:2px solid #102a43;padding-bottom:.42rem}.print-page header small{font-size:.68rem;letter-spacing:.1em;font-weight:800}.print-page h1{font-size:1.15rem;margin:.12rem 0 0}.flight-title{display:grid;text-align:right;gap:.1rem;font-size:.76rem}.print-stats{display:grid;grid-template-columns:repeat(4,1fr);margin-top:.5rem;border:1px solid #9fb3c8}.print-stats span{padding:.35rem .5rem;border-right:1px solid #9fb3c8;font-size:.68rem}.print-stats span:last-child{border:0}.print-stats b{display:block;font-size:.9rem}.print-page table{width:100%;border-collapse:collapse;table-layout:fixed;margin-top:.6rem;font-size:.65rem}.print-page th,.print-page td{border:1px solid #9fb3c8;padding:.22rem;text-align:center;vertical-align:middle;word-break:break-word}.print-page th{background:#e5edf5;line-height:1.1}.print-page .wp{text-align:left;font-weight:800}.print-page .route td{height:24px;background:#f7fafc}.print-page .route span{font-size:.63rem;color:#486581}.print-page .pair{min-height:35px}.print-page footer{font-size:.61rem;color:#627d98;margin-top:.45rem}.print-page.reduced{max-width:760px;font-size:1.05em}.print-config-grid>div>p{font-size:.8rem;color:#486581;margin:.45rem 0}.print-choice{max-height:130px;overflow:auto}
@media(max-width:1100px){.profile-sections{grid-template-columns:1fr}.fuel-grid{grid-template-columns:repeat(4,minmax(130px,1fr))}.print-config-grid{grid-template-columns:1fr}.print-preview-bar{align-items:start;flex-direction:column}}
@media(max-width:600px){.fuel-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}.speed-grid{grid-template-columns:1fr}.print-page{min-width:680px}.header-actions .button{font-size:.78rem;padding:.5rem .55rem}}

/* Rifinitura editor: priorità a leggibilità e input rapidi. */
.profile{padding:1.15rem}.profile-sections{grid-template-columns:minmax(180px,.72fr) minmax(520px,2.4fr) minmax(210px,.8fr);gap:.85rem}.profile fieldset{background:#fbfdff;padding:.72rem .8rem .8rem}.profile legend{font-size:.82rem}.fuel-grid{grid-template-columns:repeat(5,minmax(105px,1fr));gap:.6rem}.fuel-calculated-grid{display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:.6rem;margin-top:.65rem}.fuel-calculated{min-height:66px;background:#f5f9fc;border-color:#c7d8e8;padding:.52rem .6rem}.fuel-calculated strong{font-size:1.05rem}.speed-grid{grid-template-columns:1fr}.speed-grid label{max-width:190px}.geo-grid{grid-template-columns:1fr 1fr}.profile label{font-size:.78rem;line-height:1.2}.profile input,.profile select{min-height:43px}.nav-log .waypoint-row td{background:#f8fbfe}.nav-log .waypoint-cell,.nav-log .point-number{background:#eaf1f7!important}.nav-log .waypoint-cell input{background:#fff!important;border:1px solid #88a9c5!important;border-radius:.28rem;color:#102a43!important;padding:.45rem .5rem!important;min-height:38px}.nav-log .waypoint-cell input:focus{outline:3px solid #b8dcf7!important;border-color:#2f80ed!important}.nav-log .waypoint-cell small{white-space:nowrap;color:#486581;font-size:.66rem;line-height:1.3}.nav-log .leg-detail td{height:81px}.nav-log .pair{min-height:67px}.nav-log .pair input{background:#fff!important;border-radius:0!important;min-height:31px}.nav-log .route-banner{background:#f1f6fa!important}.nav-log th:nth-child(3){width:92px}.nav-log th:nth-child(6){width:104px}.nav-log th:nth-child(15),.nav-log th:nth-child(16){width:72px}.nav-log .time-cell .pair>div{min-width:48px}.nav-log .time-cell .pair>div+div{background:#fff}.waypoint-dialog{width:min(940px,calc(100% - 2rem))}.point-form{display:grid;grid-template-columns:1fr;gap:.7rem;margin:1rem 0 1.15rem}.waypoint-name-field{max-width:none}.waypoint-name-field input{font-size:1rem;min-height:45px}.google-import-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.65rem;align-items:end}.google-import-row .button{min-height:43px;white-space:nowrap}.coordinate-fields{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}.coordinate-fields input{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:1rem;letter-spacing:.015em;min-height:45px}.form-help{font-size:.82rem;color:#627d98;margin:0}.form-actions{display:flex;gap:.55rem}.waypoint-item{align-items:center}.waypoint-item>div:first-child{min-width:0;flex:1}.waypoint-item strong{font-size:1rem;overflow-wrap:anywhere}.waypoint-item span{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.84rem;white-space:normal;overflow-wrap:anywhere}.archive-item{padding:.8rem .9rem}.route-map svg text{paint-order:stroke;stroke:#fff;stroke-width:2px;stroke-linejoin:round}
@media(max-width:1100px){.profile-sections{grid-template-columns:1fr}.fuel-grid{grid-template-columns:repeat(5,minmax(110px,1fr))}}
@media(max-width:680px){.fuel-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}.fuel-calculated-grid{grid-template-columns:1fr}.google-import-row,.coordinate-fields{grid-template-columns:1fr}.google-import-row .button{width:100%}.form-actions{flex-wrap:wrap}}

.log-actions{display:flex;align-items:center;gap:.7rem}.show-km{display:flex;align-items:center;gap:.35rem;font-size:.8rem;white-space:nowrap;color:#486581}.show-km input{width:auto;min-height:0}.nav-log table{min-width:1600px}.nav-log .point-number{width:48px}.nav-log .waypoint-cell{width:185px;min-width:185px}.nav-log .waypoint-cell input{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box}.nav-log .waypoint-row td{height:43px}.nav-log .waypoint-cell small{display:block;overflow:hidden;text-overflow:ellipsis;max-width:170px}.nav-log .route-banner{padding-left:.45rem!important;padding-right:.45rem!important}.nav-log th:nth-child(12),.nav-log th:nth-child(13){width:94px;white-space:nowrap}.distance-edit{display:flex;align-items:center;gap:.18rem;width:100%;padding:.1rem .18rem}.distance-edit input{min-width:0!important;flex:1}.distance-edit span{font-size:.67rem;color:#486581;font-weight:700}.km-value{display:block;font-size:.62rem;color:#627d98;font-weight:600;margin-top:.05rem}.route-map svg text{stroke-width:1.25px}.route-map svg rect+line{opacity:.96}
@media(max-width:640px){.log-actions{align-items:flex-end;flex-direction:column;gap:.35rem}.section-heading{align-items:flex-start}.nav-log .waypoint-cell{width:165px;min-width:165px}}

.print-page.reduced{max-width:560px;font-size:.9em}

.map-leg-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.55rem;margin-top:.75rem}.map-leg{border:1px solid #c9d8e7;border-left:4px solid #2f80ed;border-radius:.4rem;background:#fbfdff;padding:.55rem .65rem}.map-leg span,.map-leg strong,.map-leg small{display:block}.map-leg span{color:#2f80ed;font-size:.68rem;font-weight:800;letter-spacing:.07em}.map-leg strong{font-size:.86rem;margin:.15rem 0}.map-leg small{color:#486581;font-size:.74rem;line-height:1.35}.print-profiles{display:grid;grid-template-columns:minmax(150px,1fr) minmax(130px,1fr) auto;gap:.4rem;margin-top:.65rem;align-items:end}.print-profiles label{font-size:.72rem}.print-profiles select,.print-profiles input{min-height:34px;font-size:.78rem}.print-preview-document{margin:1.3rem 0 2rem}.print-preview-document>h3{font-size:.9rem;color:#486581;margin:0 0 .45rem}.reduced-route-print{margin-top:.75rem;padding-top:.55rem;border-top:2px solid #102a43}.reduced-route-print h3{font-size:.78rem;margin:0 0 .3rem}.reduced-route-print svg{width:100%;height:190px;border:1px solid #c9d8e7;background:#eef5fb}.reduced-route-print .map-leg-list{grid-template-columns:1fr 1fr;gap:.3rem;margin-top:.35rem}.reduced-route-print .map-leg{padding:.28rem .36rem;border-left-width:3px}.reduced-route-print .map-leg strong{font-size:.62rem}.reduced-route-print .map-leg small{font-size:.55rem}.reduced-route-print .map-leg span{font-size:.54rem}
@media print{body[data-print-mode="full"] #preview-reduced-document,body[data-print-mode="reduced"] #preview-full-document{display:none!important}body[data-print-mode="reduced"] .print-page.reduced{width:100%;max-width:none;padding:0;box-shadow:none}body[data-print-mode="reduced"] .print-page.reduced table{font-size:5.8pt}body[data-print-mode="reduced"] .print-page.reduced .reduced-route-print{break-inside:avoid}body[data-print-mode="reduced"] .print-page.reduced .reduced-route-print svg{height:230px}.print-preview-document>h3{display:none!important}}
@media(max-width:760px){.print-profiles{grid-template-columns:1fr}.map-leg-list{grid-template-columns:1fr}}

.pdf-status{margin:.65rem 0 0;color:#165b4e;font-size:.82rem;font-weight:700;min-height:1.2em}

/* Output contract: browser print previews are retired. The actual layout now lives
   in the Google Sheets master so this card deliberately stays compact. */
.google-output{background:var(--surface);border:1px solid var(--line);border-radius:.7rem;margin-bottom:1rem;padding:1rem;box-shadow:0 1px 2px #102a4308}.google-output-copy{margin:.7rem 0;color:#334e68;line-height:1.5}.google-output-steps{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:.5rem;list-style:none;padding:0;margin:.75rem 0}.google-output-steps li{background:#f5f8fb;border:1px solid #c9d8e7;border-radius:.4rem;padding:.55rem .65rem;font-size:.8rem;color:#486581}.google-output-steps strong{display:block;color:#102a43;margin-top:.22rem}.google-output-note{border-left:3px solid #2f80ed;margin:.7rem 0 0;padding:.5rem .7rem;background:#f7fafc;color:#486581;font-size:.82rem}.google-output-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem;margin-top:.85rem}.google-output-status{font-size:.82rem;color:#486581}.google-output-status.is-error{color:#b42318}.google-output-actions .button{min-height:2.2rem}.google-output-result{margin-top:.7rem}.google-output-result a{font-weight:800}
@media(max-width:760px){.google-output-steps{grid-template-columns:1fr 1fr}}

.print-page.reduced table{font-size:.57rem;table-layout:fixed}.print-page.reduced th,.print-page.reduced td{word-break:normal;overflow-wrap:break-word;padding:.18rem .12rem}.print-page.reduced th{font-size:.55rem}.print-page.reduced .wp{min-width:48px}.print-page.reduced .pair{min-height:30px}

/* Log dinamico e schema rotta: controlli compatti, una freccia per ciascuna tratta. */
.course-edit{display:flex;align-items:center;gap:.22rem;padding:.12rem .14rem}.course-edit input{min-width:0!important;flex:1}.reset-auto{flex:0 0 25px;width:25px;height:25px;border:1px solid #8bb8df;border-radius:.3rem;background:#edf6ff;color:#1769aa;cursor:pointer;font-size:1rem;font-weight:800;line-height:1;padding:0}.reset-auto:hover{background:#dbeeff}.distance-edit{justify-content:center;gap:.18rem}.distance-edit input{flex:0 0 46px!important;width:46px!important;text-align:right!important;padding-right:.05rem!important}.distance-edit span{flex:0 0 auto;white-space:nowrap}.route-map{background:#f5f9fc}.route-map .route-leg>line{stroke:#1672d4;stroke-width:3.6;stroke-linecap:round;fill:none}.route-map .route-leg>g>rect{fill:#fff;stroke:#a9c9e5;stroke-width:1}.route-map .route-leg>g>text{font-size:10px;font-weight:800;fill:#102a43;stroke:none;paint-order:normal}.route-map .route-point circle{fill:#102a43;stroke:#fff;stroke-width:3}.route-map .route-point text{font-size:14px;font-weight:800;fill:#102a43}.route-map svg text{pointer-events:none}.route-map .route-leg>g{filter:drop-shadow(0 1px 1px #102a4322)}
.route-map{min-height:390px}.route-map svg{height:390px}.route-map .route-leg-label{cursor:grab;touch-action:none}.route-map .route-leg-label:active{cursor:grabbing}.route-map .route-point rect{fill:#fff;stroke:#bfd3e3;stroke-width:1}.reduced-preview-controls{max-width:760px;margin:1.4rem auto .7rem;padding:.9rem;border:1px solid #c9d8e7;border-radius:.55rem;background:#f8fbfe}.reduced-preview-controls h3{margin:.1rem 0;font-size:1rem}.reduced-preview-controls p{margin:.25rem 0 .65rem;color:#486581;font-size:.8rem}.reduced-preview-controls .print-choice{max-height:none}.print-page.reduced.reduced-cols-10 table{font-size:.52rem}.print-page.reduced.reduced-cols-11 table,.print-page.reduced.reduced-cols-12 table{font-size:.48rem}.print-page.reduced.reduced-cols-13 table,.print-page.reduced.reduced-cols-14 table{font-size:.44rem}.print-page.reduced.reduced-cols-11 th,.print-page.reduced.reduced-cols-12 th,.print-page.reduced.reduced-cols-13 th,.print-page.reduced.reduced-cols-14 th{font-size:.45rem}

/* Ridotto: A4 orizzontale, due fogli A5 verticali affiancati come il formato da cosciale. */
.print-page.reduced{max-width:1120px!important;aspect-ratio:297 / 210;display:grid;grid-template-columns:1fr 1fr;padding:0!important;overflow:hidden}.print-page.reduced .reduced-a5{min-width:0;padding:.72rem;border:1px solid #9fb3c8;overflow:hidden}.print-page.reduced .reduced-log{border-right:2px dashed #486581}.print-page.reduced header{min-height:42px}.print-page.reduced h1{font-size:1rem}.print-page.reduced .flight-title{font-size:.62rem}.print-page.reduced .print-stats{margin-top:.4rem;grid-template-columns:repeat(2,1fr)}.print-page.reduced .print-stats span{font-size:.52rem;padding:.24rem .32rem}.print-page.reduced .print-stats b{font-size:.66rem}.print-page.reduced table{margin-top:.45rem;font-size:.58rem}.print-page.reduced th,.print-page.reduced td{padding:.14rem .09rem}.print-page.reduced th{font-size:.54rem}.print-page.reduced .pair{min-height:24px}.print-page.reduced .reduced-route-print{height:calc(100% - 42px);margin:0;padding:0;border:0}.print-page.reduced .reduced-route-print svg{width:100%;height:100%;min-height:0;border:1px solid #c9d8e7;background:#f5f9fc}.print-page.reduced footer{font-size:.5rem;margin-top:.3rem}.print-page.reduced.reduced-cols-10 table{font-size:.48rem}.print-page.reduced.reduced-cols-11 table,.print-page.reduced.reduced-cols-12 table{font-size:.43rem}.print-page.reduced.reduced-cols-13 table,.print-page.reduced.reduced-cols-14 table{font-size:.39rem}.print-page.reduced.reduced-cols-11 th,.print-page.reduced.reduced-cols-12 th,.print-page.reduced.reduced-cols-13 th,.print-page.reduced.reduced-cols-14 th{font-size:.39rem}@media print{body[data-print-mode="reduced"] .print-page.reduced{width:100%;max-width:none!important;height:100%;aspect-ratio:297 / 210;page-break-inside:avoid}body[data-print-mode="reduced"] .print-page.reduced .reduced-route-print svg{height:100%}}

/* Diagramma VFR: punti geografici fissi; oggetti grafici spostabili solo per leggibilita'. */
.route-map{min-height:460px}.route-map svg{height:460px}.route-map .route-leg-line{stroke:#1672d4;stroke-width:3.2;stroke-linecap:round}.route-map .route-leg-hit{stroke:transparent;stroke-width:22;pointer-events:stroke;cursor:row-resize}.route-map .route-line-group{cursor:row-resize}.route-map .route-leg-label,.route-map .route-point-label{cursor:grab;touch-action:none}.route-map .route-leg-label:active,.route-map .route-point-label:active{cursor:grabbing}.route-map .route-leg-label rect{fill:#fff;stroke:#2f80ed;stroke-width:1.4}.route-map .route-leg-label text{fill:#102a43;stroke:none;font-size:10px;font-weight:700}.route-map .route-leg-label .card-title{fill:#1769aa;font-weight:900;font-size:11px}.route-map .route-point-label rect{fill:#fff;stroke:#9fb3c8;stroke-width:1}.route-map .route-point-label text{fill:#102a43;stroke:none;font-size:12px;font-weight:800}.route-map .route-point circle{fill:#102a43;stroke:#fff;stroke-width:3}
.tank-log-flag{display:block;margin-top:.13rem;padding:.08rem .22rem;border-radius:999px;background:#fff3cd;color:#7a4c00;font-size:.56rem;font-weight:900;letter-spacing:.04em;white-space:nowrap}.print-page .tank-log-flag{font-size:.48rem}
.remove-inline{float:right;margin:.2rem 0 0 .28rem;border:1px solid #efb1ac;border-radius:50%;background:#fff;color:#b42318;width:20px;height:20px;line-height:16px;font-weight:900;cursor:pointer}.remove-inline:hover{background:#fff0f0}.distance-edit{display:flex;align-items:center;justify-content:center;gap:.18rem;min-height:28px}.distance-edit .reset-auto{flex:0 0 23px;width:23px;height:23px;margin-left:.04rem}.distance-value{display:flex;justify-content:center;align-items:baseline;gap:.3rem;min-height:28px;font-variant-numeric:tabular-nums}.distance-value span{font-weight:700}.distance-value b,.distance-edit span{font-size:.72rem;color:#486581;font-weight:800}.route-card-leader{stroke:#7897b3;stroke-width:1.3;stroke-dasharray:4 3;pointer-events:none}.route-leg-badge circle{fill:#1672d4;stroke:#fff;stroke-width:2}.route-leg-badge text{fill:#fff!important;stroke:none!important;font-size:10px!important;font-weight:900!important;paint-order:normal}.route-leg-badge{pointer-events:none}

/* Stampa: struttura a waypoint alternati e banda-leg sfalsata, come il nav log Jeppesen. */
.print-page table{border:2px solid #102a43}.print-page thead th{background:#6b6b6b;color:#fff;border-color:#1f2933;font-weight:800}.print-page .print-waypoint-row td{height:22px;background:#f6f8fa;border-top:2px solid #102a43}.print-page .print-point-number{width:28px;background:#d9dee3!important;font-weight:900}.print-page .wp{background:#fff!important;font-weight:900;border-right:3px solid #102a43!important}.print-page .print-leg-strip{position:relative;background:#f1f3f5!important;text-align:left;padding:.12rem .42rem!important;color:#334e68}.print-page .print-leg-strip:before{content:"";position:absolute;left:0;bottom:-1px;border-top:11px solid transparent;border-bottom:11px solid transparent;border-left:7px solid #102a43}.print-page .print-leg-strip b{display:inline-block;margin-right:.45rem;color:#1769aa;font-size:.78em}.print-page .print-leg-strip span{font-size:.76em;font-weight:700}.print-page .print-leg-row td{height:32px;background:#fff;border-top-color:#d6e0ea}.print-page .print-final-row td{height:24px;background:#fff;border-top:2px solid #102a43}.print-page .print-leg-row .pair{min-height:31px}.print-page .print-leg-row .pair>div{padding:.08rem}.print-page.reduced .print-waypoint-row td{height:17px}.print-page.reduced .print-leg-row td{height:27px}.print-page.reduced .print-leg-strip:before{border-top-width:8px;border-bottom-width:8px;border-left-width:5px}.print-page.reduced .print-leg-strip{padding:.08rem .22rem!important}.print-page.reduced .print-leg-row .pair{min-height:25px}
.pdf-preview{display:block;width:100%;height:min(76vh,760px);border:1px solid #9fb3c8;border-radius:.35rem;background:#fff}.print-preview-document:has(#pdf-preview-reduced) .pdf-preview{aspect-ratio:842 / 595;height:auto;min-height:420px}@media(max-width:700px){.pdf-preview{height:540px}.print-preview-document:has(#pdf-preview-reduced) .pdf-preview{min-height:300px}}

/* Blocco Jeppesen: waypoint leggibile a sinistra, dati della tratta sulle due righe affiancate. */
.nav-log .waypoint-row td{height:38px;background:#f7fafc}.nav-log .leg-detail td{height:34px!important;vertical-align:middle;background:#fff}.nav-log .waypoint-cell{position:relative;padding:.32rem .38rem!important;background:#eaf1f7!important;vertical-align:middle!important}.nav-log .waypoint-cell input{font-size:.92rem!important;letter-spacing:.025em}.nav-log .waypoint-cell .waypoint-coordinates{max-width:none!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important;margin-top:.22rem}.nav-log .waypoint-cell .leg-connection{color:#1769aa;font-size:.65rem;font-weight:800;letter-spacing:.03em;margin-top:.16rem}.nav-log .waypoint-row .course-edit{padding:.06rem}.nav-log .waypoint-row td>input,.nav-log .leg-detail td>input{height:30px;min-height:30px}.nav-log .leg-detail .auto-note{margin:0}.nav-log .leg-detail .actual-input{height:30px!important}.nav-log .leg-detail .distance-value{min-height:30px}.nav-log .leg-detail .tank-log-flag{font-size:.52rem}.nav-log .route-banner{display:none}
.print-page .wp b,.print-page .wp small{display:block}.print-page .wp b{font-size:1.05em;letter-spacing:.025em}.print-page .wp small{margin-top:.18rem;color:#1769aa;font-size:.72em;font-weight:800}.print-page .print-waypoint-row td{height:20px;background:#f6f8fa;border-top:2px solid #102a43}.print-page .print-leg-row td{height:22px;background:#fff}.print-page .print-leg-strip{display:none}.print-page .print-leg-row .auto-note{margin:0;font-size:.62em}.print-page.reduced .wp small{font-size:.58em}.print-page.reduced .print-waypoint-row td{height:15px}.print-page.reduced .print-leg-row td{height:19px}
.route-compass{pointer-events:none}.route-compass>circle:first-child{fill:#ffffff70;stroke:#5d7891;stroke-width:.7}.route-compass .compass-minor{stroke:#7897b3;stroke-width:.35;opacity:.48}.route-compass .compass-major{stroke:#486581;stroke-width:.8;opacity:.7}.route-compass .compass-hub{fill:#486581;stroke:none}.route-compass .compass-north{fill:#1769aa;stroke:#1769aa;stroke-width:.5}.route-compass text{fill:#334e68!important;stroke:#fff!important;stroke-width:1.5px!important;paint-order:stroke;stroke-linejoin:round;font-size:7px!important;font-weight:800!important}.route-compass .compass-north-label{fill:#102a43!important;font-size:11px!important;font-weight:900!important}
.route-map .route-point>circle{cursor:move;touch-action:none}
.route-map .route-leg-label text{font-size:9px!important}.route-map .route-leg-label .card-title{font-size:10px!important}

/* Layout definitivo del VFR LOG: waypoint autonomo, titolo-leg, due righe condivise identiche. */
.nav-log .waypoint-only-row td{height:49px!important;background:#eaf1f7!important}.nav-log .waypoint-only-row .waypoint-cell{background:#eaf1f7!important}.nav-log .leg-title-row td{height:25px!important;background:#f2f6f9!important;border-top:2px solid #486581!important;padding:.2rem .45rem!important}.nav-log .leg-title-row td:nth-child(2){color:#1769aa;font-size:.74rem;letter-spacing:.025em}.nav-log .leg-title-row b{margin-right:.65rem;font-size:.78rem}.nav-log .leg-title-row span{font-weight:800;color:#334e68}.nav-log .leg-shared-top,.nav-log .leg-shared-bottom{height:35px}.nav-log .leg-shared-top td,.nav-log .leg-shared-bottom td{height:35px!important;min-height:35px!important;padding:.08rem .15rem!important;vertical-align:middle!important;background:#fff}.nav-log .leg-shared-top td[rowspan="2"]{height:70px!important;background:#fbfdff!important}.nav-log .leg-shared-top .leg-rail{background:#f2f6f9!important;border-right:3px solid #486581!important}.nav-log .leg-shared-top td>input,.nav-log .leg-shared-bottom td>input{height:29px!important;min-height:29px!important}.nav-log .leg-shared-top .course-edit{height:34px;padding:.06rem}.nav-log .leg-shared-top .auto-note{margin:0}.nav-log .leg-shared-top .distance-edit{height:29px}.nav-log .leg-shared-bottom .tank-log-flag{font-size:.52rem}.nav-log .leg-shared-bottom .actual-input{height:29px!important}.nav-log .final-waypoint-row td{border-top:2px solid #486581!important}
.print-page .print-wpt-only td{height:20px;background:#eaf1f7;border-top:2px solid #102a43}.print-page .print-wpt-only .wp{background:#eaf1f7!important}.print-page .print-leg-title td{height:14px;background:#f2f6f9;border-top:1px solid #486581;padding:.1rem .3rem!important;text-align:left}.print-page .print-leg-title b{margin-right:.45rem;color:#1769aa}.print-page .print-leg-title span{font-size:.78em;font-weight:800}.print-page .print-leg-top td,.print-page .print-leg-bottom td{height:18px;background:#fff;padding:.1rem!important}.print-page .print-leg-top td[rowspan="2"]{height:36px!important;background:#fbfdff}.print-page .print-leg-rail{border-right:3px solid #102a43!important;background:#f2f6f9!important}.print-page.reduced .print-wpt-only td{height:15px}.print-page.reduced .print-leg-title td{height:11px}.print-page.reduced .print-leg-top td,.print-page.reduced .print-leg-bottom td{height:15px}.print-page.reduced .print-leg-top td[rowspan="2"]{height:30px!important}

/* WPT sfalsati: i waypoint affiancano e incorniciano la fascia dati, senza aggiungere righe verticali. */
.nav-log .stagger-start-row,.nav-log .leg-shared-top,.nav-log .leg-shared-bottom,.nav-log .stagger-close-row{height:35px}.nav-log .stagger-start-row td,.nav-log .leg-shared-top td,.nav-log .leg-shared-bottom td,.nav-log .stagger-close-row td{height:35px!important;min-height:35px!important;vertical-align:middle!important}.nav-log .stagger-start-row .stagger-space,.nav-log .stagger-close-row .stagger-space{background:#f7fafc!important}.nav-log .stagger-waypoint{height:70px!important;background:#e4b0ad!important;padding:.3rem .38rem!important;vertical-align:middle!important}.nav-log .stagger-waypoint input{font-size:.94rem!important;background:#fff!important}.nav-log .stagger-waypoint .waypoint-coordinates{font-size:.62rem!important;line-height:1.15;margin-top:.18rem}.nav-log .stagger-waypoint .leg-reference{color:#174f82!important;font-size:.63rem!important;font-weight:900;margin-top:.16rem}.nav-log .leg-shared-top td[rowspan="2"]{height:70px!important}.nav-log .leg-shared-top td,.nav-log .leg-shared-bottom td{background:#fff!important}.nav-log .leg-shared-top .course-edit{height:31px}.nav-log .leg-shared-top .distance-edit{height:31px}.nav-log .leg-shared-bottom .actual-input{height:29px!important}.nav-log .stagger-close-row .row-actions{background:#f7fafc!important}
.print-page .print-stagger-start td,.print-page .print-stagger-top td,.print-page .print-stagger-bottom td,.print-page .print-stagger-close td{height:17px!important;padding:.08rem!important;vertical-align:middle;background:#fff}.print-page .print-stagger-start .print-stagger-space,.print-page .print-stagger-close .print-stagger-space{background:#f7fafc}.print-page .print-stagger-waypoint{height:34px!important;background:#e4b0ad!important;vertical-align:middle!important}.print-page .print-stagger-waypoint small{color:#174f82;font-size:.64em;font-weight:900}.print-page .print-stagger-top td[rowspan="2"]{height:34px!important;background:#fbfdff}.print-page.reduced .print-stagger-start td,.print-page.reduced .print-stagger-top td,.print-page.reduced .print-stagger-bottom td,.print-page.reduced .print-stagger-close td{height:14px!important}.print-page.reduced .print-stagger-waypoint,.print-page.reduced .print-stagger-top td[rowspan="2"]{height:28px!important}.print-page.reduced .print-stagger-waypoint small{font-size:.55em}

/* Una cella rowspan non deve mai aumentare una sola delle due righe condivise. */
.nav-log .stagger-waypoint,.nav-log .leg-shared-top td[rowspan="2"]{height:auto!important;min-height:0!important}.nav-log .stagger-start-row,.nav-log .leg-shared-top,.nav-log .leg-shared-bottom,.nav-log .stagger-close-row{height:35px!important}.nav-log .stagger-start-row>td,.nav-log .leg-shared-top>td,.nav-log .leg-shared-bottom>td,.nav-log .stagger-close-row>td{height:35px!important;box-sizing:border-box}.nav-log .leg-shared-bottom>td{border-top:2px solid #486581!important}.print-page .print-stagger-waypoint,.print-page .print-stagger-top td[rowspan="2"]{height:auto!important;min-height:0!important}.print-page .print-stagger-start,.print-page .print-stagger-top,.print-page .print-stagger-bottom,.print-page .print-stagger-close{height:17px!important}.print-page .print-stagger-start>td,.print-page .print-stagger-top>td,.print-page .print-stagger-bottom>td,.print-page .print-stagger-close>td{height:17px!important;box-sizing:border-box}.print-page .print-stagger-bottom>td{border-top:2px solid #486581!important}.print-page.reduced .print-stagger-start,.print-page.reduced .print-stagger-top,.print-page.reduced .print-stagger-bottom,.print-page.reduced .print-stagger-close{height:14px!important}.print-page.reduced .print-stagger-start>td,.print-page.reduced .print-stagger-top>td,.print-page.reduced .print-stagger-bottom>td,.print-page.reduced .print-stagger-close>td{height:14px!important}

/* Anteprima e PDF usano la stessa densità: Auto riempie lo spazio disponibile,
   Compatto lascia più margine. Le celle non crescono mai in modo diseguale. */
.print-page table{font-size:var(--log-font)!important}.print-page th{font-size:var(--log-header-font)!important}.print-page .print-stagger-start,.print-page .print-stagger-top,.print-page .print-stagger-bottom,.print-page .print-stagger-close{height:var(--log-row)!important}.print-page .print-stagger-start>td,.print-page .print-stagger-top>td,.print-page .print-stagger-bottom>td,.print-page .print-stagger-close>td{height:var(--log-row)!important}.reduced-route-print .route-leg-label text{font-size:var(--route-card-font)!important}.reduced-route-print .route-leg-label .card-title{font-size:var(--route-card-title)!important}.reduced-route-print .route-leg-badge text{font-size:var(--route-card-font)!important}.print-profiles{grid-template-columns:minmax(130px,1fr) minmax(150px,1fr) minmax(150px,1fr) minmax(130px,1fr) auto}

/* Le tre fasce sfalsate del log sono volutamente identiche: intestazione LEG,
   riga alta dati e riga bassa dati. Il contenuto non può deformarne una sola. */
.nav-log{--shared-row-height:46px}.nav-log .stagger-start-row,.nav-log .leg-shared-top,.nav-log .leg-shared-bottom,.nav-log .stagger-close-row{height:var(--shared-row-height)!important}.nav-log .stagger-start-row>td,.nav-log .leg-shared-top>td,.nav-log .leg-shared-bottom>td,.nav-log .stagger-close-row>td{height:var(--shared-row-height)!important;min-height:0!important;padding-top:.12rem!important;padding-bottom:.12rem!important}.nav-log .stagger-waypoint,.nav-log .leg-shared-top td[rowspan="2"]{height:auto!important;min-height:0!important}.nav-log .auto-note{margin:0!important;line-height:1.05!important;font-size:.57rem!important}.nav-log .distance-edit{min-height:28px!important}.distance-edit b{font-size:.72rem;color:#486581;font-weight:800}.nav-log .stagger-waypoint{width:172px!important;min-width:172px!important}.nav-log .stagger-waypoint input{min-width:0!important;width:100%!important;font-size:.88rem!important}.nav-log .stagger-waypoint .leg-reference{line-height:1.1!important;white-space:normal!important}.nav-log #legs-table th:nth-child(1){width:40px}.nav-log #legs-table th:nth-child(2){width:172px}.nav-log .leg-shared-bottom>td{border-top:2px solid #486581!important}
/* Versione definitiva: due righe Excel omogenee, senza fasce o celle decorative. */
.nav-log table{min-width:2180px!important}.nav-log .excel-leg-top,.nav-log .excel-leg-bottom{height:46px!important}.nav-log .excel-leg-top>td,.nav-log .excel-leg-bottom>td{height:46px!important;min-height:46px!important;padding:.12rem .16rem!important;vertical-align:middle!important;background:#fff!important}.nav-log .excel-leg-bottom>td{border-top:2px solid #486581!important}.nav-log .excel-leg-top>td[rowspan="2"]{height:auto!important;min-height:0!important;background:#fbfdff!important}.nav-log .excel-waypoint{width:172px!important;min-width:172px!important;background:#eaf1f7!important;padding:.3rem .38rem!important}.nav-log .excel-waypoint input{width:100%!important;min-width:0!important;background:#fff!important;border:1px solid #88a9c5!important;font-size:.9rem!important}.nav-log .excel-waypoint .waypoint-coordinates{display:block;color:#486581!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font-size:.65rem!important;line-height:1.2!important}.nav-log .excel-actions{width:52px!important;min-width:52px!important;text-align:center!important;background:#f7fafc!important;white-space:nowrap!important}.nav-log .excel-actions .insert-leg,.nav-log .excel-actions .remove-leg{width:22px;height:22px;padding:0!important;border-radius:50%;line-height:18px;font-size:1rem!important;vertical-align:middle}.nav-log .excel-actions .insert-leg{border:1px solid #90cdf4;background:#edf6ff}.nav-log .excel-actions .remove-leg{border:1px solid #efb1ac;background:#fff}.nav-log .small-reset{width:19px!important;height:19px!important;flex:0 0 19px!important;font-size:.78rem!important;border-radius:.22rem!important}.nav-log .course-edit{display:grid!important;grid-template-columns:19px minmax(0,1fr);gap:.2rem!important;align-items:center!important;padding:0!important}.nav-log .distance-edit{display:grid!important;grid-template-columns:19px minmax(0,1fr) auto;gap:.18rem!important;align-items:center!important;min-height:0!important}.nav-log .distance-edit .distance-input{width:100%!important;min-width:0!important;flex:auto!important;text-align:right!important}.nav-log .distance-edit b,.nav-log .distance-value b{font-size:.7rem!important;white-space:nowrap}.nav-log .distance-value{gap:.25rem!important;min-height:0!important;white-space:nowrap!important}.nav-log .excel-final-row>td{height:42px!important;border-top:2px solid #486581!important;background:#f7fafc!important}.nav-log .excel-final-row .excel-waypoint{background:#eaf1f7!important}.nav-log .auto-note{font-size:.56rem!important;line-height:1!important;margin-top:.12rem!important}

/* La rosa e' una filigrana: resta al centro ma non compete con rotta e cartellini. */
.route-compass>circle:first-child{fill:none!important;stroke:#6b7785!important;stroke-width:.55!important;opacity:.28}.route-compass .compass-minor{stroke:#7b8794!important;stroke-width:.3!important;opacity:.18!important}.route-compass .compass-major{stroke:#52606d!important;stroke-width:.55!important;opacity:.34!important}.route-compass .compass-hub{fill:#52606d!important;opacity:.38}.route-compass .compass-north{fill:#52606d!important;stroke:#52606d!important;opacity:.45}.route-compass text{fill:#52606d!important;stroke:#fff!important;stroke-width:1px!important;opacity:.48!important;font-size:6px!important}.route-compass .compass-north-label{fill:#334e68!important;opacity:.62!important;font-size:9px!important}

/* Anteprima e stampa: medesima griglia a due righe, senza una riga LEG separata. */
.print-page .print-excel-top,.print-page .print-excel-bottom{height:var(--log-row)!important}.print-page .print-excel-top>td,.print-page .print-excel-bottom>td{height:var(--log-row)!important;min-height:0!important;padding:.12rem!important;vertical-align:middle!important;background:#fff}.print-page .print-excel-bottom>td{border-top:2px solid #486581!important}.print-page .print-excel-top>td[rowspan="2"]{height:auto!important;background:#fbfdff!important}.print-page .print-excel-waypoint{background:#eaf1f7!important;border-right:2px solid #486581!important;text-align:left!important}.print-page .print-excel-waypoint b{display:block;font-size:1.08em}.print-page .print-excel-waypoint small{display:block;color:#486581;font-size:.68em;line-height:1.15;margin-top:.14rem}.print-page .print-excel-final>td{height:calc(var(--log-row) * .9)!important;border-top:2px solid #486581!important;background:#f7fafc}.print-page .print-excel-final .print-excel-waypoint{background:#eaf1f7!important}.print-page .distance-value{gap:.22rem!important;white-space:nowrap}.print-page .auto-note{font-size:.58em!important;margin-top:.08rem!important}
/* Bozza finale: blocco leg Excel, unico ritmo visivo e promemoria operativi. */
.nav-log .excel-leg-top,.nav-log .excel-leg-bottom{height:42px!important}.nav-log .excel-leg-top>td,.nav-log .excel-leg-bottom>td{height:42px!important;padding:.1rem .16rem!important}.nav-log .excel-leg-top>td[rowspan="2"]{height:auto!important}.nav-log .excel-waypoint{background:#eaf1f7!important;vertical-align:middle!important}.nav-log .excel-leg-bottom .excel-waypoint{border-top:2px solid #486581!important}.waypoint-tank{display:block;margin:.2rem 0 0;padding:.08rem .22rem;border:1px solid #d49f21;border-radius:999px;background:#fff5d6;color:#6c4a00;font-size:.56rem!important;font-weight:900!important;white-space:nowrap;text-align:center}.route-tank rect{fill:#fff5d6;stroke:#c99019;stroke-width:1}.route-tank text{fill:#6c4a00!important;stroke:none!important;font-size:8px!important;font-weight:900!important}.frequency-notes-label{margin-top:.8rem}.frequency-notes-label textarea{min-height:105px;resize:vertical;line-height:1.35;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.print-profiles{grid-template-columns:minmax(140px,1fr) minmax(140px,1fr) auto auto auto!important}.print-preview-document>h3{display:inline-block;margin-right:.7rem}.print-preview-document>[data-create-pdf]{margin:.35rem 0 .65rem}.print-page .print-excel-top,.print-page .print-excel-bottom{height:var(--log-row)!important}.print-page .print-excel-top>td,.print-page .print-excel-bottom>td{height:var(--log-row)!important}.print-page .print-excel-waypoint{background:#eaf1f7!important}.print-page .print-excel-bottom .print-excel-waypoint{border-top:2px solid #486581!important}.print-page .waypoint-tank{font-size:.58em!important;margin-top:.14rem}.print-page.reduced .reduced-route-print{height:calc(100% - 102px)!important}.print-frequency-box{height:56px;border:1.5px solid #102a43;margin-top:.35rem;padding:.25rem .4rem;background:#fff;text-align:left}.print-frequency-box strong{display:block;font-size:.63rem;letter-spacing:.08em}.print-frequency-box pre{margin:.12rem 0 0;white-space:pre-wrap;font:inherit;font-size:.62rem;line-height:1.2}.print-page.reduced .print-frequency-box{height:48px;margin-top:.25rem;padding:.18rem .28rem}.print-page.reduced .print-frequency-box strong{font-size:.53rem}.print-page.reduced .print-frequency-box pre{font-size:.5rem}
