/* NovaCore 6.1.86 – Startseite groß, Import wie Export, Finanznavigation */

/* STARTSEITE – Wichtige Kennzahlen über die volle Arbeitsbreite und deutlich größer. */
#homePage .nc-master-mid-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;width:100%!important}
#homePage .nc-master-kpi-panel{
  grid-column:1/-1!important;width:100%!important;max-width:none!important;height:310px!important;min-height:310px!important;
  display:grid!important;grid-template-rows:42px 94px minmax(0,1fr)!important;overflow:hidden!important;
  border-radius:12px!important;border:1px solid rgba(80,166,222,.22)!important;
  background:linear-gradient(180deg,#081a2c 0%,#071725 100%)!important;box-shadow:0 16px 38px rgba(0,0,0,.25)!important
}
#homePage .nc-master-kpi-panel>header{height:42px!important;min-height:42px!important;padding:9px 14px!important;border-bottom:1px solid rgba(80,166,222,.10)!important}
#homePage .nc-master-kpi-panel>header small{display:none!important}
#homePage .nc-master-kpi-panel>header strong{font-size:15px!important;line-height:18px!important;font-weight:900!important;color:#f4f9ff!important}
#homePage .nc-master-kpis{height:94px!important;padding:9px 12px 10px!important;gap:10px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
#homePage .nc-master-kpis article{height:75px!important;min-height:75px!important;display:flex!important;align-items:center!important;gap:12px!important;padding:10px 12px!important;border-radius:11px!important;border:1px solid rgba(83,164,216,.15)!important;background:linear-gradient(180deg,#0c2034,#0a1b2c)!important}
#homePage .nc-master-kpis article .nc-master-card-icon{width:43px!important;height:43px!important;min-width:43px!important;border-radius:12px!important;font-size:18px!important}
#homePage .nc-master-kpis article strong{font-size:21px!important;line-height:23px!important;font-weight:950!important;color:#f8fbff!important}
#homePage .nc-master-kpis article small{font-size:10px!important;line-height:13px!important;color:#91aabd!important;white-space:normal!important}
#homePage .nc-master-chart{height:174px!important;min-height:174px!important;padding:7px 14px 12px!important;display:grid!important;grid-template-rows:30px minmax(0,1fr)!important;align-content:stretch!important;overflow:hidden!important}
#homePage .nc-master-chart>div{height:30px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important}
#homePage .nc-master-chart>div>strong{font-size:12px!important;line-height:15px!important;color:#edf5fb!important}
#homePage .nc-pixel-chart-legend{gap:14px!important;font-size:9px!important;line-height:12px!important;color:#7f9caf!important}
#homePage .nc-pixel-chart-legend i{width:7px!important;height:7px!important}
#homePage .nc-reference-chart-6179{width:100%!important;height:132px!important;display:block!important;margin:0!important;overflow:visible!important}
#homePage .nc-ref-label{font-size:8px!important}
#homePage .nc-ref-import,#homePage .nc-ref-market,#homePage .nc-ref-mix{stroke-width:2.2!important}

/* Import-Erinnerungen direkt unterhalb der KPI-Fläche, gleiche linke/rechte Kante. */
#homePage #ncMasterHome{margin-bottom:10px!important}
#homePage>.nc-home-priority-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:none!important;gap:0!important;margin:0 0 10px!important}
#homePage #homeAttentionPanel{display:none!important}
#homePage .nc-home-imports{width:100%!important;max-width:none!important;min-height:315px!important;margin:0!important;padding:18px 20px!important;border-radius:12px!important}
#homePage .nc-home-imports .dashboard-kicker{font-size:10px!important}
#homePage .nc-home-imports h3{font-size:23px!important;line-height:27px!important}
#homePage .nc-home-imports p{font-size:13px!important}
#homePage .nc-home-imports .import-reminder-list{min-height:205px!important;max-height:440px!important;font-size:12px!important}

