/* J. Brothers offer list - Navy Classic theme. Plain CSS, no framework. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:#cfd9e4;color:#14283a;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:16px;line-height:1.35;-webkit-tap-highlight-color:transparent}
button,input{font-family:inherit;font-size:inherit;color:inherit}
button{cursor:pointer}
[hidden]{display:none !important}
:focus-visible{outline:3px solid #2f7bb5;outline-offset:2px}

.app{max-width:480px;min-height:100vh;min-height:100dvh;margin:0 auto;background:#eef3f8;display:flex;flex-direction:column;box-shadow:0 0 24px rgba(20,40,58,.25)}

/* sticky top: header + search + sort */
.top{position:-webkit-sticky;position:sticky;top:0;z-index:20}
.hd{background:#1d3b55;color:#fff;padding:10px 14px 12px;padding-top:max(10px,env(safe-area-inset-top))}
.brand{display:flex;align-items:center;gap:10px}
.logo{width:40px;height:40px;border-radius:50%;flex:none;background:#fff}
.bt{flex:1;min-width:0}
.bt strong{display:block;font-size:15px;letter-spacing:.2px;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bt span{display:block;font-size:12px;color:#c9d9e6}
.iconbtn{width:44px;height:44px;flex:none;border-radius:10px;border:1px solid #4f7391;background:transparent;color:#fff;display:flex;align-items:center;justify-content:center}
.search{margin-top:10px;display:flex;align-items:center;gap:8px;height:44px;border-radius:8px;padding:0 4px 0 12px;background:#fff;color:#4a6176}
.search input{flex:1;min-width:0;height:100%;border:0;background:transparent;outline:0;color:#14283a;-webkit-appearance:none;appearance:none}
.search input::-webkit-search-cancel-button{display:none}
.search .clear{width:40px;height:40px;border:0;background:transparent;font-size:22px;line-height:1;color:#4a6176}
.tools{background:#fff;border-bottom:1px solid #d3dde7;display:flex;align-items:center;gap:8px;padding:8px 14px}
.tools .lbl{font-size:12px;font-weight:600;color:#4a6176}
.pills{display:flex;gap:6px;flex:1}
.pill{height:40px;padding:0 14px;border-radius:20px;border:1px solid #bcccdb;background:#fff;font-size:13px;font-weight:600;color:#1d3b55;display:flex;align-items:center;gap:6px;white-space:nowrap}
.pill[aria-pressed="true"],.pill.on{background:#1d3b55;border-color:#1d3b55;color:#fff}
.pill .n{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#2f7bb5;color:#fff;font-size:11px;display:inline-flex;align-items:center;justify-content:center}

/* list */
.list{flex:1}
.count{padding:8px 14px;font-size:12px;color:#4a6176}
.grp{padding:8px 14px;background:#dfe8f0;color:#14283a;font-size:12px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;display:flex;justify-content:space-between;position:-webkit-sticky;position:sticky;top:var(--top-h,170px);z-index:5}
.grp span{font-weight:600;letter-spacing:0;color:#4a6176}
.row{display:flex;align-items:center;gap:10px;padding:9px 14px;min-height:60px;background:#fff;border-bottom:1px solid #dde6ee}
.row.alt{background:#f6f9fc}
.row.sel{background:#d9ebf8}
.info{flex:1;min-width:0}
.nm{font-size:14px;font-weight:650;line-height:1.25;word-wrap:break-word;overflow-wrap:anywhere}
.meta{margin-top:2px;font-size:12px;color:#4a6176;display:flex;flex-wrap:wrap;gap:2px 10px}
.meta .off{color:#9a4a00;font-weight:700}
.meta .amt{color:#1d3b55;font-weight:800}
.stepper{flex:none;display:flex;align-items:center;gap:2px}
.stepper button{width:40px;height:44px;border:1px solid #9db4c7;background:#fff;border-radius:8px;font-size:22px;line-height:1;color:#1d3b55;padding:0;touch-action:manipulation}
.stepper button:active{background:#dfe8f0}
.stepper input{width:42px;height:44px;border:0;background:transparent;text-align:center;font-weight:700;font-size:16px;-moz-appearance:textfield;appearance:textfield;padding:0}
.stepper input::-webkit-outer-spin-button,.stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.stepper input.zero{color:#566a7d;font-weight:500}
.empty{padding:40px 20px;text-align:center;color:#4a6176}

/* bottom bar */
.bar{position:-webkit-sticky;position:sticky;bottom:0;z-index:20;background:#fff;border-top:2px solid #1d3b55;padding:10px 14px;padding-bottom:max(10px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:10px}
.sum{flex:1;min-width:0}
.sum small{display:block;font-size:12px;color:#4a6176}
.sum b{display:block;font-size:19px;color:#1d3b55;white-space:nowrap}
.btn{height:48px;padding:0 16px;border-radius:8px;border:1px solid #1d3b55;background:#fff;color:#1d3b55;font-weight:700;font-size:15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;touch-action:manipulation}
.btn.primary{background:#1d3b55;color:#fff}
.btn.wa{background:#1b7f45;border-color:#1b7f45;color:#fff}
.btn[disabled]{opacity:.55;cursor:default}
.btn.block{width:100%}

/* overlays: review sheet, dialogs, success */
.ov{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:rgba(14,28,41,.6);display:flex;align-items:flex-end;justify-content:center}
.ov.center{align-items:center;padding:20px}
.sheet{width:100%;max-width:480px;max-height:92vh;max-height:92dvh;overflow:auto;background:#fff;border-radius:18px 18px 0 0;padding:14px 16px;padding-bottom:max(16px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px}
.sheet>*{flex-shrink:0}
.ov.center .sheet{border-radius:16px;max-height:90vh}
.sheet h2{margin:0;font-size:20px}
.sheet p{margin:0;color:#33475a;font-size:15px}
.shead{display:flex;align-items:center;justify-content:space-between;gap:10px}
.shead .iconbtn{border-color:#bcccdb;color:#1d3b55;font-size:22px}
.lines{border:1px solid #d3dde7;border-radius:12px;overflow:hidden}
.ln{display:flex;gap:10px;padding:10px 12px;border-bottom:1px solid #e4ebf2}
.ln:last-child{border-bottom:0}
.ln .t{flex:1;min-width:0}
.ln b{display:block;font-size:14px;line-height:1.25}
.ln small{font-size:12px;color:#4a6176}
.ln .m{font-weight:700;font-size:14px;white-space:nowrap}
.tot{display:flex;flex-direction:column;gap:5px;font-size:14px;color:#33475a}
.tot div{display:flex;justify-content:space-between}
.tot .big{margin-top:4px;padding-top:8px;border-top:1px dashed #bcccdb;font-size:20px;font-weight:800;color:#14283a}
.fld label{display:block;font-weight:700;font-size:14px;margin-bottom:6px}
.fld input{width:100%;height:48px;border:1.5px solid #1d3b55;border-radius:10px;padding:0 14px;font-size:16px;background:#fff}
.fld input[aria-invalid="true"]{border-color:#b3261e;background:#fff6f5}
.fld .err{color:#b3261e;font-size:13px;margin-top:6px}
.fld .hint{color:#4a6176;font-size:12px;margin-top:6px}
.stack{display:flex;flex-direction:column;gap:10px}
.ok{width:72px;height:72px;margin:6px auto 0;border-radius:50%;background:#1d3b55;color:#fff;display:flex;align-items:center;justify-content:center}
.center-t{text-align:center}
.pdfchip{display:flex;align-items:center;gap:12px;border:1px solid #d3dde7;border-radius:12px;padding:12px;text-align:left}
.pdfchip i{font-style:normal;width:40px;height:48px;border-radius:6px;background:#fdecea;color:#b3261e;font-size:11px;font-weight:800;display:flex;align-items:flex-end;justify-content:center;padding-bottom:5px;flex:none}
.pdfchip b{display:block;font-size:14px;word-break:break-all}
.pdfchip small{color:#4a6176;font-size:12px}
.calls a{justify-content:flex-start}

.toast{position:fixed;left:50%;bottom:92px;transform:translateX(-50%);z-index:80;max-width:min(440px,92vw);background:#14283a;color:#fff;padding:12px 16px;border-radius:10px;font-size:14px;box-shadow:0 6px 20px rgba(0,0,0,.3)}

@media (min-width:520px){
  .app{margin-top:16px;margin-bottom:16px;min-height:calc(100vh - 32px);border-radius:18px}
  .hd{border-radius:18px 18px 0 0}
  .top{top:0}
}
@media print{.top,.bar,.ov,.toast{display:none}}
