#accModal,#accLogbookContent{max-width:100%!important;min-width:0!important;overflow-x:hidden!important}
#accLogbookContent *{box-sizing:border-box}
.logbook-table-wrap{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important;overflow-y:auto!important;border:1px solid #eee;border-radius:8px}
.logbook-responsive-table{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse}
.logbook-responsive-table th,.logbook-responsive-table td{min-width:0!important;overflow-wrap:anywhere}
.logbook-responsive-table th:nth-child(1){width:11%}.logbook-responsive-table th:nth-child(2){width:18%}.logbook-responsive-table th:nth-child(3){width:24%}.logbook-responsive-table th:nth-child(4){width:11%}.logbook-responsive-table th:nth-child(5){width:10%}.logbook-responsive-table th:nth-child(6){width:14%}.logbook-responsive-table th:nth-child(7){width:12%}
.logbook-responsive-table select{width:100%!important;max-width:100%!important;min-width:0!important}
.logbook-note,.logbook-duplicate-badge{display:block;margin-top:2px;font-size:10px;color:#777}
.logbook-fuel-badge{display:inline-block;margin-top:3px;padding:2px 5px;border-radius:5px;background:#e8e8e8;color:#222;font-size:10px;font-weight:700}
.logbook-duplicate-badge{margin-top:5px;padding:4px 5px;border-radius:5px;background:rgba(220,53,69,.15);color:#dc3545;font-size:9px;font-weight:800}
.logbook-delete-button{width:100%;padding:5px 6px;border:1px solid #dc3545;border-radius:6px;background:transparent;color:#dc3545;font-size:10px;font-weight:700;white-space:normal}
.logbook-delete-button.duplicate{background:#dc3545;color:#fff}.logbook-possible-duplicate{background:rgba(220,53,69,.055)}
.logbook-duplicate-notice{width:100%;margin:7px 0;padding:8px 9px;border-radius:8px;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.logbook-duplicate-notice.warning{border:1px solid rgba(220,53,69,.42);background:rgba(220,53,69,.10);color:#dc3545}
.logbook-duplicate-notice.ok{border:1px solid rgba(25,135,84,.28);background:rgba(25,135,84,.08);color:#198754}

@media(max-width:700px){
.logbook-table-wrap{border:0!important;max-height:420px!important;overflow-y:auto!important;overflow-x:hidden!important}
.logbook-responsive-table,.logbook-responsive-table tbody,.logbook-responsive-table tfoot{display:block!important;width:100%!important;max-width:100%!important}
.logbook-responsive-table thead{display:none!important}
.logbook-responsive-table tbody tr{display:grid!important;grid-template-columns:minmax(0,.85fr) minmax(0,1.05fr) minmax(0,1.35fr);width:100%!important;max-width:100%!important;min-width:0!important;margin:0 0 8px;padding:5px;gap:4px;border:1px solid #ddd;border-radius:9px;background:rgba(128,128,128,.035)}
.logbook-responsive-table tbody td{display:block!important;width:auto!important;max-width:100%!important;min-width:0!important;height:auto!important;padding:5px!important;border:0!important;font-size:10.5px!important;line-height:1.3!important;overflow:hidden}
.logbook-responsive-table tbody td::before{content:attr(data-label);display:block;margin-bottom:3px;color:#777;font-size:8.5px;font-weight:800;line-height:1;text-transform:uppercase}
.logbook-responsive-table tbody td:nth-child(3) select{width:100%!important;max-width:100%!important;min-width:0!important;padding:5px!important;font-size:9.5px!important;line-height:1.2!important}
.logbook-responsive-table tbody td:nth-child(4),.logbook-responsive-table tbody td:nth-child(5),.logbook-responsive-table tbody td:nth-child(6){border-top:1px dashed rgba(128,128,128,.25)!important}
.logbook-action-cell{grid-column:1/-1;padding-top:2px!important}.logbook-action-cell::before{display:none!important}
.logbook-delete-button{width:100%!important;min-height:30px;font-size:10px!important}
.logbook-responsive-table tfoot tr{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px;width:100%;margin-top:6px;padding:8px;border:1px solid #ddd;border-radius:9px}
.logbook-responsive-table tfoot td{display:block!important;width:auto!important;padding:4px!important;border:0!important;font-size:11px!important}
.logbook-responsive-table tfoot td:first-child{grid-column:1/-1}.logbook-responsive-table tfoot td:last-child:empty{display:none!important}
#accLogbookContent>div[style*="height:180px"]{height:150px!important}
}
@media(max-width:390px){
.logbook-responsive-table tbody tr{grid-template-columns:minmax(0,.8fr) minmax(0,1fr) minmax(0,1.2fr);gap:3px;padding:4px}
.logbook-responsive-table tbody td{padding:4px!important;font-size:9.5px!important}
.logbook-responsive-table tbody td::before{font-size:8px}
.logbook-responsive-table tbody td:nth-child(3) select{font-size:8.5px!important;padding:4px!important}
}
@media(prefers-color-scheme:dark){
.logbook-table-wrap,.logbook-responsive-table tbody tr,.logbook-responsive-table tfoot tr{border-color:#444}
.logbook-fuel-badge{background:#e8e8e8;color:#222}
.logbook-duplicate-notice.ok{color:#57d68d}.logbook-duplicate-notice.warning,.logbook-duplicate-badge{color:#ff6f7d}
}