/* Die beiden Finanzkarten befinden sich nicht mehr auf der Startseite, sondern in der Hauptnavigation. */
#homePage>.nc-home-finance-grid{display:none!important}
#mainNav #financeCard .nc-nav-icon{color:#63e3a2!important}
#mainNav #importExpenseCard .nc-nav-icon{color:#ffbf69!important}

/* IMPORT – gleiche Arbeitsbreite/Proportionen wie Export und ohne vertikalen Versatz. */
body[data-nc-page="imports"]{scroll-padding-top:0!important}
body[data-nc-page="imports"] .main{width:calc(100vw - var(--nc-main-nav-w))!important;margin-left:var(--nc-main-nav-w)!important;padding:10px 16px 34px!important;overflow-x:hidden!important;overflow-y:visible!important}
#importPage{position:relative!important;inset:auto!important;transform:none!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:start!important;gap:10px!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;overflow:visible!important}
#importPage>.page-header{margin:0!important;min-height:0!important;width:100%!important}
#importPage>.premium-strip{width:100%!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin:0!important}
#importPage>.import-sync-note,#importPage>.nc-import-pickup-panel{width:100%!important;max-width:none!important;margin:0!important;box-sizing:border-box!important}
#importPage .import-layout{display:grid!important;grid-template-columns:285px minmax(0,1fr)!important;gap:16px!important;align-items:start!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;overflow:visible!important;contain:none!important}
#importPage .import-sidebar{display:block!important;position:sticky!important;top:calc(var(--nc-chrome-h) + 10px)!important;align-self:start!important;width:auto!important;min-width:0!important;height:auto!important;max-height:calc(100vh - var(--nc-chrome-h) - 20px)!important;overflow:auto!important;padding:0 4px 0 0!important}
#importPage .import-sidebar .side-panel{height:auto!important;max-height:none!important;padding:16px!important}
#importPage .import-company-list{max-height:calc(100vh - var(--nc-chrome-h) - 180px)!important;overflow:auto!important}
#importPage .import-layout>.content{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;transform:none!important;overflow:visible!important;contain:none!important}
#importPage .controls-panel{position:relative!important;top:auto!important;z-index:2!important;width:100%!important;margin:0!important}
#importPage #importResults,#importPage .import-company-section{width:100%!important;max-width:none!important;min-width:0!important;margin-left:0!important;margin-right:0!important;transform:none!important;content-visibility:visible!important;contain:none!important}
#importPage .tablewrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:visible!important}
#importPage .import-table{width:100%!important;min-width:840px!important;table-layout:fixed!important}

/* Finanzdialoge: keine künstlich riesige Erstfläche; Inhalte progressiv und sofort scrollbar. */
#ledgerDialog .modal-body,#importExpenseDialog .modal-body{max-height:min(78vh,820px)!important;overflow:auto!important;contain:layout style!important}
#ledgerDialog .finance-company-overview,#importExpenseDialog .finance-company-overview{content-visibility:auto!important;contain-intrinsic-size:260px!important}
#ledgerDialog .ledger-list,#importExpenseDialog .import-expense-history{min-height:0!important}

@media(max-width:1160px){
  #homePage .nc-master-kpi-panel{height:auto!important;min-height:310px!important}
  #homePage .nc-master-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;height:auto!important}
  #homePage .nc-master-kpi-panel{grid-template-rows:42px auto minmax(150px,1fr)!important}
  #importPage .import-layout{grid-template-columns:1fr!important}
  #importPage .import-sidebar{position:relative!important;top:auto!important;max-height:none!important;padding-right:0!important}
  #importPage .import-company-list{max-height:300px!important}
}
@media(max-width:700px){
  #homePage .nc-master-kpis{grid-template-columns:1fr!important}
  #homePage .nc-master-kpis article{height:auto!important;min-height:70px!important}
  #homePage .nc-master-chart>div{align-items:flex-start!important;flex-direction:column!important;height:auto!important}
  #homePage .nc-master-chart{grid-template-rows:auto minmax(150px,1fr)!important;height:auto!important;min-height:220px!important}
  #importPage>.premium-strip{grid-template-columns:1fr!important}
}
