main,.content{min-width:0} .record-workbench{width:100%;max-width:1600px;margin-inline:auto;padding:clamp(.5rem,2vw,1.5rem)}
.record-toolbar{border-top:3px solid #ffd357;align-items:stretch;gap:.6rem}.record-toolbar>details>summary{list-style:none;cursor:pointer;font-weight:600;min-height:42px;display:flex;align-items:center}.record-toolbar>details[open]>summary{background:#ffd357;color:#171b20}.record-toolbar button,.record-tabs button{min-height:42px}.record-type-tabs{gap:.65rem;border-bottom:1px solid #66717b;padding-bottom:.7rem}.record-type-tabs a{padding:.6rem .9rem;text-decoration:none}.record-type-tabs a[aria-current=page]{background:#ffd357;color:#171b20}.record-table tbody tr:nth-child(even),.receiving-lines tbody tr:nth-child(even){background:#ffffff08}.record-table tbody tr:hover,.receiving-lines tbody tr:hover{background:#ffd35715}.record-table td,.record-table th,.receiving-lines td,.receiving-lines th{border:1px solid #59616b;padding:.7rem}.record-table thead th,.receiving-lines thead th{border-bottom:3px solid #b43d44}.record-table td:last-child{white-space:nowrap}.record-table td:last-child button,.record-table td:last-child a{margin:.2rem;display:inline-block}.record-table th>button{min-height:30px;text-align:left}.record-workbench .record-insight{position:fixed;inset:15vh 10vw auto;max-height:70vh;overflow:auto;z-index:1500;box-shadow:0 0 0 100vmax #0009}.record-fields{background:#ffffff05;padding:1rem;border-radius:.7rem}.record-fields dt,.record-fields dd{border-bottom:1px solid #59616b;padding:.4rem}.foundation-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.foundation-card{border:1px solid #69717b;border-top:3px solid #ffd357;border-radius:.6rem;padding:1rem}.foundation-tools{display:flex;flex-wrap:wrap;gap:.7rem;align-items:end;margin:1rem 0}.foundation-tools label{display:grid;gap:.3rem}.foundation-tools input,.foundation-tools select{padding:.6rem;background:#20262d;color:#fff;border:1px solid #69717b;border-radius:.4rem}.foundation-table{width:100%;border-collapse:collapse}.foundation-table td,.foundation-table th{padding:.65rem;border:1px solid #59616b;text-align:left}.foundation-table tbody tr:nth-child(even){background:#ffffff09}.foundation-table th{border-bottom:3px solid #b43d44}.foundation-scroll{overflow:auto;max-width:100%}.foundation-modal{position:fixed;inset:8vh 6vw;overflow:auto;background:#20262d;border:2px solid #ffd357;padding:1.5rem;z-index:1500;box-shadow:0 0 0 100vmax #0009}.foundation-modal iframe{width:100%;height:60vh;background:white}.scan-focus{font-size:1.4rem;padding:1rem;width:100%}.scan-stage{border:2px solid #ffd357;border-radius:1rem;padding:1.5rem;max-width:900px;margin:auto}video.scan-camera{max-width:100%;max-height:320px}.record-toolbar summary:hover,.record-toolbar button:hover{outline:2px solid #ffd357} @media(max-width:700px){.foundation-modal{inset:3vh 3vw}.record-workbench .record-insight{inset:8vh 4vw auto}.record-toolbar{display:grid;grid-template-columns:1fr 1fr}.record-popover{position:fixed!important;left:4vw!important;right:4vw!important;top:18vh!important;width:auto!important;min-width:0!important}.record-fields{grid-template-columns:1fr}.record-table-wrap{max-height:70vh}} @media print{.record-insight,.foundation-tools,.no-print{display:none!important}}

.record-workbench.plain-rows .record-table tbody tr{background:transparent}.record-workbench.soft-borders .record-table td{border-left:0;border-right:0}

.foundation-card{margin:1rem 0;min-width:0}.foundation-card label{display:grid;gap:.35rem;margin:.75rem 0}.foundation-card input:not([type=checkbox]),.foundation-card select,.foundation-card textarea{width:100%;max-width:100%;background:#171c22;color:#f4f5f6;border:1px solid #65717f;border-radius:.45rem;padding:.65rem}.foundation-card button,.foundation-tools button,.foundation-table button,.record-tabs button{border:1px solid #65717f;border-radius:.4rem;padding:.55rem .8rem;background:#303943;color:#fff;cursor:pointer}.foundation-card button:hover,.foundation-tools button:hover{border-color:#ffd357;color:#ffd357}.foundation-card button:disabled{opacity:.5;cursor:default}.foundation-card small{display:block;color:#c1c7ce}.customer-balances{margin:1rem 0;padding:1rem;border:1px solid #65717f;border-top:3px solid #bc4851;border-radius:.7rem}.customer-balances .foundation-card h4{font-size:1rem}.customer-balances .foundation-card strong{font-size:1.4rem;color:#ffd357}.overflow-controls{position:sticky;left:0;display:flex;align-items:center;gap:.6rem;padding:.4rem;background:#20262d;color:#ffd357;font-size:.85rem}.overflow-controls button{border:1px solid #65717f;background:#303943;color:white;border-radius:.35rem;padding:.25rem .7rem}.overflow-controls button:disabled{opacity:.35} .record-workbench .record-popover,.wide-popover{position:fixed!important;top:18vh!important;left:50%!important;right:auto!important;transform:translateX(-50%);max-width:90vw!important;max-height:70vh!important}.navigation-settings{left:50%!important;right:auto!important;transform:translateX(-50%);max-width:90vw} @media print{.overflow-controls{display:none!important}}

.overflow-controls{top:65px;z-index:40}
