/* BUILD 14.3.2 — Dashboard, finance and client-list polish.
   Additive UI layer only; no Vault or business logic changes. */

/* Make the boundary between practice, workspaces and system clearer without adding weight. */
.nav-divider{margin:16px 6px;background:#d7c8bd}
.nav-section-label{margin-top:14px}
.sidebar-bottom{
  background:transparent!important;
  box-shadow:none!important;
  border-top:1px solid #d7c8bd!important;
  padding-left:4px!important;
  padding-right:4px!important;
}
.admin-pill{background:transparent!important}

/* --- Weather strip: ambient information, not another dashboard module. --- */
.dashboard-weather{
  position:relative;
  display:grid;
  grid-template-columns:minmax(180px,.7fr) minmax(420px,1.7fr) 38px;
  gap:16px;
  align-items:center;
  margin:-2px 0 15px;
  padding:12px 14px;
  border:1px solid #e8ddd3;
  border-radius:15px;
  background:linear-gradient(135deg,#fffefd,#fbf6f1);
  box-shadow:0 9px 26px rgba(62,45,37,.035)
}
.weather-location{display:flex;align-items:center;gap:10px;min-width:0}
.weather-location>div{min-width:0}
.weather-location strong,.weather-location small{display:block}
.weather-location strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#3c302b}
.weather-location small{font-size:10px;color:#938078;margin-top:2px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.weather-pin{width:30px;height:30px;border-radius:10px;background:#efe3da;display:grid;place-items:center;color:#a65f48;font-weight:900}
.weather-days{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.weather-day{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:7px 9px;border-left:1px solid #eadfd6;min-width:0}
.weather-day:first-child{border-left:0}
.weather-icon{font-size:21px;line-height:1}
.weather-day strong,.weather-day span{display:block}
.weather-day strong{font-size:11px;color:#5d4e47}
.weather-day .weather-temp{font-size:12px;font-weight:850;text-align:right;color:#382d29}
.weather-day .weather-low{font-size:10px;color:#9a877c;font-weight:650}
.weather-loading,.weather-error{font-size:12px;color:#8d7a70;padding:8px}
.weather-edit{justify-self:end}
.weather-location-form{
  position:absolute;right:12px;top:calc(100% + 7px);z-index:12;
  display:flex;gap:7px;align-items:center;padding:10px;
  border:1px solid #e4d7cd;border-radius:12px;background:#fffefa;
  box-shadow:0 14px 40px rgba(51,38,32,.13)
}
.weather-location-form.hidden{display:none}
.weather-location-form input{min-width:245px;border:1px solid #dfd2c8;border-radius:9px;padding:8px 10px;background:#fff}

/* --- Client list: searchable, identifiable by neutral code, discreet by default. --- */
.client-toolbar{gap:8px;align-items:center;flex-wrap:wrap}
.client-toolbar #clientSearch{min-width:300px;flex:1}
.client-privacy-toggle{padding:9px 12px;white-space:nowrap;font-size:12px}
.client-privacy-toggle.is-visible{background:#f4ece6}
.client-code{display:inline-flex;align-items:center;border:1px solid #dfd4ca;background:#f8f3ee;color:#7a675d;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:850;letter-spacing:.05em;white-space:nowrap}
#clientsTable th:first-child,#clientsTable td:first-child{width:92px}

/* --- Finance visuals inspired by calm practice dashboards, not a separate statistics section. --- */
.finance-visual-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.65fr);gap:14px;margin:16px 0}
.finance-chart-box{min-height:330px}
.finance-visual-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.finance-visual-head h3{margin-top:2px}
.finance-demo-badge{display:inline-flex;align-items:center;min-height:27px;padding:4px 8px;border-radius:999px;background:#f2ece7;color:#7f6d63;font-size:9px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.finance-demo-badge.real{background:#edf5ec;color:#557157}
.finance-monthly-chart{height:220px;display:grid;grid-template-columns:repeat(6,minmax(50px,1fr));gap:13px;align-items:end;padding:22px 8px 0;border-bottom:1px solid #ddd2c9;margin-top:9px;position:relative}
.finance-monthly-chart:before{content:'';position:absolute;left:0;right:0;top:55%;border-top:1px dashed #dfd5cd;opacity:.8}
.finance-month{display:grid;grid-template-rows:170px auto;gap:7px;min-width:0}
.finance-bars{height:170px;display:flex;align-items:end;justify-content:center;gap:5px;position:relative}
.finance-column{width:min(30px,38%);min-height:3px;border-radius:6px 6px 2px 2px;position:relative;transition:height .2s ease}
.finance-column.income{background:linear-gradient(180deg,#6c9d76,#557d61)}
.finance-column.fixed{background:linear-gradient(180deg,#d79a80,#c77459)}
.finance-column b{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(100% + 4px);font-size:8px;color:#78675f;white-space:nowrap;font-weight:800}
.finance-month-label{text-align:center;font-size:10px;color:#7e6d65;font-weight:750}
.finance-chart-legend{display:flex;gap:18px;flex-wrap:wrap;margin:13px 7px 0;font-size:10px;color:#827168}
.finance-chart-legend span{display:flex;align-items:center;gap:6px}.finance-chart-legend i{width:9px;height:9px;border-radius:3px;display:inline-block}.legend-income{background:#5f8a69}.legend-fixed{background:#c9795e}
.finance-fixed-box{display:flex;flex-direction:column}
.finance-fixed-toggle{display:flex;align-items:flex-start;gap:9px;border:1px solid #e5dad1;background:#fcf8f4;border-radius:11px;padding:11px 12px;margin:10px 0 14px;font-size:12px;font-weight:780}
.finance-fixed-toggle input{margin-top:2px;accent-color:#b96045}
.finance-fixed-input{display:grid;gap:6px;font-size:11px;font-weight:800;color:#6c5b53}
.finance-fixed-input>div{display:flex;align-items:center;border:1px solid #dfd2c8;border-radius:10px;background:#fff;overflow:hidden}
.finance-fixed-input>div span{padding:9px 0 9px 11px;color:#917a6e}.finance-fixed-input input{width:100%;border:0;outline:0;padding:9px;background:#fff;font-weight:850}
.finance-fixed-result{margin-top:auto;border-top:1px solid #e9ded5;padding-top:15px;display:flex;align-items:end;justify-content:space-between;gap:10px}
.finance-fixed-result span{font-size:10px;color:#8e7c72;max-width:130px}.finance-fixed-result strong{font-family:Georgia,serif;font-size:22px;color:#3c302b}
.finance-payment-mix .finance-visual-head{align-items:center}
.finance-donut{width:86px;height:86px;border-radius:50%;display:grid;place-items:center;background:#eee7e1;position:relative;flex:0 0 auto}
.finance-donut:after{content:'';position:absolute;inset:13px;background:#fffefd;border-radius:50%}
.finance-donut span{position:relative;z-index:1;font-size:10px;font-weight:850;color:#6e5d55;text-align:center;line-height:1.2;max-width:54px}

@media(max-width:1100px){
  .dashboard-weather{grid-template-columns:180px 1fr 38px}.weather-day{grid-template-columns:auto 1fr}.weather-day .weather-temp{grid-column:2;text-align:left}.weather-low{display:inline!important}
  .finance-visual-grid{grid-template-columns:1fr}.finance-fixed-result{margin-top:18px}
}
@media(max-width:760px){
  .dashboard-weather{grid-template-columns:1fr 36px;gap:8px}.weather-days{grid-column:1/-1}.weather-location-form{left:0;right:0}.weather-location-form input{min-width:0;flex:1}.weather-day{border-left:0;background:#fff;border-radius:10px}
  .finance-monthly-chart{overflow-x:auto;grid-template-columns:repeat(6,72px);justify-content:start}.client-toolbar #clientSearch{min-width:100%}.client-privacy-toggle{flex:1}.client-toolbar select{flex:1}
}
