/* Profitalyzer V49.19 — final deploy polish */
html{scroll-behavior:smooth}body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,a,input,select,textarea{transition:border-color .16s ease,background-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease,opacity .16s ease}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid color-mix(in srgb,#7657ff 35%,transparent)!important;outline-offset:2px!important}
:root[data-theme="dark"] input,:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{background:#1e1928!important;color:#f7f3ff!important;border-color:#443a56!important;color-scheme:dark}
:root[data-theme="dark"] input::placeholder,:root[data-theme="dark"] textarea::placeholder{color:#8f879e!important}
:root[data-theme="dark"] option{background:#1e1928;color:#f7f3ff}
:root[data-theme="dark"] .card,:root[data-theme="dark"] .pf-card,:root[data-theme="dark"] .mt-card,:root[data-theme="dark"] .annual-block,:root[data-theme="dark"] .forecast-chart,:root[data-theme="dark"] .table-scroll{border-color:#373042!important}
:root[data-theme="dark"] .chart-types button.active,:root[data-theme="dark"] .metric-toggles button.active,:root[data-theme="dark"] .mt-type-tabs button.on,:root[data-theme="dark"] .mt-analysis-period button.on,:root[data-theme="dark"] .mt-analysis-typebuttons button.on,:root[data-theme="dark"] .seg.on,:root[data-theme="dark"] .pbmode.on,:root[data-theme="dark"] .pf-work-tab.on{background:#5939c7!important;border-color:#a08cff!important;color:#fff!important;box-shadow:0 0 0 2px rgba(160,140,255,.16)!important}
:root[data-theme="dark"] thead th{background:#211c2b!important;color:#bbb3c8!important}
:root[data-theme="dark"] .warning,:root[data-theme="dark"] .note.warn{background:#2a2115!important;border-color:#6b5123!important;color:#f0d7a6!important}
:root[data-theme="dark"] .info-note{background:#211b33!important;border-color:#51436f!important;color:#d4c9fa!important}
html[dir="rtl"] .mt-actions,html[dir="rtl"] .report-action-buttons,html[dir="rtl"] .pf-actions{direction:rtl}
html[dir="rtl"] .mt-tx,html[dir="rtl"] .mt-schedule,html[dir="rtl"] .pf-saved-row{text-align:right}
html[dir="rtl"] .forecast-chart .axis-label{direction:ltr}
.mt-owner-note{color:var(--mt-muted);font-size:12px}
@media(max-width:900px){
  .v2-global-top .topin,.top .topin{padding-inline:14px!important}.v2-global-top .navlinks{display:none!important}.v2-global-top .menu-toggle{display:inline-flex!important}
  .pf-v1page,.wrap,.mt-app{padding-inline:14px!important}.pf-dashboard-grid,.mt-grid,.grid2{grid-template-columns:1fr!important}
  .pf-workspace-hero{min-height:auto!important}.pf-usage-strip{grid-template-columns:1fr!important}.pf-saved-row{grid-template-columns:auto minmax(0,1fr)!important}.pf-saved-actions{grid-column:1/-1!important;justify-content:flex-start!important;flex-wrap:wrap!important}
  .mt-hero{align-items:flex-start!important}.mt-actions{width:100%}.mt-actions .mt-btn{flex:1 1 145px}.mt-monthbar{top:58px!important}.mt-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .table-scroll,.mt-analysis-tablewrap{overflow:auto;-webkit-overflow-scrolling:touch}.table-scroll table{min-width:900px}.mt-analysis-tablewrap table{min-width:720px}
  .report-actions{grid-template-columns:1fr!important}.report-action-buttons{justify-content:flex-start!important}.forecast-identity-card{align-items:flex-start!important}
}
@media(max-width:560px){
  .mt-app,.wrap,.pf-v1page{padding-inline:10px!important}.mt-hero h1{font-size:34px!important}.mt-summary{grid-template-columns:1fr 1fr!important;gap:9px!important}.mt-stat{padding:14px!important}.mt-stat b{font-size:21px!important}
  .mt-actions{display:grid!important;grid-template-columns:1fr 1fr!important}.mt-actions .mt-btn{width:100%;min-width:0}.mt-pie-wrap{grid-template-columns:1fr!important}.mt-pie{margin:auto}.mt-tx{grid-template-columns:34px minmax(0,1fr) auto!important}.mt-tx .mt-more{grid-column:3}.mt-amount{grid-column:3}.mt-dialog{padding:16px!important;border-radius:18px!important}.mt-form{grid-template-columns:1fr!important}.mt-form .wide{grid-column:auto!important}
  .pf-work-tabs{overflow:auto;flex-wrap:nowrap!important;padding-bottom:4px}.pf-work-tab{white-space:nowrap}.pf-profile-card,.pf-section-head{align-items:flex-start!important;flex-direction:column!important}.pf-profile-actions{width:100%;flex-wrap:wrap!important}
  .kpis{grid-template-columns:1fr 1fr!important}.annual-summary{grid-template-columns:1fr!important}.chart-controls{grid-template-columns:1fr!important}.forecast-chart svg{min-width:560px!important}.pie-layout{grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
/* Print: keep reports clean, white and self-contained. */
@media print{
  *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .v2-global-top,.v2-contextbar,.top,.pf-account-header,.mobile-nav,.no-print,.mt-footer,.mt-floating{display:none!important}
  body{background:#fff!important;color:#111!important}.wrap,.mt-app,.pf-v1page{max-width:none!important;margin:0!important;padding:0!important}
  a{text-decoration:none!important;color:inherit!important}button{display:none!important}
  .card,.pf-card,.mt-card{box-shadow:none!important;border-color:#d9d9df!important}
  table{page-break-inside:auto}tr{page-break-inside:avoid;page-break-after:auto}thead{display:table-header-group}
}
