/* Afli 0.2.16: shared navigation styles and fishing screens; information-specific CSS is in assets/info.css. */
:root{--sea:#075aa5;--ink:#183851;--ice:#e6f4ff;--line:#bad6ec;--paper:#fff}
[hidden]{display:none!important}
.ico{width:23px;height:23px;vertical-align:middle;flex:none}
h2 .ico{margin-right:7px;color:#176cae}
.captain-app{padding-left:188px;color:var(--ink);background:linear-gradient(125deg,#d9eeff,#eff8ff 65%,#e6f3ff)}
.captain-app .header{padding:16px 27px;min-height:70px}
.captain-app .header .brand{font-size:21px}
.captain-app .container{max-width:1670px;padding:0 24px;margin:18px auto}
.captain-app .notice{font-size:12px;line-height:1.5;padding:8px 13px;margin-bottom:13px}
.captain-app .notice strong{display:inline;font-size:10px;margin-right:6px}
.captain-app .company{margin-bottom:14px;font-size:13px}
.captain-app .company select{min-height:35px;padding:5px 9px;max-width:285px}
.captain-app .company button{padding:7px 14px}
.captain-app .panel{padding:20px;margin-bottom:0;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.94);box-shadow:0 8px 22px #1c568407}
.captain-app h2{font-size:18px;letter-spacing:-.35px;margin-bottom:10px}
.captain-app h3{font-size:15px}
.captain-app .tiny{padding:0;font-size:11px;line-height:1.5;color:#536e84}
.captain-app footer{margin:26px 15px;font-size:11px}
.board-sidebar{width:188px;position:fixed;inset:0 auto 0 0;background:linear-gradient(#e6f3fc,#d7e9f6);border-right:1px solid #bbd6e9;padding:22px 12px;z-index:40}
.board-wordmark{display:flex;align-items:center;gap:9px;text-decoration:none;padding:5px 8px 22px;font-size:29px;font-weight:800;color:#123e65}
.board-wordmark .ico{width:37px;height:37px}
.board-wordmark small{font-size:10px;display:block;font-weight:400}
.board-sidebar nav{display:grid;gap:5px}
.board-sidebar nav a{display:flex;gap:10px;align-items:center;padding:11px 8px;text-decoration:none;border-radius:8px;color:#1c496c;font-size:13px;font-weight:600}
.board-sidebar nav a:hover{color:white;background:#216ca9}
.board-sidebar nav hr{margin:13px 5px;border-color:#bed7e7}
.board-sidebar .sidebar-note{position:absolute;bottom:15px;left:20px;font-size:10px;color:#5b768b;line-height:1.6}
.voyage-bar{position:sticky;top:8px;z-index:25;backdrop-filter:blur(16px)}
.boat-live-card{border-color:#a8cce3}.boat-live-card .page-top{align-items:center}.boat-live-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.boat-live-grid>div{display:flex;flex-direction:column;gap:4px;padding:12px;background:#f2f8fc;border-radius:9px}.boat-live-grid small{font-size:11px;color:#547086}.boat-live-grid strong{font-size:16px;color:#173d59}.boat-live-grid .tiny{margin-top:3px}
.captain-app .voyage-bar{box-shadow:0 5px 22px #23486515;background:#f9fdfffa}
.voyage-heading{display:flex;align-items:center;gap:15px}
.voyage-heading h1{font-size:25px;margin:0 0 4px;letter-spacing:-.5px}
.voyage-heading p{margin:0}
.boat-emblem{width:58px;height:58px;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#cadfed,#f4fbff);border:1px solid #bed8eb;border-radius:9px;color:#17669b}
.boat-emblem svg{width:38px;height:38px}
.voyage-heading .badge{background:#e4f6ec;color:#215c40;border-color:#b2dbc1;padding:5px 12px;font-size:12px}
.voyage-heading time{margin-left:auto;font-size:12px;color:#496a83}
.voyage-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:13px}
.live-facts{display:flex;gap:22px;align-items:center}
.live-facts small{display:block;font-size:11px;color:#5e788d}
.live-facts strong{font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}
.fishing-actions{gap:7px}
.fishing-actions button{font-size:13px;padding:10px 11px;min-height:42px}
.voyage-bottom{display:flex;align-items:center;gap:12px;margin-top:9px;flex-wrap:wrap}
.voyage-bottom .small{font-size:11px;margin:0}
.text-button{border:0;background:transparent;color:#1465a2;font-size:11px;padding:3px 6px;min-height:27px}
.text-button:hover{background:#dceefb;color:#124e79}
.trip-notes{display:flex;gap:7px;align-items:center;flex-wrap:wrap;font-size:11px;margin:9px 4px}
.trip-notes>strong{color:#256f4b}
.trip-notes .feedback{flex:1;font-size:12px;padding:7px;margin:0}
.idle-bar{display:flex;align-items:center;justify-content:space-between;position:static;margin-bottom:18px!important}
.idle-bar h1{font-size:28px;margin:4px 0 14px}
.compact{margin:12px 0!important}
.is-stale{color:#9c650e!important;background:#fff7df}
.status-neutral{font-size:11px;background:#eaf2f7;border:1px solid #cfdee9;border-radius:20px;padding:5px 10px;display:inline-block;color:#486781}
.market-placeholder{font-size:12px;color:#4f6d85}
.captain-app #catch-section,.captain-app #crew-section,.captain-app #close-details,.captain-app details.panel{margin-bottom:16px;scroll-margin-top:195px}
.captain-app #manual-position{scroll-margin-top:195px}
.captain-app dialog{background:#fff;box-shadow:0 20px 90px #0d324f44;max-height:88dvh}
#new-trip-dialog{max-width:760px}
#new-trip-dialog h2{font-size:25px}
.crew-picker{max-height:270px;overflow:auto}
.crew-pick{display:grid;grid-template-columns:1.2fr 1fr;gap:10px;align-items:center;padding:9px 10px;background:#f4faff;border-bottom:1px solid #d7e6f0}
.crew-pick label{margin:0}
.crew-pick input:not([type=checkbox]){min-height:36px;padding:7px;font-size:13px}
.crew-pick .check{font-weight:600;font-size:13px}
.new-member{grid-template-columns:1fr 1fr auto;margin-top:8px}
.new-member button{margin:0}
.other-species{margin:8px 0 10px!important}
#other-species-picker{padding:12px;background:#f0f8fd;border:1px solid #cbdfed;border-radius:8px}
.species-results{display:flex;flex-wrap:wrap;gap:6px;max-height:190px;overflow:auto;margin-top:10px}
.species-results button{font-size:12px;margin:0;padding:8px 12px}
.captain-app #catch-form .species-buttons button{font-size:12px;padding:9px 13px}
.captain-app #catch-form input[readonly]{color:#174868;background:#eef7fd}
.captain-app #close-progress{padding:12px;background:#fff5db;border:1px solid #e5ce90;border-radius:9px}
.captain-app .table-wrap{max-width:100%}
.captain-app .panel{min-width:0}
@media (max-width:1200px){.captain-app{padding-left:165px}
.board-sidebar{width:165px;padding:18px 7px}
.board-sidebar nav a{font-size:12px;gap:7px}
.live-facts{gap:13px}
.voyage-tools{align-items:flex-start;flex-direction:column}
.fishing-actions{width:100%}
.fishing-actions button{flex:1}}
@media (min-width:1550px){.captain-app .container{padding:0 28px}
.captain-app .voyage-bar{padding:18px 24px}}
@media (max-width:900px){.captain-app{padding-left:0}
.board-sidebar{display:none}
.captain-app .header{padding:13px 17px;min-height:62px}
.captain-app .container{padding:0 14px;margin-top:12px}
.captain-app .header .brand{font-size:22px}
.voyage-heading h1{font-size:22px}
.captain-app .voyage-bar{padding:15px}
.captain-app #catch-section,.captain-app #crew-section,.captain-app #close-details{scroll-margin-top:235px}}
@media (max-width:600px){.captain-app .panel{padding:15px;border-radius:11px}
.captain-app .container{padding:0 9px}
.captain-app .company{gap:6px;font-size:11px;margin-bottom:8px}
.captain-app .company select{min-width:140px;flex:1;max-width:none}
.captain-app .notice{padding:7px 10px;font-size:10px}
.captain-app .notice strong{font-size:9px}
.captain-app .header .brand{font-size:20px}
.captain-app .header .account button{padding:8px 12px;font-size:12px}
.voyage-bar{top:4px}
.voyage-heading{gap:9px;flex-wrap:wrap}
.voyage-heading h1{font-size:18px;line-height:1.2}
.voyage-heading .eyebrow{font-size:8px}
.voyage-heading .tiny{font-size:9px}
.boat-emblem{width:39px;height:42px}
.boat-emblem svg{width:28px;height:28px}
.voyage-heading .badge{font-size:10px;padding:3px 9px}
.voyage-heading time{display:none}
.voyage-tools{gap:9px;margin-top:10px}
.live-facts{width:100%;justify-content:space-between;gap:6px;flex-wrap:wrap}
.live-facts strong{font-size:11px}
.live-facts small{font-size:9px}
.live-facts>span:first-child{min-width:132px}
.fishing-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
.fishing-actions button{font-size:11px;line-height:1.25;min-height:46px;padding:7px 4px}
.voyage-bottom{gap:4px;margin-top:6px}
.voyage-bottom .small{font-size:10px}
.trip-notes{font-size:10px}
.trip-notes .feedback{flex-basis:100%}
.captain-app h2{font-size:16px}
.captain-app dialog{width:calc(100% - 16px);padding:17px}
.crew-pick{grid-template-columns:1fr 1fr;padding:8px 6px}
.new-member{grid-template-columns:1fr}
.crew-pick .check{font-size:12px}
.idle-bar{align-items:flex-start;gap:10px}
.idle-bar h1{font-size:23px}
.idle-bar button{font-size:12px}}
@media print{.board-sidebar,.voyage-bar,.trip-notes,#manual-position,.company,.header{display:none!important}
.captain-app{padding-left:0}}
.captain-app button.tiny{padding:7px 10px;min-height:34px;font-size:12px}
.captain-app .container > .notice{display:none!important}
.fishing-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
.fishing-actions button:disabled{opacity:.43;cursor:not-allowed}
#unregistered-catch:not(:disabled){background:#fff2d8;color:#805308;border-color:#e6be69;font-weight:700}
.depth-input-wrap{max-width:440px;padding:9px 12px;background:#f3faff;border:1px solid #d3e7f3;border-radius:9px;margin:0 0 16px}
.depth-input-wrap label{font-size:12px;font-weight:650}
.depth-input-wrap input{min-height:36px;width:100%;margin:5px 0}
.depth-input-wrap small{color:#587990;font-size:10px;line-height:1.35;display:block}
.post-fishing-dialog{max-width:510px;width:calc(100% - 25px)}
.post-fishing-dialog .inline-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}
.post-fishing-dialog .inline-actions button{min-width:135px}
@media (max-width:650px){.fishing-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.fishing-actions button{font-size:10px!important;padding:8px 2px!important}
.voyage-bottom{display:flex;flex-wrap:wrap}}
.compact-modal{width:min(890px,calc(100% - 24px));max-width:890px;padding:19px 22px;border-radius:14px}
.compact-modal .page-top{margin-bottom:8px;flex-wrap:nowrap}
.compact-modal h2{font-size:19px;margin:0}
.compact-modal .ops-form label{font-size:12px;margin:6px 0 3px}
.compact-modal .ops-form input:not([type=checkbox]),.compact-modal .ops-form select{font-size:14px;min-height:36px;padding:7px 9px}
.compact-modal textarea{font-size:14px;padding:7px;min-height:48px}
.compact-grid{gap:8px 14px}
.catch-modal{max-width:950px}
.catch-modal .species-buttons button{min-height:34px;font-size:12px;margin:2px;padding:5px 10px}
.catch-modal .chosen-red,.catch-modal button.chosen-red:hover{background:#bb3340!important;color:#fff!important;border-color:#a91c2e!important}
.catch-modal .other-species{padding:6px 9px;font-size:12px;margin:6px 0}
.catch-workspace{display:grid;grid-template-columns:minmax(185px,.7fr) minmax(280px,1.3fr);gap:14px;margin:8px 0}
.catch-common{background:#f4f9ff;border:1px solid #d7e7f5;border-radius:10px;padding:10px}
.catch-common .compact-fields{display:grid;grid-template-columns:1fr;gap:3px}
.catch-common .compact-fields label{margin:0;font-size:12px}
.catch-selected{border:1px solid #d4e7f2;border-radius:10px;padding:10px;min-height:220px}
.catch-selected h3{font-size:13px;margin:0 0 7px;color:#174c7d}
.catch-entry{display:grid!important;grid-template-columns:minmax(100px,1fr) minmax(105px,135px);gap:8px;align-items:center;font-weight:500!important;border-bottom:1px solid #e3edf7;padding:4px 0;margin:0!important;font-size:12px!important}
.catch-entry input{min-height:34px!important;font-size:13px!important}
.catch-total{font-size:13px;margin-top:9px;padding:8px;border-radius:8px;background:#eaf5ff;font-weight:700}
.catch-selected .saved-heading{margin-top:12px;border-top:1px solid #d4e7f2;padding-top:9px}
#catch-saved-rows{max-height:none;overflow-y:visible;font-size:12px;color:#405e78;line-height:1.7}
#catch-batch-rows{max-height:none;overflow-y:visible}
#close-trip-dialog .bait-row{gap:8px;margin:5px 0}
#close-trip-dialog .bait-row label{margin:0}
#close-trip-dialog .bait-row button{font-size:12px;padding:6px;margin:0}
#crew-panel-dialog #crew-table{max-height:320px;overflow-y:auto}
#crew-panel-dialog table{font-size:12px}
#crew-panel-dialog td,#crew-panel-dialog th{padding:7px 6px}
#crew-panel-dialog .inline-actions{margin-top:9px}
@media (max-width:640px){.compact-modal{padding:12px;max-height:96vh}
.catch-workspace{grid-template-columns:1fr;gap:9px}
.catch-common .compact-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.compact-modal .page-top h2{font-size:17px}
.catch-entry{grid-template-columns:minmax(90px,1fr) 125px}
.compact-modal .fishing-actions button{min-height:44px}}
.roster-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px}
.roster-toolbar form{display:flex;align-items:center;gap:10px;margin:0!important;padding:0!important}
.roster-toolbar button,.roster-toolbar select{height:42px;min-height:42px;margin:0!important;box-sizing:border-box;line-height:1.2}
.roster-toolbar select{width:auto;max-width:220px}
.crew-absent{border-top:1px solid #c6dced;margin-top:16px;padding-top:10px;background:#f5f9fd}
.absence-group{padding:8px 12px}
.absence-group p{margin:5px 0;font-size:13px}
.close-blocker{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #f0cd89;border-radius:9px;padding:13px;margin:10px 0;background:#fffbef}
.close-blocker p{margin:5px 0 0;font-size:14px}
.close-blocker button{flex-shrink:0;max-width:240px}
.close-ready{padding:12px;background:#edf8f1;border:1px solid #c0dfcb;border-radius:8px}
#close-review-list:empty{display:none}
.start-depth-modal{width:min(430px,calc(100% - 24px))}
.crew-trip-facts{display:grid;grid-template-columns:1.4fr 1fr 1fr .7fr .8fr;gap:12px;padding:12px;background:#eef6fc;border-radius:8px;font-size:13px}
.crew-trip-facts small{display:block;margin-bottom:5px}
.crew-report-list h3{font-size:15px}
.crew-report-list table{font-size:13px}
.report-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.report-filters label{margin:0}
.report-filters button{height:42px;margin:0}
.diagnostics-modal{width:min(1060px,calc(100% - 24px));max-height:92dvh;overflow:auto}
.diagnostics-page{max-width:1080px;margin:auto}
.diagnostic-actions,.diag-test-controls{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.diagnostic-actions button,.diag-test-controls button{margin:0}
.diag-section{border:1px solid #bfd7eb;border-radius:10px;padding:16px;margin:16px 0;background:#f7fbff}
.diag-section h3{margin:0 0 12px;font-size:17px}
.diag-section h4{margin:12px 0 6px}
.diag-section p{margin:8px 0}
.diag-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;font-size:13px}
.diag-fact{border-bottom:1px solid #d6e5f1;padding:6px}
.diag-fact strong{display:block}
.diag-ok{color:#12633b}
.diag-warn{color:#8a4e0a}
.diag-error{color:#a12534}
#diag-raw-text{max-height:180px;overflow:auto;background:#142f44;color:#e0f3ff;padding:10px;white-space:pre-wrap;word-break:break-all;font-size:12px}
#diag-port-list{margin:12px 0}
.diag-test-controls label{max-width:180px;margin:0}
.diag-test-controls select{height:42px;margin:0}
@media (max-width:640px){.roster-toolbar form{flex-wrap:wrap;flex:1}
.roster-toolbar select{max-width:none;flex:1}
.close-blocker{align-items:stretch;flex-direction:column}
.close-blocker button{max-width:none}
.crew-trip-facts{grid-template-columns:1fr 1fr}
.diag-facts{grid-template-columns:1fr}
.diag-section{padding:12px}
.diagnostics-modal{padding:16px}
.report-filters label{flex:1}}
@media print{.no-print,.board-sidebar,.account,.diagnostic-actions{display:none!important}
.crew-report-page .panel{break-inside:avoid;box-shadow:none}
.crew-summary:not([open])>*:not(summary){display:block!important}
.crew-trip-facts{font-size:11px}
.crew-report-list table{font-size:11px}
dialog:not([open]){display:none!important}}
.board-sidebar nav{display:block}
.sidebar-section{display:grid;gap:3px;padding:6px 0 12px;border-bottom:1px solid #c2d7e7}
.sidebar-section:last-child{border-bottom:0}
.sidebar-heading{display:block;padding:6px 8px 8px;font-size:9px;letter-spacing:1.5px;font-weight:800;color:#3e769a}
.sidebar-admin .sidebar-heading{color:#566c82}
.board-sidebar nav a.selected,.board-sidebar nav a[aria-current="page"]{background:#d1e8fa;color:#084f82;font-weight:800}
.board-sidebar nav a:focus-visible{outline:3px solid #86b9ea;outline-offset:1px}
@media (max-width:900px){.board-sidebar{display:block;position:relative;inset:auto;width:100%;height:auto;padding:7px 10px;z-index:8;border-right:0;border-bottom:1px solid #bcd6e7;overflow-x:auto}
.boat-live-grid{grid-template-columns:1fr 1fr}.boat-live-grid>div:last-child{grid-column:1/-1}
.board-wordmark{display:none}
.board-sidebar nav{display:flex;align-items:center;gap:15px;width:max-content}
.sidebar-section{display:flex;flex-direction:row;align-items:center;gap:4px;padding:0;border:0}
.sidebar-section+.sidebar-section{border-left:1px solid #bfdae9;padding-left:13px}
.sidebar-heading{display:none}
.board-sidebar nav a{white-space:nowrap;padding:8px 10px;font-size:12px}
.board-sidebar nav .ico{height:17px;width:17px}}

/* v0.2.31: independently scrollable sidebar, no clipped Superadmin menu */
@media (min-width:901px){.board-sidebar{height:100dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;}.board-sidebar .sidebar-note{position:static;margin:14px 8px 0;}}

.home-idle-client{display:flex;gap:20px;flex-wrap:wrap;margin-top:12px;font-size:12px;color:#385f7c}.home-idle-client strong{color:#153c5b}

/* v0.2.43: compact voyage header; preserve live GPS and control IDs. */
.voyage-tools{margin-top:7px;gap:8px}
.voyage-bottom{margin-top:2px;gap:8px}
.voyage-bar{padding-top:13px;padding-bottom:12px}
.leg-catch-total{margin:7px 0 9px;font-size:13px}
.leg table{width:100%}

/* v0.2.46: one-line numeric entry with per-species gutting; keyboard TAB advances quantity fields. */
.catch-modal .catch-entry{display:grid!important;grid-template-columns:minmax(95px,1fr) 90px minmax(100px,135px)!important;gap:7px;align-items:center}
.catch-modal .catch-entry .catch-gutted{display:flex!important;align-items:center;justify-content:center;gap:3px;margin:0!important;font-size:11px!important;white-space:nowrap}
.catch-modal .catch-entry input[data-draft-gutted]{min-height:0!important;height:16px;width:16px;flex-shrink:0}
.catch-modal .catch-entry input[data-draft-weight]{min-width:0}
@media (max-width:640px){.catch-modal .catch-entry{grid-template-columns:minmax(85px,1fr) 75px minmax(78px,115px)!important}}

/* v0.2.47: compact species chooser (only visible on demand). */
.catch-modal #other-species-picker{margin:9px 0;padding:10px;background:#f0f8fd;border:1px solid #cbdfee;border-radius:9px}
.catch-modal #other-species-picker[hidden]{display:none!important}
.catch-modal .species-picker-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:6px}
.catch-modal .species-picker-head strong{font-size:13px;color:#174c7d}
.catch-modal .species-picker-head button{font-size:12px;min-height:32px;padding:5px 11px;margin:0}
.catch-modal #other-species-results{max-height:195px;overflow-y:auto}
.catch-modal .catch-species-label{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0}
.catch-modal button.catch-remove-species{border:1px solid transparent;background:transparent;color:#56758d;font-size:17px;line-height:1;min-width:26px;min-height:26px;padding:2px;cursor:pointer;border-radius:5px;flex-shrink:0}
.catch-modal button.catch-remove-species:hover,.catch-modal button.catch-remove-species:focus-visible{color:#a11e2d;background:#fff0f1;border-color:#dba6ac}

/* v0.2.57: bycatch stays a separate modal above the unmodified catch draft. */
.bycatch-modal{max-width:720px;width:calc(100% - 32px);max-height:90vh;overflow:auto}
.bycatch-modal::backdrop{background:rgba(12,36,57,.35)}
#catch-bycatch-open{margin-top:12px;width:100%}
#bycatch-return-note{margin:6px 0 12px}
#bycatch-leg-rows:empty{display:none}
#bycatch-form>.dialog-status:empty{display:none}
