/* MSHOMETEX Operations Suite — Profitability finance overview v1
   Date-filtered executive finance KPIs on top of the order profitability table. */
.saas-page-profit .profit-finance-overview{
 margin:0 0 19px;overflow:hidden;border:1px solid #dfe8f2;border-radius:19px;
 background:#fff;box-shadow:0 9px 30px rgba(25,49,79,.055),0 1px 3px #163a5b08;
 color:#172f4c;
}
.saas-page-profit .profit-finance-heading{
 display:flex;align-items:center;justify-content:space-between;gap:16px 24px;
 flex-wrap:wrap;padding:23px 23px 19px;
 background:linear-gradient(105deg,#fff 32%,#f4f9ff 100%);
 border-bottom:1px solid #e9eef5;
}
.saas-page-profit .profit-finance-heading>div:first-child{min-width:220px;flex:1 1 270px}
.saas-page-profit .profit-finance-eyebrow{
 display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:9px;
 font-weight:900;letter-spacing:.16em;color:#3d79a8;
}
.saas-page-profit .profit-finance-dot{display:inline-block;width:7px;height:7px;
 border-radius:50%;background:#15a494;box-shadow:0 0 0 4px #32bbab13}
.saas-page-profit .profit-finance-heading h3{
 font-size:clamp(18px,1.55vw,23px);font-weight:900;letter-spacing:-.8px;
 line-height:1.3;margin:0 0 5px;color:#173656;
}
.saas-page-profit .profit-finance-heading p{font-size:10.5px;color:#71859d;line-height:1.6;margin:0}
.saas-page-profit .profit-finance-date-toolbar{display:flex;flex:0 1 auto;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.saas-page-profit .profit-finance-presets{display:flex;align-items:center;gap:4px;
 border:1px solid #e0e9f3;padding:4px;background:#f4f7fb;border-radius:11px}
.saas-page-profit .profit-period-chip{font:800 10px var(--ui-font,Manrope,system-ui);
 border:0;border-radius:8px;background:transparent;color:#627d96;
 min-height:33px;padding:6px 10px;cursor:pointer;white-space:nowrap;
 transition:background .14s ease,color .14s ease,box-shadow .14s ease}
.saas-page-profit .profit-period-chip:hover{color:#2e65bb;background:#e9f1ff}
.saas-page-profit .profit-period-chip.is-active{color:#2057b1;background:#fff;box-shadow:0 2px 7px #27497015}
.saas-page-profit .profit-finance-date-toolbar .order-date-filters{border:1px solid #e2eaf3!important;
 border-radius:11px!important;background:#fff!important;padding:4px 7px!important;gap:7px}
.saas-page-profit .profit-finance-date-toolbar .order-date-filters label{color:#6a7e94;font-size:9px;font-weight:800;letter-spacing:.01em}
.saas-page-profit .profit-finance-date-toolbar input[type=date]{height:32px!important;width:127px;
 border:1px solid #e2e9f2!important;background:#fcfdff!important;border-radius:7px!important;
 color:#2d526d;font-size:10px!important}
.saas-page-profit .profit-finance-date-toolbar #clearOrderDates{height:32px;min-height:32px;
 padding:6px 10px!important;background:#eef4fa!important;color:#426783!important}
.saas-page-profit .profit-finance-hero{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
 padding:17px 19px 19px;gap:11px}
.saas-page-profit .profit-finance-stat{
 position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:0;
 overflow:hidden;min-width:0;min-height:157px;padding:16px 17px;
 border:1px solid #e5edf5;border-radius:14px;
 background:#fff;box-shadow:0 3px 10px #1b3b6408;
 transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.saas-page-profit .profit-finance-stat:hover{transform:translateY(-2px);border-color:#bfd4ee;box-shadow:0 8px 26px #16395513}
.saas-page-profit .profit-finance-stat-icon{height:32px;width:32px;display:grid;place-items:center;
 background:#eff4ff;color:#3972c4;border-radius:10px;margin-bottom:12px}
.saas-page-profit .profit-finance-stat-icon svg{width:18px;height:18px}
.saas-page-profit .profit-finance-stat.revenue .profit-finance-stat-icon{background:#eaf7f6;color:#13938e}
.saas-page-profit .profit-finance-stat.costs .profit-finance-stat-icon{background:#f7f0e9;color:#bf7e4b}
.saas-page-profit .profit-finance-stat.expenses .profit-finance-stat-icon{background:#f4edfb;color:#8565c2}
.saas-page-profit .profit-finance-stat-label{display:block;color:#566e88;font-size:10.5px;
 font-weight:850;line-height:1.4;letter-spacing:-.1px}
.saas-page-profit .profit-finance-stat-label small{font-size:9px;font-weight:590;color:#9aabb9;
 white-space:normal;display:inline;margin-left:3px}
.saas-page-profit .profit-finance-stat-value{font-weight:900!important;font-size:clamp(20px,1.9vw,28px)!important;
 color:#1b3b5d!important;letter-spacing:-1px!important;line-height:1.35!important;
 white-space:nowrap;max-width:100%;margin:6px 0 4px;font-variant-numeric:tabular-nums}
.saas-page-profit .profit-finance-stat-note{margin-top:auto;font-size:9px;color:#8a9bad;font-weight:730;line-height:1.4}
.saas-page-profit .profit-finance-stat.profit{
 background:linear-gradient(132deg,#14314d 0%,#1d4764 67%,#1a5b70 100%);
 border-color:#24536b;box-shadow:0 10px 24px #153c5633;
}
.saas-page-profit .profit-finance-stat.profit:after{content:'';position:absolute;right:-24px;top:-35px;
 height:115px;width:115px;border-radius:50%;border:15px solid #ffffff0b;pointer-events:none}
.saas-page-profit .profit-finance-stat.profit .profit-finance-stat-icon{background:#ffffff1e;color:#c1f7e5}
.saas-page-profit .profit-finance-stat.profit .profit-finance-stat-label{color:#cfdfec}
.saas-page-profit .profit-finance-stat.profit .profit-finance-stat-label small{color:#a3c1d0}
.saas-page-profit .profit-finance-stat.profit .profit-finance-stat-value{color:#e4fff4!important}
.saas-page-profit .profit-finance-stat.profit .profit-finance-stat-note{color:#bad7df}
.saas-page-profit .profit-finance-stat.profit.is-negative{background:linear-gradient(135deg,#51253d,#7b3452)}
.saas-page-profit .profit-finance-stat.profit.is-negative .profit-finance-stat-value{color:#ffe6e9!important}
.saas-page-profit .profit-finance-expenses{margin:0 19px 19px;padding:19px 20px 16px;
 border:1px solid #e6edf6;background:#f8fafd;border-radius:14px}
.saas-page-profit .profit-finance-expense-head{display:flex;align-items:flex-start;justify-content:space-between;
 gap:10px;margin-bottom:16px}
.saas-page-profit .profit-finance-expense-head h4{font-size:13px;color:#213e5b;
 font-weight:900;letter-spacing:-.35px;margin:0 0 4px}
.saas-page-profit .profit-finance-expense-head p{margin:0;color:#8093a7;font-size:9.5px;line-height:1.5}
.saas-page-profit .profit-finance-expense-caption{font-size:9px;font-weight:830;
 letter-spacing:.05em;color:#5f88a5;white-space:nowrap;background:#eaf1fa;
 padding:6px 10px;border-radius:8px}
.saas-page-profit .profit-finance-expense-grid{display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.saas-page-profit .profit-finance-expense-item{display:flex;flex-direction:column;min-width:0;
 min-height:100px;padding:12px 14px;border:1px solid #e4ebf3;border-radius:11px;
 background:#fff;box-shadow:0 2px 9px #18385507}
.saas-page-profit .profit-finance-expense-item-heading{display:flex;align-items:center;
 gap:7px;color:#667b90;font-size:10px;font-weight:850;line-height:1.4}
.saas-page-profit .profit-finance-expense-glyph{display:grid;place-items:center;height:19px;
 width:19px;flex:none;border-radius:6px;background:#f7e9eb;color:#b45d66;font-size:13px;font-weight:900}
.saas-page-profit .profit-finance-expense-item strong{margin-top:8px;
 font-size:19px!important;font-weight:900!important;color:#243d59!important;
 line-height:1.2;letter-spacing:-.65px;font-variant-numeric:tabular-nums}
.saas-page-profit .profit-finance-expense-item small{margin-top:4px;color:#98a7b6;font-size:9px;line-height:1.3}
.saas-page-profit .profit-finance-expense-item.is-credit .profit-finance-expense-glyph{background:#e7f8f0;color:#0a9975}
.saas-page-profit .profit-finance-expense-item.is-credit strong{color:#12866b!important}
.saas-page-profit .profit-finance-empty{grid-column:1/-1;text-align:center;padding:13px;color:#8397aa;font-size:11px}
.saas-page-profit .profit-finance-coverage{display:flex;align-items:center;gap:9px;flex-wrap:wrap;
 margin-top:15px;padding-top:12px;border-top:1px solid #e5ecf4;font-size:10px;line-height:1.5}
.saas-page-profit .profit-finance-coverage-dot{background:#15a18f;height:7px;width:7px;border-radius:50%;flex:none}
.saas-page-profit .profit-finance-coverage strong{color:#264f73;font-size:10px;font-weight:900}
.saas-page-profit #profitKpiNote{color:#8495a7}
@media(max-width:1610px){
 .saas-page-profit .profit-finance-date-toolbar{justify-content:flex-start}
 .saas-page-profit .profit-finance-stat-value{font-size:23px!important}
}
@media(max-width:1310px){
 .saas-page-profit .profit-finance-hero{grid-template-columns:repeat(3,minmax(0,1fr))}
 .saas-page-profit .profit-finance-expense-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1020px){
 .saas-page-profit .profit-finance-heading{padding:19px}
 .saas-page-profit .profit-finance-hero{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}
 .saas-page-profit .profit-finance-expense-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .saas-page-profit .profit-finance-expenses{margin:0 12px 12px;padding:15px}
 .saas-page-profit .profit-finance-stat{min-height:150px}
}
@media(max-width:630px){
 .saas-page-profit .profit-finance-overview{border-radius:14px}
 .saas-page-profit .profit-finance-heading{padding:18px 14px}
 .saas-page-profit .profit-finance-date-toolbar{width:100%;flex-direction:column;align-items:stretch}
 .saas-page-profit .profit-finance-presets{width:100%;justify-content:space-around}
 .saas-page-profit .profit-period-chip{flex:1;padding:7px 5px}
 .saas-page-profit .profit-finance-date-toolbar .order-date-filters{width:100%}
 .saas-page-profit .profit-finance-date-toolbar .order-date-filters label{flex:1;min-width:0}
 .saas-page-profit .profit-finance-date-toolbar input[type=date]{width:100%!important;max-width:unset!important}
 .saas-page-profit .profit-finance-hero{gap:8px}
 .saas-page-profit .profit-finance-stat{min-height:135px;padding:12px}
 .saas-page-profit .profit-finance-stat-icon{width:27px;height:27px;margin-bottom:8px}
 .saas-page-profit .profit-finance-stat-value{font-size:21px!important;white-space:normal;overflow-wrap:anywhere}
 .saas-page-profit .profit-finance-stat-label small{display:block;margin-left:0}
 .saas-page-profit .profit-finance-stat.profit{grid-column:1/-1;min-height:126px}
 .saas-page-profit .profit-finance-expense-head{flex-wrap:wrap}
 .saas-page-profit .profit-finance-expense-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .saas-page-profit .profit-finance-expense-item{padding:10px;min-height:94px}
 .saas-page-profit .profit-finance-expense-item strong{font-size:16px!important;overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){
 .saas-page-profit .profit-finance-stat,.saas-page-profit .profit-period-chip{transition:none}
}

/* Expense share of actual, fully calculable gross order revenue */
.saas-page-profit .profit-finance-expense-ratio{
 display:inline-flex;align-items:center;align-self:flex-start;
 margin-top:7px;padding:4px 8px;line-height:1.3;
 font-size:10px;font-weight:850;letter-spacing:-.1px;
 color:#285f9a;background:#eaf2fd;border:1px solid #d9e8fb;border-radius:7px;
 font-variant-numeric:tabular-nums
}
.saas-page-profit .profit-finance-expense-item.is-credit .profit-finance-expense-ratio{
 background:#e8f7f0;color:#087f64;border-color:#cfeede
}
.saas-page-profit .profit-finance-expense-item small{margin-top:7px}
.saas-page-profit .profit-finance-stat-note span[id$="Rate"]{font-weight:900;color:#336f9e}


/* Scope bridge: Orders-center total vs completed SKU profitability subset. */
.saas-page-profit .profit-reconciliation{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.8fr);
 gap:10px;padding:15px 21px 17px;background:linear-gradient(115deg,#f9f7ff,#f5fafb);
 border-bottom:1px solid #e4e5ef
}
.saas-page-profit .profit-reconcile-item{
 min-width:0;padding:14px 16px;background:#fff;border:1px solid #e6e4ed;
 border-radius:13px;display:flex;flex-direction:column;gap:5px;
 box-shadow:0 2px 10px #2c264309;
}
.saas-page-profit .profit-reconcile-item>span{
 display:flex;gap:8px;align-items:center;flex-wrap:wrap;
 font-size:11px;font-weight:820;color:#687890;line-height:1.45
}
.saas-page-profit .profit-reconcile-item strong{
 font-size:clamp(21px,2vw,28px);letter-spacing:-.6px;line-height:1.25;
 color:#343451;font-weight:900;font-variant-numeric:tabular-nums
}
.saas-page-profit .profit-reconcile-item small{color:#8694a9;font-size:10px;line-height:1.5}
.saas-page-profit .profit-reconcile-item.order-total{border-top:3px solid #6d65d4}
.saas-page-profit .profit-reconcile-item.proceeds{border-top:3px solid #16baa2}
.saas-page-profit .profit-reconcile-item.unresolved{border-top:3px solid #dda15f}
.saas-page-profit .profit-reconcile-tag{
 display:inline-block;padding:3px 6px;background:#eeefff;border-radius:6px;
 font-size:9px;font-weight:800;color:#6c5fb4;white-space:normal
}
.saas-page-profit .profit-reconcile-footer{
 grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;
 gap:9px 22px;flex-wrap:wrap;padding:2px 3px 0
}
.saas-page-profit .profit-reconcile-footer p{
 flex:1 1 440px;color:#788399;font-size:10.5px;line-height:1.65;margin:0
}
.saas-page-profit .profit-reconcile-footer p strong{color:#56647c}
.saas-page-profit .profit-reconcile-footer a{
 color:#7453a5;font-size:10.5px;font-weight:840;text-decoration:none
}
.saas-page-profit .profit-reconcile-footer a:hover{text-decoration:underline}
@media(max-width:1150px){
 .saas-page-profit .profit-reconciliation{grid-template-columns:repeat(2,minmax(0,1fr))}
 .saas-page-profit .profit-reconcile-item.unresolved{grid-column:1/-1}
}
@media(max-width:600px){
 .saas-page-profit .profit-reconciliation{grid-template-columns:1fr;padding:12px;gap:8px}
 .saas-page-profit .profit-reconcile-item.unresolved{grid-column:auto}
 .saas-page-profit .profit-reconcile-item strong{font-size:22px}
}


/* Executive-first summary; every supporting metric remains one click away. */
.saas-page-profit .profit-reconciliation{grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}
.saas-page-profit .profit-reconcile-item{min-height:112px}
.saas-page-profit .profit-reconcile-item.headline-profit{border-top:3px solid #19ba9d}
.saas-page-profit .profit-reconcile-item.headline-profit.is-negative{border-top-color:#d76a7b}
.saas-page-profit .profit-reconcile-item.headline-profit.is-negative strong{color:#b84760}
.saas-page-profit .profit-reconcile-action{align-self:flex-start;margin-top:3px;padding:0;
 border:0;background:transparent;color:#6853a3;text-align:left;font-size:10px;font-weight:850;cursor:pointer}
.saas-page-profit .profit-reconcile-action:hover{text-decoration:underline}
.saas-page-profit .profit-scope-note{flex:1 1 300px;margin:0}
.saas-page-profit .profit-scope-note summary{cursor:pointer;color:#697b92;font-size:10.5px;font-weight:800}
.saas-page-profit .profit-scope-note p{max-width:790px;margin-top:7px}
.saas-page-profit .profit-finance-overview>.compact-detail-section{border-top:1px solid #e8edf4;margin:0;
 background:#fafbfd}
.saas-page-profit .profit-finance-overview>.compact-detail-section>summary{margin:0 20px}
@media(max-width:1450px){.saas-page-profit .profit-reconciliation{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.saas-page-profit .profit-reconciliation{grid-template-columns:1fr}}


/* Transparent second financial measure; do not style pre-Ads contribution as net profit. */
.saas-page-profit .profit-reconcile-item.verified-fba{background:#f5f9fc;border-color:#dce8f2}
.saas-page-profit .profit-reconcile-item.verified-fba strong{color:#235c84}
.saas-page-profit .profit-reconcile-item.verified-fba small{line-height:1.45}


.saas-page-profit .profit-ads-real-row{display:flex;align-items:center;gap:8px 11px;flex-wrap:wrap;margin:0;color:#526d85;font-size:11px}
.saas-page-profit .profit-ads-real-row>strong{font-weight:800;color:#294860}
.saas-page-profit #profitAdsActualSpend{font-size:14px;font-weight:850;font-variant-numeric:tabular-nums;color:#193b62}
.saas-page-profit #profitAdsActualCoverage{font-size:10px;color:#8190a1;line-height:1.5}


.saas-page-profit .profit-ads-real-row{display:flex;align-items:center;flex-wrap:wrap;gap:7px 11px;padding:8px 0}
.saas-page-profit .profit-ads-real-row label{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:650;color:#587086}
.saas-page-profit .profit-ads-real-row input{width:138px;max-width:45vw;min-height:34px;padding:6px 9px;border:1px solid #d9e3ef;border-radius:8px;background:#fff;color:#233d5b;font:inherit}
.saas-page-profit .profit-ads-real-row input[type="month"]{width:146px}
.saas-page-profit .profit-ads-real-row small{flex-basis:100%;color:#788da1;line-height:1.5}
.saas-page-profit .profit-ads-allocation-note{font-size:11px;line-height:1.55;color:#60778e;margin:0}
