.sd-filterbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:20px}.sd-filterbar .sd-date{width:148px;flex:none}.sd-filterbar .sd-search{flex:1;min-width:220px}.sd-filterbar input{width:100%;min-height:42px}.sd-filterbar>button{min-height:42px}.sd-tabbar{display:flex;gap:20px;justify-content:space-between;align-items:start;border-bottom:1px solid #e4eaf1;flex-wrap:wrap}.sd-tabbar .status-tabs{display:flex;flex-wrap:wrap;gap:7px;border:0;margin:0 0 14px}.sd-tabbar button{white-space:nowrap;border:1px solid #dbe4ed;background:#fff;min-height:40px}.sd-tabbar button.selected{background:#1b3d70;color:white;border-color:#1b3d70}.sd-tabbar button b{display:inline-block;margin-left:5px;border-radius:9px;padding:1px 6px;background:#eef2f7;color:#52677f;font-size:11px}.sd-tabbar button.selected b{background:#ffffff26;color:white}.sd-list-hint{font-size:11px;color:#78899d;margin:14px 0}.sales-list-panel td:first-child{min-width:180px;max-width:320px}.sales-list-panel td:first-child small{overflow-wrap:anywhere;white-space:normal}.sales-list-panel .tag{white-space:nowrap}.sales-list-panel .empty button{margin-top:15px}.sales-document-dialog{width:min(1150px,96vw);padding:0;max-height:94vh;overflow:auto}.sd-detail-heading{display:flex;justify-content:space-between;align-items:center;padding:18px 28px;background:#fff;border-bottom:1px solid #e1e7ef;color:#5e718c;font-size:14px;font-weight:600}.sd-detail-heading button{font-size:24px;padding:2px 10px;border:0}.sd-detail-actions{padding:18px 28px;background:#f5f8fc;border-bottom:1px solid #e1e7ef}.sd-document{padding:28px}.sd-document-title{display:flex;justify-content:space-between;align-items:start;gap:20px;border-bottom:1px solid #e1e7ef;padding-bottom:22px}.sd-document-title>div{min-width:0}.sd-document-title h1{font-size:25px;color:#173b69;margin:8px 0}.sd-document-title h2{margin:8px 0 0;font-size:18px;overflow-wrap:anywhere}.sd-document-title small{color:#74869c}.sd-badges{display:flex;gap:7px;flex-wrap:wrap;justify-content:end}.sd-parties{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin:25px 0}.sd-document .sd-parties section{padding:0;margin:0;max-width:none}.sd-parties small{font-size:10px;letter-spacing:1px;color:#8090a4}.sd-parties h2{font-size:17px;margin:10px 0}.sd-parties p{font-size:13px;margin:6px 0;overflow-wrap:anywhere}.sd-references{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;background:#f6f8fb;padding:18px;border-radius:8px;margin-bottom:22px}.sd-references small{display:block;font-size:11px;color:#7c8ca1;margin-bottom:6px}.sd-references strong{font-size:12px;font-weight:500;display:block;overflow-wrap:anywhere}.sd-lines{min-width:650px}.sd-lines td{vertical-align:top}.sd-lines td:first-child{min-width:220px;max-width:420px}.sd-lines td:first-child strong{display:block;margin:6px 0}.sd-lines td p{font-size:12px;margin:5px 0;color:#6c7d91}.sd-lines th:nth-child(n+4),.sd-lines td:nth-child(n+4){text-align:right;white-space:nowrap}.sd-totals{max-width:350px;margin:20px 0 25px auto}.sd-totals p{display:flex;justify-content:space-between;gap:22px;margin:8px 0;font-size:13px}.sd-totals strong{color:#243c5d}.sd-totals .sd-net{border-top:1px solid #dfe6ee;padding-top:12px;font-size:17px}.sd-document .sd-notes,.sd-document .sd-related{padding:20px 0;margin:0;max-width:none;border-top:1px solid #e1e7ef}.sd-notes h2,.sd-related h2{font-size:16px;margin-bottom:12px}.sd-internal{padding:16px 0;border-top:1px solid #e1e7ef}.sd-internal summary{cursor:pointer;font-weight:600;color:#4b6583}.sd-internal p{font-size:12px}.sd-customer-state{font-size:12px}.sd-document .note{margin-top:20px}@media(max-width:700px){.sd-tabbar{gap:0}.sd-tabbar #sales-payment-tabs{margin-left:auto}.sd-filterbar .sd-date{width:calc(50% - 6px)}.sd-filterbar .sd-search{flex-basis:calc(100% - 110px);min-width:160px}.sd-document{padding:18px}.sd-detail-heading,.sd-detail-actions{padding:14px 18px}.sd-parties{grid-template-columns:1fr;gap:18px}.sd-references{grid-template-columns:repeat(2,minmax(0,1fr))}.sd-document-title{flex-direction:column}.sd-badges{justify-content:start}}
@media print{.sd-detail-heading,.sd-detail-actions{display:none!important}.sales-document-dialog{max-height:none!important;overflow:visible!important}.sd-document{padding:0}.sd-lines{min-width:0}.sd-lines td:first-child{min-width:0}.sd-document .tablewrap{overflow:visible}}

.sales-list-panel td:nth-child(3),.sales-list-panel td:nth-child(4),.sales-list-panel td:last-child button{white-space:nowrap}
