/* LogBook : même thème, nouveaux repères et tableaux fluides. */
.logbook-workspace{min-width:0;color:var(--text)}
.logbook-workspace .page-header{align-items:flex-start;gap:18px;padding:24px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}
.logbook-workspace .breadcrumbs{min-width:0;max-width:100%;flex-wrap:wrap}.logbook-workspace .breadcrumbs>*{min-width:0;max-width:100%;overflow-wrap:anywhere}.logbook-workspace .page-header-copy{min-width:0}.logbook-workspace :is(h1,h2,h3,p){overflow-wrap:anywhere}.logbook-workspace h1{font-size:clamp(1.6rem,3vw,2.15rem);line-height:1.25}.logbook-workspace h2{font-size:1.2rem;line-height:1.4}
.logbook-workspace .page-header>.button-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;max-width:100%}.logbook-workspace .page-header>.button-row>.button{flex:1 1 150px;max-width:240px}
.logbook-workspace .button{min-height:44px;border-radius:var(--radius-sm);max-width:100%;white-space:normal;text-align:center;line-height:1.4;transform:none}.logbook-workspace .button-row{gap:10px;flex-wrap:wrap}
.logbook-workspace .button-warning{background:var(--warning-soft);border-color:var(--warning);color:var(--warning-text)}.logbook-workspace .button-warning:hover{background:var(--warning-soft);color:var(--text);border-color:var(--warning)}
.logbook-workspace .card{min-width:0;max-width:100%;border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:none;background:var(--surface)}
.logbook-workspace .card-header{gap:14px;flex-wrap:wrap;padding:20px 22px;border-bottom:1px solid var(--border);background:var(--surface);border-radius:var(--radius-lg) var(--radius-lg) 0 0}.logbook-workspace .card-header h2{margin:3px 0}.logbook-workspace .card-header p{margin:7px 0 0;line-height:1.6}.logbook-workspace .card-body{padding:22px}.logbook-workspace .form-card-wide{width:100%;max-width:none}
.logbook-workspace .rt-stats-toolbar{gap:16px;margin:0 0 22px;padding:18px 22px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.lb-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:22px 0}.lb-kpi,.lb-label,.lb-section-nav>a{--lb-soft:var(--surface-2);--lb-ink:var(--text)}
.lb-kpi{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:0;padding:20px;border:1px solid var(--border);border-radius:var(--radius);background:var(--lb-soft);color:var(--lb-ink)}.lb-kpi>span{font-size:.9rem;font-weight:750}.lb-kpi>strong{font-size:clamp(1.3rem,2vw,1.8rem);line-height:1.2;color:inherit;overflow-wrap:anywhere}.lb-kpi strong small{font-size:.85rem;font-weight:650}.lb-kpi p{margin:0;color:var(--text);font-size:.84rem;line-height:1.6}
.lb-tone-distance,.lb-tone-total{--lb-soft:var(--primary-soft);--lb-ink:var(--link)}.lb-tone-energy{--lb-soft:var(--success-soft);--lb-ink:var(--success-text)}.lb-tone-expense{--lb-soft:var(--warning-soft);--lb-ink:var(--warning-text)}
.lb-section-nav{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 22px;padding:14px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.lb-section-nav>a{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 14px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--lb-soft);color:var(--lb-ink);font-size:.88rem;font-weight:750;line-height:1.4;text-decoration:none}.lb-section-nav>a:hover{background:var(--lb-soft);color:var(--lb-ink);border-color:var(--border-strong)}.lb-section-nav a strong{font-size:.8rem;padding:1px 5px;border:1px solid var(--border);border-radius:6px}
.lb-status-tabs{display:flex;flex-wrap:wrap;gap:10px;padding:18px 22px;border-bottom:1px solid var(--border);background:var(--surface)}.lb-status-tabs a{display:flex;align-items:center;justify-content:space-between;gap:18px;flex:1 1 130px;min-height:48px;padding:10px 14px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2);color:var(--text);font-size:.9rem;font-weight:750;line-height:1.4;text-decoration:none}.lb-status-tabs a strong{font-size:.9rem}.lb-status-tabs a.is-active{background:var(--primary);border-color:var(--primary);color:#fff}.lb-status-tabs a:hover{color:var(--text);background:var(--surface-3)}.lb-status-tabs a.is-active:hover{color:#fff;background:var(--primary-strong)}
.lb-table-wrap{max-width:100%;min-width:0;overflow:hidden;border-radius:0 0 var(--radius-lg) var(--radius-lg)}
.logbook-workspace .lb-table{width:100%;min-width:0;max-width:100%;margin:0;border:0;table-layout:fixed;border-collapse:separate;border-spacing:0;background:var(--surface);font-size:.92rem}
.logbook-workspace .lb-table :is(th,td){min-width:0;padding:17px 15px;border:0;border-right:1px solid var(--border);border-bottom:1px solid var(--border);vertical-align:middle;text-align:left;white-space:normal;overflow-wrap:anywhere}.logbook-workspace .lb-table tr>:last-child{border-right:0}.logbook-workspace .lb-table tbody>tr:last-child>td{border-bottom:0}
.logbook-workspace .lb-table thead th{background:var(--surface-2);color:var(--muted);font-size:.84rem;font-weight:750;text-transform:none;letter-spacing:0}.logbook-workspace .lb-table :is(tbody,tr,td),.logbook-workspace .lb-table tbody tr:hover td{background:var(--surface);color:var(--text);transition:none}
.lb-trip-table th:first-child{width:30%}.lb-trip-table th:nth-child(2){width:17%}.lb-trip-table th:nth-child(3){width:16%}.lb-trip-table th:nth-child(4){width:20%}.lb-trip-table th:last-child{width:17%}.lb-energy-table th:last-child{width:24%}.lb-expense-table th:nth-child(3){width:30%}.lb-expense-table th:last-child{width:24%}
.lb-label{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:6px 9px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--lb-soft);color:var(--lb-ink);font-size:.83rem;font-weight:750;line-height:1.45;overflow-wrap:anywhere}.lb-state-active{--lb-soft:var(--success-soft);--lb-ink:var(--success-text)}.lb-state-planned{--lb-soft:var(--primary-soft);--lb-ink:var(--link)}.lb-state-completed,.lb-state-archived{--lb-soft:var(--warning-soft);--lb-ink:var(--warning-text)}
.lb-trip-name{display:block;margin-top:8px;color:var(--link);font-size:1rem;line-height:1.45;font-weight:800;text-decoration:none;overflow-wrap:anywhere}.lb-trip-name:hover{text-decoration:underline}.lb-subtext{display:block;margin-top:6px;color:var(--muted);font-size:.83rem;line-height:1.6;overflow-wrap:anywhere}.lb-amount{font-size:1.08rem;color:var(--heading);line-height:1.4}
.logbook-workspace .lb-row-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:0;margin:0}.lb-row-actions .button{flex:1 1 90px;padding:9px 11px;min-height:44px;font-size:.86rem}.lb-row-actions form{display:flex;flex:1 1 90px;margin:0}.lb-row-actions form .button{width:100%}
.logbook-workspace .lb-empty{padding:28px 22px!important;text-align:center!important;color:var(--muted)}.lb-empty strong,.lb-empty>span{display:block;margin-bottom:6px;line-height:1.6}.lb-empty strong{color:var(--text)}.lb-empty .button{margin-top:12px}
.lb-journal-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:20px;align-items:start}.logbook-workspace .grid{align-items:start}.logbook-workspace .rt-journal-editor textarea{min-height:200px;resize:vertical;font-size:.95rem}.logbook-workspace .rt-metric-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-block:14px;border-bottom:1px solid var(--border);line-height:1.5}.logbook-workspace .rt-metric-row strong{color:var(--heading);text-align:right;overflow-wrap:anywhere}
.logbook-workspace .lb-compose{padding:0;overflow:hidden}.logbook-workspace .lb-compose>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:70px;padding:18px 22px;border:0;border-radius:var(--radius-lg);background:var(--warning-soft);color:var(--warning-text);cursor:pointer;list-style:none}.lb-compose>summary::-webkit-details-marker{display:none}.lb-compose>summary>span:first-child{display:grid;gap:5px;min-width:0}.lb-compose>summary strong{font-size:1.05rem;line-height:1.4;overflow-wrap:anywhere}.logbook-workspace .lb-compose>summary .eyebrow{color:var(--warning-text);font-size:.78rem}.logbook-workspace .lb-compose[open]>summary{border-bottom:1px solid var(--border);border-radius:var(--radius-lg) var(--radius-lg) 0 0;background:var(--surface);color:var(--heading)}.logbook-workspace .lb-compose[open]>summary .eyebrow{color:var(--muted)}
.logbook-workspace .rt-trip-cost-row{padding:14px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2);text-decoration:none}.logbook-workspace .rt-trip-cost-row:hover{background:var(--surface-2);color:var(--text)}.logbook-workspace .rt-trip-cost-track .is-energy{fill:var(--success)}.logbook-workspace .rt-trip-cost-track .is-expense{fill:var(--warning)}
.logbook-workspace .form-actions{gap:10px;flex-wrap:wrap}.logbook-workspace .form-actions>.button{min-height:46px}.logbook-workspace :is(input,textarea,select){min-width:0;max-width:100%;border-radius:var(--radius-sm);background:var(--input-bg);color:var(--text)}.logbook-workspace :is(input[type=date],input[type=number],input[type=text],select){min-height:46px}.logbook-workspace .field{min-width:0}.logbook-workspace .rt-share-option{border-radius:var(--radius);border-color:var(--border)}
.logbook-workspace [id]{scroll-margin-top:120px}.logbook-workspace :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--link);outline-offset:3px}
@media(max-width:1000px){.lb-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.lb-journal-layout{grid-template-columns:1fr}.logbook-workspace .lb-table :is(th,td){padding:14px 11px}}
@media(max-width:760px){.logbook-workspace .page-header{padding:18px;flex-direction:column}.logbook-workspace .page-header>.button-row{width:100%;justify-content:flex-start}.logbook-workspace .page-header>.button-row>.button{max-width:none}.logbook-workspace .card-header,.logbook-workspace .card-body{padding:17px}.logbook-workspace .lb-compose>summary{padding:16px 17px}.logbook-workspace .rt-stats-toolbar{padding:16px;align-items:stretch;flex-direction:column}.lb-status-tabs{padding:15px;gap:8px}.lb-status-tabs a{flex:1 1 calc(50% - 8px);min-width:0;gap:10px}.lb-kpis{gap:10px}.lb-kpi{padding:15px}.lb-kpi strong{font-size:1.4rem}.lb-section-nav{padding:10px;gap:8px}.lb-section-nav>a{flex:1 1 calc(50% - 8px);min-width:0;padding:10px;font-size:.84rem}.logbook-workspace .lb-table,.logbook-workspace .lb-table :is(tbody,tr,td){display:block;min-width:0!important;max-width:100%;width:100%;height:auto}.logbook-workspace .lb-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.logbook-workspace .lb-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:17px;border-bottom:1px solid var(--border)}.logbook-workspace .lb-table tbody tr:last-child{border-bottom:0}.logbook-workspace .lb-table tbody td{padding:0;border:0}.logbook-workspace .lb-table td[data-label]::before{content:attr(data-label);display:block;margin-bottom:7px;font-size:.8rem;font-weight:750;color:var(--muted);line-height:1.4}.logbook-workspace .lb-table td[data-label=Voyage],.logbook-workspace .lb-table td[data-label=Actions],.logbook-workspace .lb-table td[data-label=Note],.logbook-workspace .lb-table td[colspan]{grid-column:1/-1}.logbook-workspace .lb-table td[data-label=Voyage]::before{display:none}.logbook-workspace .lb-empty{padding:18px 10px!important}.lb-row-actions .button,.lb-row-actions form{flex:1 1 100px}.logbook-workspace .rt-trip-cost-row{grid-template-columns:minmax(0,1fr) auto;gap:12px}.logbook-workspace .rt-trip-cost-track{grid-row:2;grid-column:1/-1}.logbook-workspace .rt-trip-cost-value{grid-column:2;grid-row:1}.logbook-workspace .form-actions>.button{flex:1 1 140px}.logbook-workspace .rt-share-actions{flex-wrap:wrap}.logbook-workspace .rt-share-actions>.button{flex:1 1 160px}.logbook-workspace .rt-share-form{min-width:0}}
@media(max-width:370px){.lb-kpis{grid-template-columns:1fr}.lb-section-nav>a{flex-basis:100%}.logbook-workspace .form-grid{grid-template-columns:1fr}.logbook-workspace .form-grid>.field-full{grid-column:1}}
/* L’export reste autonome, imprimable et lisible depuis un téléphone. */
.logbook-print{--lb-print-line:#c6cfd6;--lb-print-soft:#eef1f4;--lb-print-blue:#173f63;background:#f3f5f7;color:#252b30}.logbook-print .print-page{max-width:1100px;border:1px solid var(--lb-print-line);border-radius:20px;background:#fff;padding:30px}.logbook-print .print-head{gap:20px;flex-wrap:wrap}.logbook-print .print-head h1{color:var(--lb-print-blue);overflow-wrap:anywhere}.logbook-print .print-stats{gap:12px}.logbook-print .print-stat{border:1px solid var(--lb-print-line);border-radius:12px;background:var(--lb-print-soft)}.logbook-print .print-stat:nth-child(2){background:#e4f3ea;color:#1f633f}.logbook-print .print-stat:nth-child(3){background:#fff3e5;color:#8f5016}.logbook-print .print-table{table-layout:fixed;width:100%;min-width:0}.logbook-print .print-table :is(th,td){overflow-wrap:anywhere}.logbook-print .print-section{overflow:hidden;border:1px solid var(--lb-print-line);border-radius:12px;padding:18px}.logbook-print .print-section h2{color:var(--lb-print-blue);margin-top:0}.logbook-print .print-notes{overflow-wrap:anywhere}.logbook-print .print-actions button{min-height:44px;border:1px solid #173f63;border-radius:10px;background:#173f63;color:#fff;padding:10px 16px;cursor:pointer}
@media screen and (max-width:700px){.logbook-print .print-page{margin:12px;padding:17px;max-width:calc(100% - 24px)}.logbook-print .print-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.logbook-print .print-stat{min-width:0}.logbook-print .print-section{padding:14px}.logbook-print .print-table,.logbook-print .print-table :is(tbody,tr,td){display:block;width:100%;min-width:0}.logbook-print .print-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.logbook-print .print-table tr{padding:12px 0;border-bottom:1px solid var(--lb-print-line)}.logbook-print .print-table td{border:0;padding:5px 0}.logbook-print .print-table td[data-label]::before{content:attr(data-label) ' : ';font-weight:700;color:#516270}.logbook-print .print-head{display:block}}
@media print{.logbook-print{background:#fff}.logbook-print .print-page{max-width:none;padding:0;border:0;border-radius:0}.logbook-print .print-section{break-inside:auto;padding:12px}.logbook-print .print-table tr{break-inside:avoid}.logbook-print .print-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.logbook-print .print-actions{display:none}}
@media(prefers-reduced-motion:reduce){.logbook-workspace *{scroll-behavior:auto!important}}
