/* Technician earnings shares the Business workspace's charcoal and orange palette. */
.bte-dialog{--bte-line:#363636;--bte-muted:#b3b3b3;font-family:Inter,system-ui,sans-serif;position:fixed;margin:auto;padding:0;width:min(1000px,calc(100vw - 28px));max-height:calc(100dvh - 28px);border:1px solid #474747;border-radius:17px;background:#161616;color:#f6f6f6;box-shadow:0 25px 90px #000a;overflow:auto;color-scheme:dark}
.bte-dialog::backdrop{background:#000c;backdrop-filter:blur(4px)}
.bte-dialog *{box-sizing:border-box}
.bte-dialog :is(button,input,select,textarea){font:inherit}
.bte-dialog :focus-visible{outline:2px solid #ff934b;outline-offset:3px}
.bte-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:23px 24px 19px;border-bottom:1px solid var(--bte-line)}
.bte-head>div{min-width:0}.bte-head h1{font-size:24px;letter-spacing:-.035em;line-height:1.2;margin:7px 0 9px;overflow-wrap:anywhere}
.bte-eyebrow{color:#ff934b;font-size:10px;font-weight:750;letter-spacing:.13em;text-transform:uppercase}
.bte-head p{font-size:12px;line-height:1.5;color:var(--bte-muted);margin:0;overflow-wrap:anywhere}
.bte-body{padding:20px 24px 24px;min-width:0}.bte-body h2{font-size:16px;letter-spacing:-.02em;margin:0 0 13px}
.bte-note{font-size:12px;line-height:1.65;color:var(--bte-muted);margin:0 0 14px}
.bte-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.bte-toolbar.end{justify-content:flex-end}
.bte-button{min-height:42px;padding:10px 14px;border:1px solid var(--bte-line);border-radius:10px;background:#202020;color:#f6f6f6;font-size:12px!important;font-weight:700!important;line-height:1.3;cursor:pointer;max-width:100%;text-align:center}
.bte-button:hover{background:#292929;border-color:#707070}.bte-button.is-primary{background:#ff6508;border-color:#ff6508;color:#111}.bte-button.is-primary:hover{background:#ff934b;border-color:#ff934b}.bte-button:disabled{opacity:.5;cursor:default}
.bte-head>.bte-button{flex:none}
.bte-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
.bte-summary>div{background:#1d1d1d;border:1px solid var(--bte-line);border-radius:12px;padding:16px;min-width:0}
.bte-summary span{display:block;font-size:11px;line-height:1.5;color:var(--bte-muted)}
.bte-summary strong{display:block;font-size:25px;line-height:1.3;letter-spacing:-.03em;margin:7px 0;overflow-wrap:anywhere}
.bte-summary .bte-total{color:#ff934b}
.bte-status{border:1px solid #5c4534;background:#281e16;color:#f4d2bc;border-radius:10px;padding:12px 14px;font-size:12px;line-height:1.6;margin:15px 0}
.bte-notice,.bte-error{font-size:12px;line-height:1.6;padding:12px 14px;border-radius:10px;margin:0 0 16px;border:1px solid var(--bte-line);background:#222;color:#eee}
.bte-error{border-color:#ff6508;color:#ffb07a}.bte-notice:empty,.bte-error:empty{display:none}
.bte-section{border-top:1px solid var(--bte-line);padding-top:20px;margin-top:22px}
.bte-records{list-style:none;padding:0;margin:16px 0}
.bte-record{display:flex;gap:16px;justify-content:space-between;padding:16px 0;border-top:1px solid var(--bte-line)}
.bte-record>div{min-width:0}.bte-record h3{font-size:14px;margin:0 0 7px;overflow-wrap:anywhere}.bte-record p{font-size:11px;color:var(--bte-muted);line-height:1.6;margin:4px 0;overflow-wrap:anywhere}
.bte-record-amount{text-align:right;flex-shrink:0}.bte-record-amount strong{font-size:17px;display:block;margin:0 0 10px}.bte-record .bte-button{min-height:35px;padding:7px 11px;font-size:11px!important}
.bte-empty{border:1px dashed #454545;padding:25px 20px;border-radius:12px;text-align:center;color:var(--bte-muted);font-size:12px;line-height:1.6;margin:14px 0}
.bte-form{background:#1b1b1b;border:1px solid var(--bte-line);border-radius:12px;padding:18px;margin-top:17px}
.bte-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.bte-field{display:grid;gap:7px;min-width:0}.bte-field>span{font-size:11px;color:#ddd;font-weight:650}.bte-wide{grid-column:1/-1}
.bte-field :is(input,select,textarea){width:100%;min-width:0;min-height:44px;padding:11px 12px;border:1px solid #424242;border-radius:9px;background:#111;color:#fff;font-size:13px}.bte-field textarea{resize:vertical}
.bte-field small{color:var(--bte-muted);font-size:10px;line-height:1.6}
.bte-preview{display:flex;justify-content:space-between;gap:15px;margin:16px 0;padding:13px 0;border-top:1px solid var(--bte-line);font-size:12px;color:var(--bte-muted)}.bte-preview strong{color:#ff934b;font-size:17px}
.bte-clock{grid-column:1/-1;border:1px solid var(--bte-line);padding:13px;border-radius:10px}.bte-clock .bte-note{margin:0 0 9px}
.bte-confirm{margin-top:17px;border:1px solid #ff6508;padding:18px;border-radius:12px;background:#211a15}.bte-confirm .bte-toolbar{margin-top:15px}.bte-confirm strong{color:#ffb07a}
.bte-history{margin-top:20px}.bte-history summary{font-size:13px;font-weight:700;cursor:pointer;padding:10px 0}.bte-history ul{list-style:none;margin:0;padding:0}.bte-history li{padding:12px 0;border-top:1px solid var(--bte-line);font-size:12px;line-height:1.65;overflow-wrap:anywhere}.bte-history small{display:block;color:var(--bte-muted)}
@media(max-width:520px){.bte-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:13px}.bte-head{padding:19px 16px 15px}.bte-head h1{font-size:22px}.bte-body{padding:18px 16px}.bte-fields{grid-template-columns:1fr}.bte-form{padding:15px}.bte-summary{grid-template-columns:minmax(0,1fr);gap:9px}.bte-summary>div{padding:13px}.bte-summary strong{font-size:21px;white-space:nowrap}.bte-record{gap:10px}.bte-record-amount .bte-toolbar{justify-content:flex-end}.bte-record-amount strong{font-size:15px}.bte-toolbar.end>.bte-button{flex:1}}
@media(prefers-reduced-motion:reduce){.bte-dialog *{scroll-behavior:auto}}

.bte-range{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:20px 0}.bte-range .bte-field{flex:1;min-width:140px}.bte-range>.bte-button{min-height:44px}.bte-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.bte-summary strong{font-size:22px;white-space:nowrap}.bte-section-head,.bte-person-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.bte-section-head h2{margin:0}.bte-person{border:1px solid var(--bte-line);border-radius:12px;margin:16px 0;overflow:hidden}.bte-person-head{padding:15px;background:#202020}.bte-person-head h3{font-size:15px;margin:0 0 6px;overflow-wrap:anywhere}.bte-person-head p,.bte-shared p{font-size:11px;color:var(--bte-muted);line-height:1.6;margin:0}.bte-person-head>div{min-width:0}.bte-person-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.bte-person-actions>strong{font-size:17px;white-space:nowrap}.bte-rows,.bte-shared{list-style:none;padding:0;margin:0}.bte-row{padding:15px;display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--bte-line)}.bte-row>div{min-width:0}.bte-row h4,.bte-shared h3{font-size:13px;margin:0 0 7px;overflow-wrap:anywhere}.bte-row p{font-size:11px;line-height:1.6;color:var(--bte-muted);margin:4px 0;overflow-wrap:anywhere}.bte-row-amount{text-align:right;flex:none}.bte-row-amount>strong{display:block;margin:0 0 9px;font-size:16px;white-space:nowrap}.bte-badge{display:inline-block;padding:4px 7px;border-radius:6px;font-size:10px;line-height:1.3;background:#303030;color:#ddd}.bte-badge.is-calculated{background:#16352d;color:#a1e2cb}.bte-badge.is-estimated,.bte-badge.is-pending{background:#33301a;color:#e5d991}.bte-badge.is-review{background:#3e281c;color:#ffb785}.bte-reasons{list-style:none;padding:0;margin:6px 0 0;color:#edbc9d;font-size:11px;line-height:1.6}.bte-reasons li+li{margin-top:4px}.bte-shared>li{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 0;border-top:1px solid var(--bte-line)}.bte-shared>li>div{min-width:0}.bte-shared>li>.bte-button{flex:none}.bte-shared .bte-attention{color:#ffb785}.bte-form .bte-note{margin-top:13px}.bte-share-total{font-size:12px;color:#ffb785}.bte-share-total.is-valid{color:#a1e2cb}.bte-person>.bte-empty{margin:15px}.bte-form{scroll-margin-top:15px}
@media(max-width:760px){.bte-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.bte-person-head{align-items:flex-start}.bte-person-actions{flex-direction:column;align-items:flex-end;gap:8px}}
@media(max-width:520px){.bte-summary{grid-template-columns:minmax(0,1fr)}.bte-summary strong{font-size:22px}.bte-range>.bte-button{flex:1}.bte-row{flex-wrap:wrap;gap:9px}.bte-row-amount{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left}.bte-row-amount>strong{margin:0}.bte-person-actions .bte-button{padding:7px 9px;font-size:11px!important;min-height:36px}.bte-shared>li{align-items:flex-start;flex-direction:column}.bte-shared>li>.bte-button{width:100%}}
