/* BUILT shop profitability — uses the existing charcoal and orange workspace. */
.profit-board,.profit-dialog{font-family:Inter,system-ui,sans-serif;--profit-orange:var(--biz-orange,#ff6508);--profit-muted:var(--biz-muted,#ababab);--profit-line:var(--biz-line,#303030);color:#f6f6f6;min-width:0}
.profit-board *,.profit-dialog *{box-sizing:border-box}
.profit-board button,.profit-dialog button,.profit-board input,.profit-board select,.profit-dialog input,.profit-dialog select,.profit-dialog textarea{font:inherit}
.profit-board button,.profit-dialog button{cursor:pointer}
.profit-board :focus-visible,.profit-dialog :focus-visible{outline:2px solid #ff934b;outline-offset:3px}
.profit-board{margin-top:14px}
.profit-eyebrow{display:block;color:#ff934b;font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;margin-bottom:8px}
.profit-intro{border:1px solid var(--profit-line);background:var(--biz-panel,#161616);padding:20px;border-radius:15px;margin-bottom:18px}
.profit-intro h2{font-size:23px;font-weight:750;letter-spacing:-.04em;margin:0 0 9px;line-height:1.2}
.profit-intro p{color:#cccccc;font-size:13px;line-height:1.6;max-width:750px;margin:0}
.profit-filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:20px 0 0}
.profit-field{display:grid;gap:7px;min-width:0;text-align:left}
.profit-field>span{font-size:11px;font-weight:650;color:#dddddd}
.profit-field input,.profit-field select,.profit-field textarea{width:100%;background:#111111;border:1px solid var(--profit-line);border-radius:9px;color:#fff;padding:10px 12px;min-height:43px;min-width:0;color-scheme:dark;font-size:13px}
.profit-field textarea{resize:vertical}
.profit-field small{font-size:10px;color:var(--profit-muted);line-height:1.5}
.profit-filters>.profit-field{flex:1 1 145px;max-width:210px}
.profit-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--profit-line);border-radius:11px;min-height:43px;padding:10px 16px;color:#f6f6f6;background:#181818;font-size:12px!important;font-weight:750!important;line-height:1.2;text-decoration:none;max-width:100%;text-align:center}
.profit-button:hover{border-color:#777777;background:#1f1f1f}
.profit-primary{background:#ff6508;border-color:#ff6508;color:#111111}
.profit-primary:hover{background:#ff934b;border-color:#ff934b}
.profit-quiet{background:transparent;color:#dddddd}
.profit-button:disabled{cursor:default;opacity:.55}
.profit-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.profit-metric{border:1px solid var(--profit-line);border-radius:15px;background:var(--biz-panel,#161616);padding:19px;min-width:0}
.profit-metric>span{display:block;font-size:10px;font-weight:750;letter-spacing:.06em;text-transform:uppercase;color:#b3b3b3;margin-bottom:12px}
.profit-metric strong{display:block;font-size:31px;font-weight:750;letter-spacing:-.035em;line-height:1.2;overflow-wrap:anywhere}
.profit-metric small{display:block;font-size:10px;color:var(--profit-muted);line-height:1.55;margin-top:10px}
.profit-metric.is-profit{background:var(--biz-panel,#161616);border-color:rgba(255,101,8,.35)}
.profit-metric.is-profit strong,.profit-positive{color:#ff934b}
.profit-negative{color:#ff934b!important}
.profit-section-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:28px 0 14px}
.profit-section-heading h2{font-size:20px;letter-spacing:-.025em;margin:0}
.profit-section-heading p{font-size:11px;color:var(--profit-muted);margin:5px 0 0;line-height:1.5}
.profit-count{display:inline-flex;align-items:center;justify-content:center;min-width:28px;padding:6px 9px;border-radius:7px;background:#242424;font-size:11px;color:#dddddd}
.profit-jobs{display:grid;gap:12px}
.profit-job{padding:19px;border:1px solid var(--profit-line);border-radius:15px;background:var(--biz-panel,#161616);min-width:0}
.profit-job-head{display:flex;justify-content:space-between;gap:16px;align-items:start}
.profit-job-head>div{min-width:0}
.profit-job h3{font-size:16px;line-height:1.3;font-weight:750;margin:0 0 6px;overflow-wrap:anywhere}
.profit-job-head p{font-size:12px;color:#b3b3b3;margin:0;line-height:1.5;overflow-wrap:anywhere}
.profit-job-status{display:inline-block;font-size:10px;line-height:1.4;padding:6px 8px;border:1px solid var(--profit-line);border-radius:6px;background:rgba(255,255,255,.025);color:#cccccc;max-width:170px;overflow-wrap:anywhere;text-align:center}
.profit-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:17px 0 0;border-top:1px solid rgba(255,255,255,.07);padding-top:15px}
.profit-facts dt{font-size:10px;color:#ababab;line-height:1.4;margin-bottom:6px}
.profit-facts dd{margin:0;font-size:14px;font-weight:700;overflow-wrap:anywhere;line-height:1.5}
.profit-facts dd small{display:block;font-size:10px;font-weight:400;color:#ababab;margin-top:2px}
.profit-job-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}
.profit-job-footer>span{color:#ababab;font-size:10px;line-height:1.5}
.profit-muted,.profit-footnote{font-size:11px;line-height:1.6;color:var(--profit-muted)}
.profit-footnote{margin:15px 0 0}
.profit-note{padding:12px 14px;border:1px solid rgba(255,101,8,.23);border-radius:10px;background:rgba(255,101,8,.055);font-size:11px;line-height:1.65;color:#dddddd}
.profit-notice{font-size:12px;color:#ededed;line-height:1.6}
.profit-notice:empty,.profit-error:empty{display:none}
.profit-error{padding:12px;border-radius:9px;background:#222222;border:1px solid #ff6508;color:#ffb07a;font-size:12px;line-height:1.5;margin-bottom:15px}
.profit-empty{border:1px dashed #3e3e3e;border-radius:14px;text-align:center;padding:38px 22px;background:#161616}
.profit-empty strong{display:block;font-size:17px;margin-bottom:9px}
.profit-empty p{font-size:12px;color:#ababab;line-height:1.65;max-width:480px;margin:0 auto}
.profit-pagination{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:18px 0}
.profit-pagination span{font-size:11px;color:var(--profit-muted)}
.profit-dialog{position:fixed;padding:0;border:1px solid #444444;border-radius:15px;background:#161616;width:min(680px,calc(100vw - 28px));max-height:calc(100dvh - 40px);margin:auto;box-shadow:0 25px 90px rgba(0,0,0,.65);overflow:auto}
.profit-dialog::backdrop{background:rgba(0,0,0,.77);backdrop-filter:blur(4px)}
.profit-dialog-body{padding:24px}
.profit-dialog-header{display:flex;align-items:start;justify-content:space-between;gap:15px;margin-bottom:18px}
.profit-dialog-header h2{font-size:23px;margin:0;letter-spacing:-.025em;line-height:1.25;overflow-wrap:anywhere}
.profit-close{border:1px solid #444444;background:transparent;color:#dddddd;width:34px;height:34px;border-radius:8px;font-size:23px!important;line-height:1;flex:none}
.profit-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin:19px 0}
.profit-dialog h3{font-size:15px;margin:24px 0 12px}
.profit-dialog footer{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:22px}
.profit-detail-facts{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:18px}
.profit-ledger{margin:12px 0;padding:0;list-style:none}
.profit-ledger li{display:flex;justify-content:space-between;gap:15px;border-top:1px solid #303030;padding:12px 0;font-size:12px}
.profit-ledger li>div{min-width:0}
.profit-ledger small{display:block;font-size:10px;color:#ababab;line-height:1.5;margin-top:5px;overflow-wrap:anywhere}
.profit-ledger strong{white-space:nowrap}
.profit-record-row{display:flex;justify-content:space-between;gap:10px;align-items:center}
.profit-record-row h3{margin:18px 0}
.profit-editor-section{border-top:1px solid #303030;padding-top:2px;margin-top:18px}
@media(min-width:1250px){.profit-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.profit-intro{padding:20px}.profit-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profit-metric{padding:16px}.profit-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.profit-filters>.profit-field{max-width:none}.profit-filters>.profit-button{flex:1 1 100%}.profit-job-head{gap:10px}.profit-job-status{max-width:110px}.profit-job-footer{align-items:start}.profit-job-footer>.profit-button{flex-shrink:0}.profit-dialog-body{padding:19px}}
@media(max-width:390px){.profit-metric{padding:13px}.profit-metric strong{font-size:22px}.profit-editor-grid{grid-template-columns:1fr}.profit-job-head{display:block}.profit-job-status{margin-top:10px;max-width:none}.profit-job-footer{display:block}.profit-job-footer>.profit-button{margin-top:12px;width:100%}}
@media(prefers-reduced-motion:reduce){.profit-board *,.profit-dialog *{scroll-behavior:auto}}

/* The role shell inherits the same neutral palette as the Business dashboard. */
[data-r28-view="profitability"]{color:var(--biz-text,#f6f6f6);background:transparent}
[data-r28-view="profitability"] :is(.r28-muted,.business-workspace-heading p){color:var(--biz-muted,#ababab)}
[data-r28-view="profitability"] :is(.r28-role,.r29-identity-role){color:#dddddd;background:#1d1d1d;border-color:#3e3e3e}
[data-r28-view="profitability"] .r28-button{background:#181818;color:#ebebeb;border-color:#3e3e3e}
