.bb-sheet-box{width:min(1220px,96vw)!important;max-width:1220px!important}.bb-sheet-box .note{font-size:11px;padding:8px}.bb-sheet-box .modalhead{margin-bottom:8px}.bb-sheet-box .modalhead h2{font-size:19px}.bb-sheet-box .muted{font-size:11px;margin:7px 0}.bb-sheet-type{display:flex;align-items:center;border-bottom:2px solid #2771dc;gap:0}.bb-type-tab{border:1px solid #cbd5e1;padding:10px 20px;background:#f8fafc;color:#64748b;cursor:pointer}.bb-type-tab.selected{background:white;color:#165cb8;border-color:#2771dc;font-weight:bold}.bb-sheet-type>span{margin-left:auto;font-size:11px;color:#b74448}.bb-sheet-tools{display:flex;gap:5px;flex-wrap:wrap;padding-top:10px}.bb-sheet-tools .btn{padding:6px 9px;font-size:11px}.bb-sheet-kind{display:flex;justify-content:space-between;align-items:center;background:#eef9f9;border:1px solid #a7d5dc;padding:9px;font-size:12px;gap:15px}.bb-sheet-kind label{margin-left:12px}.bb-sheet-kind input,.bb-sheet-purpose input{width:auto;margin:0 4px 0 0;vertical-align:middle}.bb-sheet-customer{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:6px;padding:10px 0;flex-wrap:wrap}.bb-sheet-customer>label{font-size:12px;font-weight:bold}.bb-sheet-customer>input{width:260px;padding:7px}.bb-sheet-customer .btn{font-size:11px;padding:6px 10px}.bb-sheet-customer .bb-customer-results{width:440px;max-width:100%;position:absolute;right:0;top:100%;z-index:20;background:#f4f8ff;box-shadow:0 6px 16px #0002;border-radius:5px}.bb-sheet-customer .bb-customer-results:empty{display:none}.bb-sheet-parties{display:grid;grid-template-columns:1fr 1fr;gap:0}.bb-sheet-party{border:1px solid #f0b7bd;min-width:0}.bb-sheet-party.buyer{border-color:#b7c8f0}.bb-sheet-party h3{font-size:13px;margin:0;padding:7px;text-align:center;background:#fff0f2;color:#b5444d}.bb-sheet-party.buyer h3{background:#edf2ff;color:#345ba3}.bb-sheet-party table{width:100%;border-collapse:collapse;table-layout:fixed}.bb-sheet-party th,.bb-sheet-party td{border:1px solid #e5d7dc;padding:5px;text-align:left;font-size:11px;white-space:normal}.bb-sheet-party.buyer th,.bb-sheet-party.buyer td{border-color:#dbe1ef}.bb-sheet-party th{width:70px;background:#fff8f8;font-weight:normal}.bb-sheet-party.buyer th{background:#f7f9ff}.bb-sheet-party input{width:100%;min-width:0;padding:5px;border:1px solid #d7dce4;border-radius:3px;font-size:12px;height:29px}.bb-sheet-party .btn.small{padding:4px;font-size:10px}.bb-sheet-meta{display:grid;grid-template-columns:1fr 1fr 2fr;gap:10px;align-items:center;background:#effafa;border:1px solid #a7d5dc;padding:8px;font-size:11px}.bb-sheet-meta label{display:flex;align-items:center;gap:7px;white-space:nowrap}.bb-sheet-meta input{padding:5px;min-width:0;width:100%}.bb-sheet-meta span{color:#64748b}.bb-sheet-summary{display:grid;grid-template-columns:1fr 1fr 1fr;border:1px solid #a7d5dc;border-top:0}.bb-sheet-summary div{display:flex;justify-content:space-between;padding:9px 12px;background:#f9fefe;font-size:12px;border-right:1px solid #a7d5dc}.bb-sheet-row-tools{display:flex;align-items:center;gap:7px;margin:12px 0 6px;flex-wrap:wrap}.bb-sheet-row-tools small{margin-right:auto;font-size:11px;color:#64748b}.bb-sheet-lines-scroll{overflow-x:auto}.bb-sheet-lines{width:100%;min-width:960px;border-collapse:collapse;table-layout:fixed}.bb-sheet-lines th,.bb-sheet-lines td{border:1px solid #afd4df;padding:4px;font-size:11px;white-space:normal}.bb-sheet-lines th{background:#edf9fb;text-align:center;font-weight:normal}.bb-sheet-lines th:nth-child(1),.bb-sheet-lines th:nth-child(2){width:48px}.bb-sheet-lines th:nth-child(3){width:180px}.bb-sheet-lines th:nth-child(4){width:85px}.bb-sheet-lines th:nth-child(5){width:75px}.bb-sheet-lines th:nth-child(6){width:100px}.bb-sheet-lines th:nth-child(7),.bb-sheet-lines th:nth-child(8){width:110px}.bb-sheet-lines th:nth-child(9){width:100px}.bb-sheet-lines th:nth-child(10){width:49px}.bb-sheet-lines input{padding:4px;min-width:0;width:100%;font-size:11px;border:1px solid #ccd5de;border-radius:3px;height:28px}.bb-sheet-lines input[type=number]{text-align:right;appearance:textfield;-moz-appearance:textfield}.bb-sheet-lines input::-webkit-inner-spin-button{appearance:none}.bb-sheet-lines .btn.small{font-size:10px;padding:4px}.bb-sheet-payments{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #afd4df;background:#edf9fb;margin-top:8px}.bb-sheet-payments label{text-align:center;font-size:11px;padding:6px;border-right:1px solid #afd4df}.bb-sheet-payments input{margin-top:5px;padding:5px;width:100%;text-align:right;background:white}.bb-sheet-purpose{text-align:right;font-size:12px;padding:10px 0}.bb-sheet-purpose label{margin-left:12px}.bb-sheet-dates{display:flex;gap:24px;flex-wrap:wrap;font-size:11px;color:#64748b}.bb-sheet-actions{justify-content:flex-end;margin-top:14px;flex-wrap:wrap}.bb-sheet-actions .btn{font-size:12px}.bb-sheet-box #bbTaxResult{font-size:12px}@media(max-width:850px){.bb-sheet-parties{grid-template-columns:1fr}.bb-sheet-kind{align-items:flex-start;flex-direction:column}.bb-sheet-meta{grid-template-columns:1fr}.bb-sheet-summary div{display:grid;gap:4px;padding:8px}.bb-sheet-payments{grid-template-columns:repeat(2,1fr)}.bb-sheet-type{flex-wrap:wrap}.bb-type-tab{font-size:11px;padding:9px}.bb-sheet-customer>input{width:100%}}
