:root{--ink:#1b1714;--muted:#71685d;--gold:#d4a62a;--gold2:#9b731a;--bg:#f6efe3;--card:#fffdf8;--line:#9b731a3d;--shadow:0 18px 45px #34230814;--green:#166534;--red:#991b1b;--blue:#1e3a8a;--amber:#92400e}*{box-sizing:border-box}body{color:var(--ink);background:linear-gradient(180deg,#fbf7ef,var(--bg));margin:0;font-family:Inter,Arial,sans-serif}.wrap{max-width:1500px;margin:auto;padding:16px}.login{place-items:center;min-height:100vh;padding:18px;display:grid}.card,.panel{border:1px solid var(--line);box-shadow:var(--shadow);background:#fffdf8f0;border-radius:26px;margin-bottom:16px;padding:24px}.login .card{width:100%;max-width:900px}.top{border:1px solid var(--line);box-shadow:var(--shadow);z-index:10;background:#fffdf8f0;border-radius:26px;justify-content:space-between;align-items:center;gap:14px;padding:18px 20px;display:flex;position:sticky;top:10px}.brand{align-items:center;gap:14px;display:flex}.brand-logo{object-fit:contain;border:1px solid var(--line);background:#fff;border-radius:999px;width:58px;height:58px;padding:5px}.brand h1{margin:0;font-family:Cormorant Garamond,serif;font-size:clamp(1.8rem,4vw,3rem);line-height:1}.brand p{color:var(--muted);letter-spacing:.12em;text-transform:uppercase;margin:4px 0 0;font-size:.78rem;font-weight:800}.eyebrow{color:var(--gold2);letter-spacing:.18em;text-transform:uppercase;align-items:center;gap:10px;margin-bottom:10px;font-size:.78rem;font-weight:900;display:inline-flex}.eyebrow:before{content:"";background:var(--gold);border-radius:999px;width:36px;height:2px}h2,h3{margin-top:0}h2{margin-bottom:10px;font-family:Cormorant Garamond,serif;font-size:clamp(1.8rem,3vw,3rem);line-height:1}h3{margin:16px 0 10px;font-family:Cormorant Garamond,serif;font-size:1.55rem}p{color:var(--muted);line-height:1.7}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.grid3{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.grid4{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.missionGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0;display:grid}.missionGrid div{border:1px solid var(--line);background:#fff;border-radius:18px;padding:14px}.missionGrid p{margin:.3rem 0 0;font-size:.86rem}.full{grid-column:1/-1}label{margin-bottom:7px;font-size:.86rem;font-weight:900;display:block}input,select,textarea{width:100%;font:inherit;color:var(--ink);background:#fff;border:1px solid #9b731a40;border-radius:16px;padding:13px}textarea{resize:vertical;min-height:105px}button,.btn{cursor:pointer;border:0;border-radius:999px;justify-content:center;align-items:center;gap:8px;padding:12px 17px;font-weight:900;text-decoration:none;display:inline-flex}.primary{color:#fff;background:linear-gradient(135deg,#e0b744,#b78119)}.secondary{border:1px solid var(--line);color:var(--ink);background:#fff}.dark{background:var(--ink);color:#fff}.green{background:var(--green);color:#fff}.red{background:var(--red);color:#fff}.blue{background:var(--blue);color:#fff}.small{padding:8px 11px;font-size:.78rem}.row{flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px;display:flex}.chip{border:1px solid var(--line);color:var(--gold2);background:#fff;border-radius:999px;padding:9px 12px;font-weight:900;display:inline-flex}.layout{grid-template-columns:285px 1fr;gap:16px;margin-top:16px;display:grid}.side{border:1px solid var(--line);box-shadow:var(--shadow);background:#fffdf8f0;border-radius:22px;align-self:start;max-height:calc(100vh - 130px);padding:12px;position:sticky;top:110px;overflow:auto}.nav{width:100%;color:var(--muted);text-align:left;background:0 0;border-radius:15px;margin-bottom:6px}.nav.active{color:var(--ink);border:1px solid var(--line);background:#fff5df}.mobile{margin-top:14px;display:none}.metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.metric{border:1px solid var(--line);background:#fff;border-radius:20px;padding:16px}.metric span{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-size:.75rem;font-weight:900;display:block}.metric strong{margin-top:7px;font-size:1.45rem;display:block}.table{border:1px solid var(--line);background:#fff;border-radius:18px;margin-top:12px;overflow:auto}table{border-collapse:collapse;width:100%;min-width:980px}th,td{text-align:left;vertical-align:top;border-bottom:1px solid #9b731a26;padding:11px;font-size:.86rem}th{background:#eee5d8;font-weight:900}.notice{border-left:4px solid var(--gold);color:var(--muted);background:#d4a62a17;border-radius:16px;margin:12px 0;padding:13px 15px;line-height:1.65}.empty{text-align:center;color:var(--muted);padding:20px}.product-box{background:#ffffff94;border:1px dashed #9b731a61;border-radius:20px;margin-top:12px;padding:14px}.signature-box{background:#ffffffb8;border:1px solid #9b731a38;border-radius:18px;margin-top:14px;padding:14px}.signature-canvas{touch-action:none;background:#fff;border:1px solid #9b731a47;border-radius:14px;width:100%;height:180px;display:block}.document-logo-wrap{justify-content:center;margin:10px 0 18px;display:flex}.document-logo{object-fit:contain;width:120px;max-width:35%;height:auto}.logoFallback,.sealFallback{border:1px solid var(--line);color:var(--gold2);background:#fff;border-radius:999px;place-items:center;font-weight:900;display:grid}.logoFallback{width:58px;height:58px}.sealFallback{border-radius:18px;width:140px;height:100px}.sealImg{object-fit:contain;max-width:150px;max-height:110px}.brandingPreview{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:12px 0;display:grid}.brandingPreview>div{border:1px solid var(--line);text-align:center;background:#fff;border-radius:20px;padding:16px}.line{grid-template-columns:2fr 1fr 1fr 1fr 1.5fr auto;align-items:end;gap:8px;display:grid}.prodLine{grid-template-columns:2fr 1fr 1fr 1fr 1fr 1.5fr auto;align-items:end;gap:8px;display:grid}.actionCell{min-width:320px}.badText{color:var(--red);font-weight:900}.modal{z-index:9999;background:#0000008c;place-items:start center;padding:20px;display:grid;position:fixed;inset:0;overflow:auto}.modalBox{width:100%;max-width:1000px;box-shadow:var(--shadow);background:#fff;border-radius:22px;margin:20px auto;padding:22px}.jsonBox{min-height:420px;font-family:ui-monospace,Menlo,Consolas,monospace}.compact{min-width:140px}.reportPreview{border:1px solid var(--line);background:#fff;border-radius:22px;margin-top:16px;padding:22px}@media (width<=1050px){.layout{grid-template-columns:1fr}.side{display:none}.mobile{display:block}.metrics{grid-template-columns:repeat(2,1fr)}}@media (width<=760px){.wrap{padding:10px}.top{flex-direction:column;align-items:flex-start;position:relative;top:auto}.grid,.grid3,.grid4,.metrics,.missionGrid,.brandingPreview{grid-template-columns:1fr}.card,.panel{padding:18px}button,.btn{width:100%}.small{width:auto}.brand-logo{width:50px;height:50px}table{min-width:760px}.line,.prodLine{grid-template-columns:1fr}.actionCell{min-width:220px}}@media print{.top,.side,.mobile,button,.notice:not(.printKeep){display:none!important}.layout{display:block}.panel{box-shadow:none;border:0}.reportPreview{border:0}.wrap{max-width:100%;padding:0}}.login .document-logo-wrap,.document-logo-wrap{justify-content:center;align-items:center;width:160px;max-width:160px;height:160px;margin:0 auto 18px;display:flex;overflow:hidden}.document-logo,.login .document-logo{display:block;object-fit:contain!important;width:120px!important;max-width:120px!important;height:120px!important;max-height:120px!important}.brand-logo{background:#fff;display:block;object-fit:contain!important;width:64px!important;max-width:64px!important;height:64px!important;max-height:64px!important}.top img,.loginCard img,.card img{object-fit:contain!important}.notice{font-weight:700}@media (width<=760px){.login .document-logo-wrap,.document-logo-wrap{width:130px;max-width:130px;height:130px}.document-logo,.login .document-logo{width:100px!important;max-width:100px!important;height:100px!important;max-height:100px!important}}.barge-note{font-weight:800}.approvalBadge{color:#92400e;background:#fff7ed;border:1px solid #92400e40;border-radius:999px;margin-left:6px;padding:7px 10px;font-weight:900;display:inline-flex}.docModal{max-width:1050px}.docPrint{color:#111;background:#fff;border:1px solid #0000001f;border-radius:18px;padding:24px}.docHeader{border-bottom:3px solid #d4a62a;justify-content:space-between;gap:20px;margin-bottom:18px;padding-bottom:14px;display:flex}.docLogo{object-fit:contain;width:90px!important;height:90px!important}.docCompany{text-align:right;max-width:370px}.docCompany p{color:#333;margin:3px 0;line-height:1.35}.docGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px;margin:14px 0;display:grid}.docGrid p{color:#222;margin:0}.docTotals{background:#fffdf7;border:1px solid #0000001f;border-radius:14px;max-width:360px;margin:16px 0 10px auto;padding:12px}.docTotals p{color:#111;justify-content:space-between;margin:6px 0;display:flex}.docFooter{border-top:1px solid #0000001f;grid-template-columns:1fr 160px;align-items:end;gap:18px;margin-top:28px;padding-top:18px;display:grid}.docSignature{object-fit:contain;width:180px;max-height:80px;display:block}.generated{color:#555;grid-column:1/-1;font-size:.85rem}.noPrint{justify-content:flex-end}@media print{body *{visibility:hidden!important}.docModal,.docModal *{visibility:visible!important}.docModal{width:100%;position:absolute;top:0;left:0;box-shadow:none!important;margin:0!important;padding:0!important}.modal{background:#fff!important;padding:0!important;position:absolute!important}.noPrint{display:none!important}.docPrint{border:none!important;border-radius:0!important}}@media (width<=760px){.docHeader,.docGrid,.docFooter{grid-template-columns:1fr;display:grid}.docCompany{text-align:left}}.docWebsiteLine{color:#111;background:#fff8e6;border:1px solid #d4a62a59;border-radius:12px;margin:12px 0 14px;padding:10px 12px;font-size:.95rem;line-height:1.5}.uploadBox{color:#7a5b12;cursor:pointer;background:#fff;border:1px solid #9b731a4d;border-radius:999px;justify-content:center;align-items:center;margin-top:12px;padding:12px 16px;font-weight:900;display:inline-flex}.uploadBox input{display:none}.brandingPreview .sealImg,.docFooter .sealImg{object-fit:contain;max-width:150px;max-height:150px;margin:auto;display:block}.line select,.line input{min-width:0}.paymentDetailsBox{background:#fffaf0;border:1px solid #9b731a47;border-radius:16px;margin:18px 0;padding:14px}.paymentDetailsBox h3{margin:0 0 10px}.paymentGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.paymentGrid p{color:#111;margin:4px 0}.paymentNote{color:#111;margin-top:12px;font-weight:700}@media (width<=760px){.paymentGrid{grid-template-columns:1fr}}.termsNoticeBox{color:#111;background:#fffdf7;border:1px solid #50360c38;border-radius:16px;margin:18px 0;padding:14px 16px}.termsNoticeBox h3{text-transform:uppercase;letter-spacing:.04em;margin:0 0 10px;font-size:1.2rem}.termsNoticeBox p{color:#111;margin:7px 0;font-size:.88rem;line-height:1.55}@media print{.termsNoticeBox{break-inside:avoid;page-break-inside:avoid}}@media (width<=900px){.bargeSummaryCards{grid-template-columns:1fr}}@media (width<=900px){.bargeSummaryCards{grid-template-columns:1fr}}.batchSessionCard{background:#fffdf8;border:1px solid #9b731a47;border-radius:18px;margin:14px 0;padding:14px}@media (width<=900px){.bargeSummaryCards{grid-template-columns:1fr}}.warning{color:#7f1d1d;background:#fff5f5;border-color:#b91c1c40}.bargeSummaryCards{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 20px;display:grid}.selectedBatchNote{background:#fff8e6;border:1px solid #d4a62a59;border-radius:14px;margin:14px 0 8px;padding:12px 14px;font-weight:800}@media (width<=900px){.bargeSummaryCards{grid-template-columns:1fr}}.quickWalkIn{background:#fff8e6;border:1px solid #d4a62a59;border-radius:16px;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 14px;display:flex}.quickWalkIn span{color:#5f554b;font-size:.9rem;font-weight:800}.profitMetrics .metric{min-height:92px}.proofBox{background:#fffdf7;border:1px solid #9b731a40;border-radius:14px;margin:14px 0;padding:12px}.proofBox img{object-fit:contain;border:1px solid #0000001f;border-radius:10px;max-width:260px;max-height:260px;display:block}.errorScreen{background:#f7f2e8;justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.errorScreen .card{text-align:left;width:100%;max-width:620px;padding:28px}.errorText{color:#7f1d1d;word-break:break-word;background:#fff5f5;border:1px solid #b91c1c38;border-radius:12px;padding:10px 12px;font-size:.9rem}.reportPreview h3{margin-top:22px}.reportPreview .tableWrap{margin-bottom:14px}@media print{body *{visibility:hidden!important}.reportPreview,.reportPreview *{visibility:visible!important}.reportPreview{color:#111!important;width:100%!important;max-width:100%!important;box-shadow:none!important;background:#fff!important;border:0!important;margin:0!important;padding:0!important;position:absolute!important;top:0!important;left:0!important}.reportPreview .table{overflow:visible!important}.reportPreview table{border-collapse:collapse!important;width:100%!important;min-width:0!important}.reportPreview th,.reportPreview td{white-space:normal!important;word-break:break-word!important;color:#111!important;border:1px solid #999!important;padding:5px!important;font-size:9.5px!important}.top,.side,.mobile,button,.noPrint{display:none!important}@page{size:A4 landscape;margin:10mm}.reportPreview,.reportPreview *{box-shadow:none!important;text-shadow:none!important;border-radius:0!important}.reportPreview th{background:#f2f2f2!important}}.apiStatus{font-weight:800}.status .small{margin-left:10px}.status{line-height:1.4}@media print{html,body{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;background:#fff!important}.document,.doc,.docBox,.previewDoc,.documentBody,.reportPreview,.paymentReceipt,.receiptDocument,.invoiceDocument,.waybillDocument{page-break-inside:avoid!important;break-inside:avoid!important;overflow:visible!important}.document table,.doc table,.docBox table,.previewDoc table,.reportPreview table,.paymentReceipt table,.receiptDocument table,.invoiceDocument table,.waybillDocument table,table{border-collapse:collapse!important;table-layout:fixed!important;page-break-inside:avoid!important;break-inside:avoid!important;width:100%!important;min-width:0!important;max-width:100%!important}thead{display:table-header-group!important}tfoot{display:table-footer-group!important}tr,td,th{page-break-inside:avoid!important;break-inside:avoid!important}th,td{white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;vertical-align:top!important;line-height:1.25!important}.docTotals,.termsBox,.signatureArea,.signature-box,.proofBox,.documentFooter{page-break-inside:avoid!important;break-inside:avoid!important}@page{size:A4 portrait;margin:10mm}}.document table,.doc table,.docBox table,.previewDoc table,.reportPreview table{table-layout:fixed}.document th,.document td,.doc th,.doc td,.docBox th,.docBox td,.previewDoc th,.previewDoc td,.reportPreview th,.reportPreview td{overflow-wrap:anywhere}@media print{body{font-size:12.5pt!important}.document,.doc,.docBox,.previewDoc,.reportPreview{color:#111!important;font-size:12pt!important;line-height:1.45!important}.document h1,.document h2,.doc h1,.doc h2,.docBox h1,.docBox h2,.previewDoc h1,.previewDoc h2,.reportPreview h1,.reportPreview h2{letter-spacing:.08em!important;text-align:center!important;text-transform:uppercase!important;margin:12pt 0 8pt!important;font-size:21pt!important;font-weight:900!important}.document h3,.doc h3,.docBox h3,.previewDoc h3,.reportPreview h3{letter-spacing:.04em!important;border-bottom:1.5pt solid #b8871b!important;margin:18pt 0 8pt!important;padding:6pt 0 4pt!important;font-size:14pt!important;font-weight:900!important}.document p,.doc p,.docBox p,.previewDoc p,.reportPreview p{margin:5pt 0!important;font-size:11.5pt!important}.document th,.document td,.doc th,.doc td,.docBox th,.docBox td,.previewDoc th,.previewDoc td,.reportPreview th,.reportPreview td{padding:7pt!important;font-size:10.5pt!important;line-height:1.35!important}.document th,.doc th,.docBox th,.previewDoc th,.reportPreview th{background:#f2ead6!important;font-weight:900!important}.docTotals p{font-size:12pt!important;font-weight:700!important}.termsBox{margin-top:12pt!important;padding:10pt!important;font-size:10.8pt!important;line-height:1.4!important}@page{size:A4 portrait;margin:12mm}}.reportPreview h2{letter-spacing:.08em;text-align:center;margin:18px 0 8px}.reportPreview h3{border-bottom:2px solid #b8871b8c;margin-top:28px;padding-bottom:8px}.reportPreview table{margin:12px 0 22px}.reportPreview th{font-weight:900}@media screen and (width<=760px){.document,.doc,.docBox,.previewDoc,.reportPreview{padding:16px!important;font-size:15px!important;line-height:1.55!important}.document h1,.document h2,.doc h1,.doc h2,.docBox h1,.docBox h2,.previewDoc h1,.previewDoc h2,.reportPreview h1,.reportPreview h2{letter-spacing:.04em!important;font-size:22px!important;font-weight:900!important;line-height:1.2!important}.document h3,.doc h3,.docBox h3,.previewDoc h3,.reportPreview h3{font-size:17px!important;font-weight:900!important}.document p,.doc p,.docBox p,.previewDoc p,.reportPreview p{font-size:14.5px!important}.document th,.document td,.doc th,.doc td,.docBox th,.docBox td,.previewDoc th,.previewDoc td,.reportPreview th,.reportPreview td{padding:8px!important;font-size:13px!important;line-height:1.35!important}.docTotals p{font-size:15px!important;font-weight:800!important}}@media print{html,body{-webkit-text-size-adjust:100%!important;-moz-text-size-adjust:100%!important;text-size-adjust:100%!important;width:auto!important;min-width:0!important}.document,.doc,.docBox,.previewDoc,.reportPreview{zoom:1!important;width:100%!important;max-width:100%!important;font-size:12.8pt!important;line-height:1.5!important;transform:none!important}.document h1,.document h2,.doc h1,.doc h2,.docBox h1,.docBox h2,.previewDoc h1,.previewDoc h2,.reportPreview h1,.reportPreview h2{font-size:22pt!important;font-weight:900!important;line-height:1.18!important}.document h3,.doc h3,.docBox h3,.previewDoc h3,.reportPreview h3{font-size:15pt!important;font-weight:900!important}.document p,.doc p,.docBox p,.previewDoc p,.reportPreview p{font-size:12.5pt!important}.document th,.document td,.doc th,.doc td,.docBox th,.docBox td,.previewDoc th,.previewDoc td,.reportPreview th,.reportPreview td{padding:7pt!important;font-size:10.8pt!important;line-height:1.35!important}@page{size:A4 portrait;margin:12mm}}.materialLine{background:#ffffffbf;border:1px solid #b8871b38;border-radius:14px;margin:10px 0;padding:12px}.lineBox h3{margin-top:4px}.dbNotice{border-left:4px solid #b8871b!important}.dbNotice .row{gap:8px;margin-top:10px}.dbNotice .small{padding:8px 12px;font-size:12px}.mini{color:var(--muted);margin:4px 0 10px;font-size:13px}.notice.full{grid-column:1/-1}.overpayWarn{background:#fff7ed!important;border-left:4px solid #b45309!important}.creditBox{background:#f0fdf4!important;border-left:4px solid #15803d!important}.creditSources{background:#f0fdf4;border:1px solid #15803d38;border-radius:14px;padding:12px}.creditSources h4{margin:0 0 8px}.creditBox b,.creditSources b{font-weight:900}.docTotals p{margin:6px 0}.outstandingBox{background:#fff7ed!important;border-left:4px solid #7c2d12!important}.outstandingSources{background:#fff7ed;border:1px solid #7c2d1238;border-radius:14px;padding:12px}.outstandingSources h4{margin:0 0 8px}.accountSummaryBox{font-size:14px;line-height:1.55;background:#eff6ff!important;border-left:4px solid #1d4ed8!important}.accountSummaryBox b{font-weight:900}.settlementPanel,.receiptSettlementPanel{background:linear-gradient(#eff6ff,#fff);border:2px solid #1d4ed873;border-radius:18px;grid-column:1/-1;padding:16px;box-shadow:0 8px 22px #0f172a14}.settlementPanel h3,.receiptSettlementPanel h3{color:#1e3a8a;margin:0 0 10px;font-size:17px;font-weight:900}.settlementGrid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;display:grid}.settlementGrid div{background:#fff;border:1px solid #0f172a1a;border-radius:12px;padding:10px}.settlementGrid span{text-transform:uppercase;letter-spacing:.04em;color:#64748b;margin-bottom:5px;font-size:11px;display:block}.settlementGrid b{color:#111827;font-size:16px}.mutedText{color:#64748b}.miniTableWrap{margin-top:12px}.docSettlementBox{background:#eff6ff;border:2px solid #1d4ed8;border-radius:14px;margin:12px 0;padding:12px}.docSettlementBox h3{color:#1e3a8a;margin:0 0 8px}.resetNotice{font-weight:650;color:#7f1d1d!important;background:#fef2f2!important;border-left:4px solid #dc2626!important}.resetBtn{color:#fff!important;background:#7f1d1d!important;border:1px solid #7f1d1d!important}.resetBtn:hover{filter:brightness(.95)}.ledgerDeleteBtn{color:#fff!important;background:#b45309!important;border:1px solid #b45309!important}.ledgerDeleteBtn:hover{filter:brightness(.95)}
