/* Shared, scoped presentation for all 14 tools. */
.sbux{--sb-ink:#172b42;--sb-muted:#526477;--sb-line:#dbe3ec;--sb-blue:#173c62;--sb-light:#f5f8fb;box-sizing:border-box;max-width:100%;min-width:0;background:#fff;color:var(--sb-ink);border:1px solid var(--sb-line);border-radius:12px;padding:clamp(12px,3vw,24px);font-family:inherit;line-height:1.5;overflow-wrap:anywhere}
.sbux *{box-sizing:border-box;min-width:0}.sbux h3{font-size:clamp(1.15rem,3vw,1.4rem);line-height:1.3;margin:0 0 .7rem;color:var(--sb-blue)}.sbux h4{font-size:1rem;line-height:1.4;margin:1rem 0 .6rem;color:var(--sb-blue)}.sbux p{font-size:.9rem;line-height:1.55;margin:.5rem 0 .85rem}.sbux .sbux-example{color:var(--sb-muted);font-size:.85rem}.sbux label{font-size:.875rem;line-height:1.4;font-weight:600;margin:0 0 .65rem;display:block}.sbux input:not([type=checkbox]):not([type=radio]),.sbux select,.sbux textarea{font:inherit;font-size:16px;min-height:44px;line-height:1.4;padding:9px 10px;background:#fff;color:var(--sb-ink);border:1px solid #aebdcc;border-radius:7px;max-width:100%;width:100%;margin:.25rem 0 .15rem}.sbux textarea{resize:vertical;min-height:66px}.sbux input[type=checkbox]{accent-color:var(--sb-blue);width:18px;height:18px;vertical-align:middle;margin:0 .4em 0 0}.sbux button,.sbux summary{font:inherit;font-size:.875rem;font-weight:600;line-height:1.35;min-height:44px;cursor:pointer}.sbux button{padding:9px 13px;border:1px solid var(--sb-line);border-radius:7px;background:var(--sb-blue);color:#fff}.sbux button:hover{filter:brightness(.96)}.sbux button:disabled{opacity:.5;cursor:not-allowed}.sbux button[data-remove],.sbux button[data-action=remove],.sbux button[data-reset],.sbux button[data-action=reset],.sbux button[data-action=new],.sbux button[data-action=clear],.sbux button[data-action=load],.sbux .sbux-secondary{background:#fff;color:var(--sb-blue);border-color:#b9c7d5}.sbux :is(button,input,select,textarea,summary,a):focus-visible{outline:3px solid #4389d4;outline-offset:2px}.sbux details{grid-column:1/-1;border:1px solid var(--sb-line);border-radius:8px;padding:0 12px;background:var(--sb-light);margin:10px 0}.sbux details>summary{display:list-item;padding:12px 0;color:var(--sb-blue);list-style-position:inside}.sbux details[open]>summary{margin-bottom:8px;border-bottom:1px solid var(--sb-line)}.sbux .sbux-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;padding:0 0 10px}.sbux .sbux-fields>p,.sbux .sbux-fields>h4,.sbux .sbux-fields>ul{grid-column:1/-1}.sbux .sbux-fields>label{margin:0}.sbux .sbux-item{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:8px;padding:12px;background:#f7f9fc;border:1px solid var(--sb-line);border-radius:9px}.sbux .sbux-item>label:has([data-col=description]){grid-column:auto}.sbux .sbux-item>details{grid-column:1/-1;margin:0;background:#fff}.sbux .sbux-item>button{min-height:44px;min-width:44px;margin-bottom:.65rem}.sbux .sbux-item>label:has([data-col=group]){grid-column:1/-1}.sbux .sbux-main-actions{gap:8px;display:flex;flex-wrap:wrap;align-items:center;margin:16px 0}.sbux .sbux-main-actions .sbux-primary{background:var(--sb-blue);color:white;flex:1 1 155px}.sbux .sbux-main-actions .sbux-secondary{flex:1 1 100px}.sbux .sbux-more-actions .sbux-fields{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));align-items:start}.sbux .sbux-more-actions .sbux-fields button{background:#fff;color:var(--sb-blue);border-color:#b9c7d5}.sbux .sbux-file{background:#fff;color:var(--sb-blue);border:1px solid var(--sb-line);grid-column:1/-1}.sbux .sbux-templates .sbux-fields{display:block}.sbux .sbpo-downloads li{padding:8px 0;border-bottom:1px solid var(--sb-line);font-size:.9rem}.sbux .sbpo-downloads a{display:inline-block;padding:5px 8px;margin:2px 0;color:var(--sb-blue);text-decoration:underline}.sbux [data-results]{margin:16px 0;padding:clamp(10px,2vw,16px);background:var(--sb-light);border:1px solid var(--sb-line);border-radius:9px;min-width:0;overflow-wrap:anywhere}.sbux [data-results] strong{color:var(--sb-blue)}.sbux [data-results] table{max-width:100%;font-size:.85rem}.sbux [data-preview]{max-width:100%;min-width:0;overflow-x:auto}.sbux [role=status]:empty{display:none}.sbux [hidden]{display:none!important}.sbux .sbpo-paper{border-radius:8px}.sbux .sbpo-paper table{font-size:12px}.sbux .sbpo-paper h2{font-size:1.35rem}.sbux .sbpo-paper h2,.sbux .sbpo-paper th{overflow-wrap:normal}.sbux .sbpo-paper .sbpo-scroll{max-width:100%}.sbux .sbpo-grid{gap:10px 14px}.sbux [data-editor] .sbpo-grid:empty,.sbux [data-controls]>div:empty,.sbux [data-settings]>div:empty{display:none}.sbux [data-schedule] input[type=number]{min-width:85px}
@media(max-width:600px){.sbux{padding:12px}.sbux .sbux-fields{grid-template-columns:1fr}.sbux .sbux-item{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sbux .sbux-item>label:has([data-col=description]){grid-column:1/-1}.sbux .sbux-item>button{grid-column:1/-1;justify-self:end;margin:0}.sbux .sbux-main-actions .sbux-primary{flex-basis:100%}.sbux .sbux-main-actions .sbux-secondary{flex-basis:40%}.sbux .sbpo-paper table{min-width:360px}.sbux .sbpo-paper .sbpo-scroll{overflow-x:auto}.sbux .sbux-more-actions .sbux-fields{grid-template-columns:1fr 1fr}.sbux .sbux-more-actions .sbux-fields button{padding:8px}.sbux [data-results] table{font-size:12px}.sbux [data-results] th,.sbux [data-results] td{padding:6px 4px}}
.sbux .sbux-doc-total{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;background:#edf3f8;color:#173c62;border:1px solid #d6e3ef;border-radius:8px;padding:12px 14px;margin-top:16px}.sbux .sbux-doc-total span{font-weight:600;font-size:.9rem}.sbux .sbux-doc-total strong{font-size:1.25rem;font-weight:700}.sbux .sbux-doc-total small{width:100%;font-size:.8rem}.sbux .sbux-more-actions .sbpo-file{background:white;color:#173c62;border:1px solid #b9c7d5;min-width:0}.sbux .sbux-more-actions .sbpo-file input{max-width:100%}.sbux .sbux-item input[type=checkbox]{display:inline-block!important}.sbux .sbux-item label:has(input[type=checkbox]){align-self:center}
@media(max-width:600px){.sbux [data-preview] .sbpo-paper table{min-width:0;width:100%;display:block}.sbux [data-preview] .sbpo-paper thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.sbux [data-preview] .sbpo-paper tbody{display:block}.sbux [data-preview] .sbpo-paper tbody tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid #dbe3ec;border-radius:6px;padding:6px;margin:8px 0}.sbux [data-preview] .sbpo-paper td[data-sbux-cell]{display:block;padding:5px 7px;border:0;overflow-wrap:anywhere}.sbux [data-preview] .sbpo-paper td[data-sbux-cell]:before{display:block;content:attr(data-sbux-cell);font-size:11px;font-weight:600;color:#526477}.sbux [data-preview] .sbpo-paper tbody tr td:first-child{grid-column:1/-1;border-bottom:1px solid #e4e9ee}.sbux [data-preview] .sbpo-paper tbody tr td:last-child{font-weight:bold;color:#173c62}}
.sbux input:not([type=checkbox]):not([type=radio]),.sbux select,.sbux textarea{font-weight:400}.sbux .sbux-fields>label input{font-weight:400}.sbux [data-preview] .sbpo-paper .sbpo-grid{gap:8px}.sbux [data-results] strong{font-weight:700}.sbux [data-results] [class$="-metric"]:first-child strong{font-size:clamp(1.2rem,3vw,1.55rem)}.sbux [data-results] [class$="-metric"]:first-child{border-color:#c4d7e9;background:#fff}.sbux .sbux-more-actions+[data-status]{padding:8px 0;color:#173c62;font-weight:600}
.sbux .sbpo-brand-card{grid-column:span 1}.sbux .sbpo-brand-block{display:flex;align-items:flex-start;gap:10px}.sbux .sbpo-brand-logo{display:block;max-width:96px;max-height:48px;width:auto;height:auto;object-fit:contain;flex:0 0 auto}.sbux .sbpo-brand-copy{min-width:0}.sbux .sbpo-brand-name{font-weight:700;color:#173c62;line-height:1.25;margin:0 0 2px;font-size:1rem}.sbux .sbpo-brand-copy div{font-size:.9rem;line-height:1.4;color:#173c62}.sbux .sbpo-brand-copy div+div{color:#526477}.sbux .sbpo-brand-copy p{margin:0;font-size:.9rem}
@media(max-width:600px){.sbux .sbpo-brand-block{gap:8px}.sbux .sbpo-brand-logo{max-width:82px;max-height:42px}.sbux .sbpo-brand-name{font-size:.95rem}}

/* Standard starts with the minimum inputs; Advanced keeps the full editor. */
.sbux .sbux-switch{margin:0 0 16px}.sbux .sbux-segments{display:flex;gap:3px;padding:4px;background:#edf2f7;border:1px solid #dbe3ec;border-radius:9px}.sbux .sbux-segments button{flex:1;min-height:44px;background:transparent;color:#173c62;border:1px solid transparent;font-weight:600;padding:8px 7px}.sbux .sbux-segments button[aria-pressed=true]{background:white;border-color:#c3d0dd;box-shadow:0 1px 3px #173c6210;color:#173c62}.sbux .sbux-switch-hint,.sbux .sbux-mode-status{font-size:.8rem;color:#526477;margin:.45rem 0 0}.sbux .sbux-mode-status{padding:8px;background:#eef4f9;border-radius:6px}.sbux[data-sbux-view=standard]>[data-sbux-full],.sbux[data-sbux-view=advanced]>.sbux-quick,.sbux[data-sbux-view=standard] [data-sbux-expert]:not([data-sbux-used]){display:none!important}.sbux .sbux-quick-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}.sbux .sbux-quick-result{background:#f1f6fa;border:1px solid #d6e3ef;border-radius:9px;padding:14px;margin:12px 0;min-height:75px}.sbux .sbux-quick-result p{margin:0;color:#526477}.sbux .sbux-quick-primary{display:flex;flex-direction:column;gap:3px}.sbux .sbux-quick-primary strong{font-size:clamp(1.5rem,5vw,2rem);color:#173c62;line-height:1.15;overflow-wrap:anywhere}.sbux .sbux-quick-primary span,.sbux .sbux-quick-secondary span{font-size:.875rem;font-weight:600}.sbux .sbux-quick-secondary{display:flex;justify-content:space-between;align-items:baseline;gap:10px;border-top:1px solid #d6e3ef;margin-top:10px;padding-top:8px}.sbux .sbux-quick-secondary strong{color:#173c62;text-align:right}.sbux .sbux-quick-note{color:#526477;font-size:.82rem}.sbux button.sbux-quick-reset{background:#fff;color:#173c62;border-color:#b9c7d5}.sbux[data-sbux-view=standard] .sbux-main-actions .sbux-primary{flex-basis:100%}
@media(max-width:480px){.sbux .sbux-quick-fields{grid-template-columns:1fr}.sbux .sbux-segments button{font-size:.82rem}.sbux .sbux-quick-secondary{flex-wrap:wrap}}
/* 0.17: natural labels, scoped contextual tools and useful result graphics. */
.sbux .sbux-quick-fields{gap:16px}.sbux .sbux-field{position:relative;min-width:0}.sbux .sbux-number{font-size:.96rem;line-height:1.4}.sbux .sbux-number>input{margin-top:7px;min-height:48px}.sbux input::placeholder,.sbux textarea::placeholder{color:#687687;opacity:1}.sbux .sbux-helper{margin:4px 0 0;background:#f5f7fa;border:1px solid #ccd7e2;padding:0 10px}.sbux .sbux-helper>summary{list-style:none;display:flex;align-items:center;gap:8px;font-size:.86rem;min-height:44px;padding:10px 1px}.sbux .sbux-helper>summary::-webkit-details-marker{display:none}.sbux .sbux-helper>summary::after{content:'';width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-left:auto;margin-right:5px;flex-shrink:0}.sbux .sbux-helper[open]>summary::after{transform:rotate(225deg)}.sbux .sbux-helper-body{padding:4px 0 12px;display:grid;gap:8px}.sbux .sbux-helper-body label{margin:0}.sbux .sbux-helper-body p{margin:4px 0;font-size:.82rem}.sbux .sbux-tip{margin:0 0 4px;padding:0;border:none;background:none}.sbux .sbux-tip summary{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;width:26px;height:26px;min-height:26px;padding:0;background:#173c62;color:white;list-style:none;font-size:13px}.sbux .sbux-tip summary::-webkit-details-marker{display:none}.sbux .sbux-tip[open] summary{border:0}.sbux .sbux-tip p{font-weight:400;color:#526477;margin:4px 0;font-size:.85rem}.sbux .sbux-category{background:#fff}.sbux .sbux-category-total{font-variant-numeric:tabular-nums;font-size:.85rem;margin-left:auto}.sbux .sbux-expense-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 10px;border-bottom:1px solid #dbe3ec;padding-bottom:10px}.sbux .sbux-expense-row>label:first-child{grid-column:1/-1}.sbux .sbux-expense-row button{justify-self:start;min-height:38px}.sbux .sbux-quick-result{padding:clamp(14px,3vw,22px);background:#f6f9fc}.sbux .sbux-quick-primary strong{font-size:clamp(1.8rem,5vw,2.45rem)}.sbux .sbux-quick-secondary strong{font-variant-numeric:tabular-nums}.sbux .sbux-quick-result svg{width:100%;height:auto;max-height:245px;display:block;margin:14px auto 4px}.sbux .sbux-chart-bar{height:14px;display:flex;overflow:hidden;border-radius:7px;margin:18px 0 8px}.sbux .sbux-chart-bar span{display:block}.sbux .sbux-legend{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:.78rem;color:#526477;margin:8px 0}.sbux .sbux-legend span{display:inline-flex;gap:5px;align-items:center}.sbux .sbux-legend i{display:inline-block;width:10px;height:10px;border-radius:2px}.sbux .sbux-quick-result .sbux-insight{font-size:.92rem;color:#173c62;border-top:1px solid #d6e3ef;padding-top:10px;margin-top:12px}.sbux .sbux-transfer{margin-bottom:12px}.sbux [data-editor] textarea[data-key=business],.sbux [data-editor] textarea[data-key=customer],.sbux [data-editor] textarea[data-key=buyer],.sbux [data-editor] textarea[data-key=supplier]{min-height:110px}.sbux [data-editor] input,.sbux [data-editor] textarea{font-size:16px}.sbux [data-editor] .sbpo-grid>label:has([data-key=business]),.sbux [data-editor] .sbpo-grid>label:has([data-key=buyer]),.sbux [data-editor] .sbpo-grid>label:has([data-key=customer]),.sbux [data-editor] .sbpo-grid>label:has([data-key=supplier]){font-size:.95rem}.sbux .sbux-quick-fields>details{margin:0}.sbux [data-sbux-full][hidden]{display:none!important}
@media(max-width:600px){.sbux .sbux-quick-fields{grid-template-columns:1fr}.sbux .sbux-helper-body{gap:8px}.sbux .sbux-category-total{font-size:.75rem}.sbux .sbux-expense-row select{font-size:16px}.sbux .sbux-quick-primary strong{overflow-wrap:anywhere}}
.sbux .sbux-result-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.sbux .sbux-result-actions button{flex:1 1 120px}.sbux .sbux-scenarios{margin-top:16px;border-top:1px solid #d6e3ef;padding-top:8px}.sbux .sbux-price-import{border:1px solid #c1d2e1;border-radius:8px;background:#f5f8fb;padding:12px;margin:12px 0}.sbux .sbux-price-import p{margin-top:0}
/* 0.18 — compact, accessible mobile-first editor and calculator polish. */
.sbux{--sb-ink:#172b42;--sb-blue:#153b57;--sb-muted:#526477;--sb-line:#d4dfe6;--sb-light:#f3f7f9;border-radius:16px;padding:clamp(16px,3.6vw,30px);box-shadow:0 3px 18px #153b5709;line-height:1.55}
.sbux>h3{font-size:clamp(1.35rem,4.5vw,1.85rem);line-height:1.22;letter-spacing:-.025em;margin:0 0 18px;color:var(--sb-blue)}
.sbux .sbux-switch{margin-bottom:24px}.sbux .sbux-segments{background:#edf3f6;border-color:#dae3e9;border-radius:10px;padding:4px}.sbux .sbux-segments button{font-size:.88rem;min-height:44px}.sbux .sbux-segments button[aria-pressed=true]{border-color:#c6d4de;box-shadow:0 1px 3px #153b5712}.sbux .sbux-switch-hint[hidden]{display:none!important}
.sbux .sbux-quick-fields{gap:19px 16px}.sbux .sbux-field>.sbux-number{margin:0}.sbux .sbux-number,.sbux .sbux-label-row label{font-size:.94rem;font-weight:600;color:var(--sb-ink);line-height:1.35}.sbux input:not([type=checkbox]):not([type=radio]),.sbux select,.sbux textarea{border-color:#b7c6d2;border-radius:8px;padding:12px;min-height:48px}.sbux input:focus,.sbux textarea:focus,.sbux select:focus{border-color:#2674a1;outline:2px solid #2674a125;outline-offset:1px}.sbux input::placeholder,.sbux textarea::placeholder{color:#627385}.sbux .sbux-label-row{display:flex;align-items:center;justify-content:flex-start;gap:6px;position:relative;min-height:29px}.sbux .sbux-label-row>label{margin:0}.sbux .sbux-label-row .sbux-tip{position:static;margin:0;padding:0;border:0;background:none;flex:0 0 32px}.sbux .sbux-label-row .sbux-tip summary{background:transparent;color:#365d78;border:1px solid #a8bfce;border-radius:50%;height:26px;width:26px;min-height:26px;line-height:1;padding:0;margin:0;display:flex;align-items:center;justify-content:center}.sbux .sbux-label-row .sbux-tip[open] summary{background:#153b57;color:white;border:1px solid #153b57}.sbux .sbux-label-row .sbux-tip-text{position:absolute;z-index:5;top:100%;left:0;right:0;margin:4px 0;padding:12px;background:#fff;border:1px solid #a8bfce;border-radius:8px;box-shadow:0 8px 22px #173c6224;line-height:1.45;font-size:.86rem;color:#243c52}.sbux .sbux-help-input{margin-top:6px!important;display:block}
.sbux .sbux-helper,.sbux .sbux-details{border-color:#cbd9e1;background:#f4f7f9;border-radius:8px;padding:0 12px}.sbux .sbux-helper{margin-top:7px}.sbux .sbux-helper>summary,.sbux .sbux-details>summary{display:flex;list-style:none;align-items:center;gap:10px;min-height:46px;font-size:.88rem;color:#24485f;padding:11px 0}.sbux .sbux-details>summary::-webkit-details-marker{display:none}.sbux .sbux-details>summary::after{content:'';flex:0 0 8px;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-left:auto;margin-right:4px}.sbux .sbux-details[open]>summary::after{transform:rotate(225deg)}.sbux .sbux-helper>summary:hover,.sbux .sbux-details>summary:hover{color:#0b5c86}.sbux .sbux-helper-body{gap:10px}.sbux .sbux-helper-body .sbux-help-total:not(:empty){padding:8px 10px;border-radius:6px;background:#e7eff3;color:#24485f;font-weight:600}.sbux .sbux-category{background:#fff;margin:4px 0!important;padding:0 12px}.sbux .sbux-category>summary{min-height:55px;gap:9px}.sbux .sbux-category>summary svg{flex:0 0 22px;color:#416b82}.sbux .sbux-category-name{flex:1}.sbux .sbux-category-total{margin-left:0;color:#153b57;font-weight:700;white-space:nowrap}.sbux .sbux-category>summary:after{margin-left:4px}.sbux .sbux-expense-row{padding:9px 0 12px;align-items:end}.sbux .sbux-expense-name input{border-color:transparent!important;background:#f4f7f9!important;font-weight:600!important;min-height:42px!important;padding:9px!important}.sbux .sbux-expense-row>button{min-height:40px;background:transparent;color:#526477;border-color:transparent;padding-left:4px;text-decoration:underline}.sbux .sbux-expense-row>label{font-size:.82rem}.sbux .sbux-expense-row select{padding:8px}.sbux .sbux-total-dock{position:sticky;bottom:12px;z-index:4;margin-top:14px}.sbux .sbux-dock-button{display:flex;align-items:center;gap:8px;justify-content:space-between;width:100%;min-height:52px;background:#153b57;color:#fff;box-shadow:0 5px 20px #153b5740;border-radius:10px;padding:10px 14px}.sbux .sbux-dock-button strong{font-size:1.1rem;font-variant-numeric:tabular-nums}.sbux .sbux-dock-arrow{font-size:1.2rem}.sbux .sbux-quick-result{background:#f0f6f5;border-color:#d2e3df;border-radius:13px;margin-top:22px;padding:clamp(16px,4vw,25px)}.sbux .sbux-quick-primary{gap:6px;padding:2px 0 9px}.sbux .sbux-quick-primary strong{color:#173e48;letter-spacing:-.035em;font-variant-numeric:tabular-nums;font-size:clamp(1.75rem,5vw,2.7rem)}.sbux .sbux-quick-secondary{border-top-color:#d4e1df;margin-top:7px;padding-top:10px}.sbux .sbux-quick-secondary span{font-weight:500;color:#3e5662}.sbux .sbux-chart-bar{height:16px;margin-top:20px;border-radius:5px}.sbux .sbux-legend{font-size:.8rem;gap:8px 12px;line-height:1.45}.sbux .sbux-quick-result .sbux-insight{color:#244b4f;border-top:1px solid #d2e3df}.sbux .sbux-quick-note{font-size:.8rem;color:#536675}.sbux .sbux-quick-reset{min-height:44px;padding:10px 17px}.sbux .sbux-result-actions button{min-height:46px}
/* The document itself is the editing surface; preview is optional and never duplicated by default. */
.sbux.sbpo [data-editor]{border:1px solid #dce5eb;border-radius:12px;padding:clamp(12px,2.5vw,20px);background:#fff}.sbux.sbpo [data-editor]>h4{font-size:1.07rem;margin:22px 0 10px;font-weight:700;letter-spacing:-.01em}.sbux.sbpo .sbpo-grid{gap:12px}.sbux.sbpo [data-editor] textarea[data-key=business],.sbux.sbpo [data-editor] textarea[data-key=customer],.sbux.sbpo [data-editor] textarea[data-key=buyer],.sbux.sbpo [data-editor] textarea[data-key=supplier]{min-height:88px}.sbux.sbpo .sbux-item{background:#f7f9fb;border:1px solid #dce5eb;border-radius:9px;padding:12px;gap:10px;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto}.sbux.sbpo .sbux-item>label{margin:0}.sbux.sbpo .sbux-item>button[data-remove]{margin:0;min-height:44px;background:white;color:#526477;border:1px solid #d0dce4}.sbux.sbpo .sbux-line-amount{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:4px 10px;padding:9px 0 0;border-top:1px solid #dbe5eb;color:#36546a;font-size:.87rem}.sbux.sbpo .sbux-line-amount strong{font-size:1rem;font-variant-numeric:tabular-nums}.sbux.sbpo .sbux-line-amount small{width:100%;font-size:.75rem}.sbux.sbpo .sbux-add-item{background:white;color:#153b57;border:1px solid #adc3d2;min-height:44px;padding:10px 15px}.sbux.sbpo .sbux-doc-total{border-radius:10px;background:#edf5f4;border-color:#d5e3e0;padding:13px 15px}.sbux.sbpo .sbux-doc-total strong{font-size:1.4rem;letter-spacing:-.015em}.sbux.sbpo .sbux-primary{min-height:52px}.sbux.sbpo .sbux-preview-toggle{width:100%;background:#fff;color:#153b57;border:1px solid #acc2d2;margin:0 0 12px;display:flex;align-items:center;justify-content:center;gap:9px}.sbux.sbpo .sbux-preview-toggle:after{content:'';width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}.sbux.sbpo .sbux-preview-toggle[aria-expanded=true]:after{transform:rotate(225deg)}.sbux.sbpo [data-preview]{margin-bottom:16px}.sbux.sbpo [data-preview] .sbpo-paper{box-shadow:0 3px 12px #153b570b}
@media(max-width:600px){.sbux{padding:14px;border-radius:12px}.sbux>h3{margin-bottom:15px}.sbux .sbux-switch{margin-bottom:19px}.sbux .sbux-quick-fields{gap:16px}.sbux .sbux-category{padding:0 9px}.sbux .sbux-category>summary{gap:7px;font-size:.85rem}.sbux .sbux-category-total{font-size:.78rem}.sbux .sbux-expense-row{gap:6px}.sbux .sbux-expense-row>button{grid-column:1/-1}.sbux.sbpo [data-editor]{padding:10px}.sbux.sbpo .sbux-item{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sbux.sbpo .sbux-item>button[data-remove]{grid-column:1/-1;justify-self:end}.sbux.sbpo [data-editor] textarea[data-key=business],.sbux.sbpo [data-editor] textarea[data-key=customer],.sbux.sbpo [data-editor] textarea[data-key=buyer],.sbux.sbpo [data-editor] textarea[data-key=supplier]{min-height:80px}.sbux.sbpo [data-editor] .sbpo-grid>label{margin:0}.sbux .sbux-total-dock{bottom:8px}.sbux:has(input:focus,textarea:focus,select:focus) .sbux-total-dock{visibility:hidden}}
@media(prefers-reduced-motion:reduce){.sbux *{scroll-behavior:auto!important;transition:none!important}}

/* Visible optional branding, before sender details. */
.sbux .sbux-logo-control{display:flex;gap:14px;align-items:center;padding:13px;border:1px dashed #9eb6c8;border-radius:10px;background:#f7fafc;margin:0 0 18px;min-width:0}.sbux .sbux-logo-tile{flex:0 0 78px;width:78px;height:74px;border:1px solid #d4e0e9;background:white;color:#41627a;border-radius:7px;display:flex;align-items:center;justify-content:center;padding:6px}.sbux .sbux-logo-tile img{width:100%;height:100%;object-fit:contain}.sbux .sbux-logo-copy{min-width:0;flex:1}.sbux .sbux-logo-copy strong{font-size:.92rem;color:#173c62;display:block}.sbux .sbux-logo-copy strong span{font-size:.78rem;font-weight:400;color:#526477}.sbux .sbux-logo-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:5px 0}.sbux label.sbux-logo-upload{display:inline-flex;position:relative;align-items:center;justify-content:center;min-height:44px;margin:0;padding:8px 12px;border-radius:7px;border:1px solid #a9bed0;background:white;color:#173c62;font-weight:600;cursor:pointer}.sbux label.sbux-logo-upload:focus-within{outline:3px solid #4389d4;outline-offset:2px}.sbux .sbux-logo-upload input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;padding:0}.sbux .sbux-logo-actions button[data-brand-remove]{background:transparent;color:#526477;border:0;padding:8px;min-height:44px}.sbux .sbux-logo-copy small,.sbux [data-logo-status]{font-size:.76rem;color:#526477;overflow-wrap:anywhere}.sbux [data-logo-status]:not(:empty){margin-top:5px}.sbux [data-logo-status]:empty{display:none}@media(max-width:360px){.sbux .sbux-logo-control{padding:9px;gap:9px}.sbux .sbux-logo-tile{flex-basis:60px;width:60px;height:60px}.sbux label.sbux-logo-upload{padding:7px 8px}}
/* Scaled, isolated paper canvas; same styles as the print document. */
.sbpaper-viewport{position:relative;background:#e5e9ed;border:1px solid #cbd5df;border-radius:3px;overflow:hidden;width:100%;box-shadow:0 2px 8px #162f4414}.sbpaper-frame{display:block;position:absolute;top:0;left:0;transform-origin:top left;border:0!important;background:white;max-width:none!important;margin:0!important}.sbpaper-dialog{box-sizing:border-box;width:min(900px,calc(100% - 24px));max-height:92dvh;padding:0;border:1px solid #b5c5d2;border-radius:12px;background:white;color:#173e55;box-shadow:0 12px 50px #102a4055;overflow:auto}.sbpaper-dialog::backdrop{background:#132b42a6}.sbpaper-dialog-head,.sbpaper-dialog-foot{position:sticky;background:white;z-index:2;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.sbpaper-dialog-head{top:0;border-bottom:1px solid #d4dfe5}.sbpaper-dialog-foot{bottom:0;justify-content:flex-end;border-top:1px solid #d4dfe5}.sbpaper-dialog button{border:1px solid #173e55;border-radius:7px;background:white;color:#173e55;padding:9px 14px;cursor:pointer;font:inherit}.sbpaper-dialog-foot button{background:#173e55;color:white}.sbpaper-dialog-body{padding:14px}.sbpaper-dialog-body>p{font-size:13px;margin:0 0 12px}.sbpaper-sheet-scroll{overflow:auto;max-height:65vh}.sbpaper-sheet-scroll table{border-collapse:collapse;width:max-content;min-width:100%;font-size:12px}.sbpaper-sheet-scroll td{padding:6px 10px;border:1px solid #d7dfe5;white-space:pre-wrap;max-width:320px;overflow-wrap:anywhere}.sbpaper-sheet-scroll tr:first-child{background:#e6edf2;font-weight:bold}.sbpaper-sheet-logo{max-width:140px;max-height:70px;object-fit:contain;margin-bottom:10px}.sbpaper-dialog pre{white-space:pre;overflow:auto;font-size:12px;max-height:60vh}.sbpaper-report-logo{margin:12px 0}
.sbpaper-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#526a7b;font-size:12px;margin:0 0 8px}.sbpaper-toolbar button{background:white!important;color:#173e55!important;border:1px solid #b9c9d2!important;padding:6px 10px!important;min-height:32px!important;border-radius:5px!important;white-space:nowrap}.sbpaper-toolbar button[hidden]{display:none!important}.sbpaper-viewport.sbpaper-zoomed{overflow:auto;overscroll-behavior:contain}

/* Keep the paper preview contained in the tool on narrow screens. */
.sbux [data-preview]{min-width:0;max-width:100%}.sbpaper-viewport{box-sizing:border-box;min-width:0;max-width:100%;contain:inline-size}.sbpaper-frame{transform-origin:0 0!important;min-width:0!important}
/* Optional brand color */
.sbux .sbpaper-color{margin:0 0 18px;padding:12px;border:1px solid #d3dfe7;border-radius:9px;background:#fff;min-width:0}.sbux .sbpaper-color-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 10px;margin-bottom:9px}.sbux .sbpaper-color-title strong{font-size:.92rem;color:#173c62}.sbux .sbpaper-color-title span,.sbux .sbpaper-color-title small,.sbux [data-brand-status]{font-size:.76rem;color:#526477;font-weight:400}.sbux .sbpaper-color-controls{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.sbux .sbpaper-color-controls input[type=color]{width:48px!important;height:44px!important;min-height:44px;padding:3px!important;border:1px solid #b7c9d5;border-radius:7px;cursor:pointer;background:white;flex:none}.sbux .sbpaper-color-controls input[data-brand-hex]{width:105px!important;min-width:0;flex:none;min-height:44px;font:inherit;text-transform:uppercase}.sbux .sbpaper-color-controls button{min-height:44px;padding:8px 11px!important;font-size:.82rem!important;background:white!important;color:#173e55!important;border:1px solid #b7c9d5!important;border-radius:7px!important}.sbux [data-brand-status]:not(:empty){display:block;margin-top:6px}.sbux .sbpaper-color-controls button:focus-visible,.sbux .sbpaper-color-controls input:focus-visible{outline:2px solid #2457a7;outline-offset:2px}
.sbux[data-sbux-view=standard] .sb-extra-control{display:none!important}.sb-extra-control [hidden]{display:none!important}.sb-extra-control .sb-sign-pad{width:100%;height:140px;border:1px solid #cbd5e1;border-radius:6px;background:white;touch-action:none;display:block}.sb-extra-control .sb-extra-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.sb-extra-control [data-artwork]{display:flex;gap:12px;align-items:center;margin:8px 0}.sb-extra-control [data-artwork] img{max-width:150px;max-height:100px;object-fit:contain;background:#fff}.sb-extra-control [data-extra-status]{font-size:.85rem;color:#475569}.sb-extra-control input,.sb-extra-control select{max-width:100%}
