
:root{
  --bg:#f4f6f7;
  --panel:#ffffff;
  --text:#20262b;
  --muted:#65717a;
  --border:#d7dde1;
  --ink:#263746;
  --accent:#4f6675;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font-family:Bahnschrift,"Segoe UI",Arial,sans-serif}
body{min-height:100vh}
.app{max-width:1800px;margin:0 auto;padding:22px}
.topbar{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:10px}
.eyebrow{margin:0 0 4px;font-size:12px;font-weight:700;letter-spacing:.12em;color:var(--accent)}
h1{margin:0;font-size:34px;letter-spacing:-.02em}
h2{margin:0 0 8px;font-size:18px}
.intro,.small{margin:4px 0;color:var(--muted);font-size:13px}
.toolbar{display:flex;gap:8px;align-items:end;flex-wrap:wrap;justify-content:flex-end}
.toolbar label{font-size:12px;font-weight:700;color:var(--muted);display:grid;gap:4px}
input,button{font:inherit}
input[type=number],input[type=text]{padding:9px 10px;border:1px solid var(--border);border-radius:8px;background:#fff}
input[type=number]{width:88px}
input[type=text]{width:245px}
button,.file-button{padding:9px 12px;border:0;border-radius:8px;background:var(--ink);color:#fff;font-weight:700;cursor:pointer;font-size:12px}
button:hover,.file-button:hover{filter:brightness(1.08)}
.file-button{display:inline-flex !important;align-items:center;min-height:34px}
.file-button input{display:none}
.segmented{display:flex;border:1px solid var(--border);border-radius:9px;overflow:hidden;background:#fff}
.segmented .seg{border-radius:0;background:#fff;color:var(--ink);padding:9px 12px}
.segmented .seg + .seg{border-left:1px solid var(--border)}
.segmented .seg.active{background:var(--ink);color:#fff}
.status{min-height:18px;margin:0 0 8px;color:var(--muted);font-size:12px;text-align:right}
.layout{display:grid;grid-template-columns:minmax(330px,.62fr) minmax(850px,2.2fr);gap:18px;align-items:start}
.panel,.wheel-card{background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:16px}
.filters{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.filter{display:flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid var(--border);border-radius:999px;font-size:12px;background:#fff}
.swatch{width:14px;height:14px;border-radius:4px;border:1px solid rgba(0,0,0,.18)}
.table-wrap{overflow:auto;max-height:720px;border:1px solid var(--border);border-radius:10px}
table{border-collapse:collapse;width:100%;font-size:11px}
thead th{position:sticky;top:0;background:#eef2f4;z-index:1;text-align:left;padding:7px;border-bottom:1px solid var(--border);white-space:nowrap}
tbody td{padding:6px 7px;border-bottom:1px solid #edf0f2;vertical-align:top}
tbody tr:last-child td{border-bottom:0}
.wheel-head{display:flex;justify-content:space-between;gap:16px;align-items:start;margin-bottom:2px}
.legend{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.legend-item{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted)}
.print-title{display:none}
.wheel-wrap{width:100%;margin:0 auto;overflow:auto}
#wheel{display:block;width:100%;height:auto;min-width:950px}
.month-ring{fill:none;stroke:#d2d9dd;stroke-width:3}
.month-node{stroke:#fff;stroke-width:4;filter:drop-shadow(0 2px 2px rgba(0,0,0,.12))}
.month-node-label{font-size:18px;font-weight:700;fill:#263746;text-anchor:middle;dominant-baseline:middle}
.month-link{fill:none;stroke:#cfd7dc;stroke-width:1.6}
.month-heading{font-size:12px;font-weight:700;fill:#52616b;letter-spacing:.08em}
.month-item{font-size:10.5px;font-weight:600;fill:#20262b;cursor:pointer}
.month-item:hover{text-decoration:underline}
.center-heading{font-size:13px;font-weight:700;fill:#52616b;text-anchor:middle;letter-spacing:.08em}
.center-item{font-size:12px;font-weight:700;fill:#20262b;text-anchor:middle;cursor:pointer}
.center-note{font-size:9px;fill:#65717a;text-anchor:middle}
.ring-line{fill:none;stroke:#dfe4e7;stroke-width:1}
.month-sector{stroke:#fff;stroke-width:2}
.month-label{font-size:18px;font-weight:700;fill:#263746;text-anchor:middle;dominant-baseline:middle}
.activity-arc{cursor:pointer;stroke:#263746;stroke-width:1}
.details{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap;border-top:1px solid var(--border);padding-top:10px;margin-top:4px;font-size:13px}
.details span{color:var(--muted)}
@media(max-width:1150px){
  .layout{grid-template-columns:1fr}
  .table-wrap{max-height:320px}
}
@media(max-width:700px){
  .app{padding:12px}
  .topbar,.wheel-head{align-items:stretch;flex-direction:column}
  .toolbar{justify-content:flex-start}
  .legend{justify-content:flex-start}
  .panel,.wheel-card{padding:12px}
}
@page{size:A4 landscape;margin:8mm}
@media print{
  html,body{background:#fff;width:100%;height:auto}
  .topbar,.panel,.wheel-head,.details,.status{display:none !important}
  .app{max-width:none;padding:0;margin:0}
  .layout{display:block}
  .wheel-card{border:0;padding:0;margin:0}
  .print-title{
    display:block;
    font-size:18pt;
    font-weight:700;
    margin:0 0 4mm;
    text-align:left;
  }
  .wheel-wrap{overflow:visible}
  #wheel{
    min-width:0;
    width:100%;
    max-height:175mm;
    height:auto;
    page-break-inside:avoid;
    break-inside:avoid;
  }
}


/* v0.5 */
.zoom-controls{
  display:flex;
  align-items:center;
  gap:6px;
  padding:3px 6px;
  border:1px solid var(--border);
  border-radius:9px;
  background:#fff;
}
.zoom-controls[hidden]{display:none !important}
.zoom-controls label{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:700;
  color:var(--muted);
}
.zoom-controls input[type=range]{width:110px}
.zoom-controls button{padding:6px 9px;min-width:32px}
#zoomValue{font-size:11px;color:var(--muted);min-width:40px;text-align:center}

.month-panel{cursor:default}
.month-panel-bg{
  fill:rgba(255,255,255,.94);
  stroke:#bcc7cd;
  stroke-width:1.25;
}
.month-panel-head{
  stroke:none;
}
.month-panel-title{
  font-size:15px;
  font-weight:800;
  fill:#263746;
  letter-spacing:.05em;
}
.month-panel-grip{
  font-size:16px;
  font-weight:800;
  fill:#6a7880;
  cursor:grab;
  user-select:none;
}
.month-panel-grip:active{cursor:grabbing}
.month-item{
  font-size:12.5px;
  font-weight:600;
  fill:#20262b;
  cursor:pointer;
}
.month-item:hover{text-decoration:underline}
.center-heading{
  font-size:14px;
  font-weight:800;
}
.center-item{
  font-size:13px;
  font-weight:700;
}
.month-node-label{
  font-size:19px;
  font-weight:800;
}

@media print{
  .month-panel-bg{fill:#fff;stroke:#8d989e;stroke-width:1}
  .month-panel-grip{display:none}
  .month-panel-title{font-size:14px}
  .month-item{font-size:11.5px}
  .center-heading{font-size:13px}
  .center-item{font-size:12px}
}


/* v0.6 */
.design-controls{
  display:flex;align-items:end;gap:6px;padding:5px 7px;
  border:1px solid var(--border);border-radius:9px;background:#fff;flex-wrap:wrap
}
.design-controls label{display:flex;flex-direction:column;gap:3px;font-size:11px;font-weight:700;color:var(--muted)}
.design-controls input[type=range]{width:92px}
.design-controls select{padding:7px 8px;border:1px solid var(--border);border-radius:7px;background:#fff;color:var(--text)}
.design-controls span{font-size:10px;color:var(--muted);min-width:34px;align-self:center;padding-top:12px}

#wheel.pan-enabled{cursor:grab}
#wheel.pan-enabled.panning{cursor:grabbing}

.print-safe-frame{fill:none;stroke:#9aa7ae;stroke-width:1.5;stroke-dasharray:9 7;pointer-events:none}
.print-safe-label{font-size:11px;fill:#78868e;pointer-events:none}
.center-column-guide{stroke:#e1e6e9;stroke-width:1;stroke-dasharray:4 5}
.center-item{font-weight:700}

@media print{
  .print-title{padding-top:2mm;line-height:1.15;margin:0 0 3mm}
  .print-safe-frame,.print-safe-label,.center-column-guide{display:none}
}


/* v0.7 */
.page-title-svg{
  font-family:Bahnschrift,"Segoe UI",Arial,sans-serif;
  font-size:36px;
  font-weight:800;
  fill:#263746;
}
.print-safe-frame{
  fill:none;
  stroke:#8f9ba2;
  stroke-width:1.6;
  stroke-dasharray:10 7;
  pointer-events:none;
}
.print-safe-label{
  font-size:11px;
  fill:#78868e;
}
@media print{
  @page{size:A4 landscape;margin:0}
  html,body{width:297mm;height:210mm;margin:0;padding:0}
  .print-title{display:none !important}
  .wheel-card{width:297mm;height:210mm;margin:0;padding:0;overflow:hidden}
  .wheel-wrap{width:297mm;height:210mm;margin:0;overflow:hidden}
  #wheel{
    display:block;
    width:297mm !important;
    height:210mm !important;
    min-width:0 !important;
    max-height:none !important;
  }
  .print-safe-frame{stroke:none}
  .print-safe-label{display:none}
}


/* v0.8 */
.checkline{
  display:flex !important;
  flex-direction:row !important;
  align-items:center;
  gap:5px !important;
  padding-bottom:7px;
}
.checkline input{margin:0}
.page-bg{pointer-events:none}
.page-logo{pointer-events:none}
.month-boundary{stroke:#7f8d95;stroke-width:1.4;opacity:.75}
.month-boundary-label{
  font-size:10px;font-weight:800;fill:#64727a;text-anchor:middle;dominant-baseline:middle
}
.ring-activity-label{
  font-weight:700;fill:#20262b;text-anchor:middle;dominant-baseline:middle;pointer-events:none
}


/* v0.9 */
.month-connector{
  fill:none;
  stroke:#cbd5da;
  stroke-width:2.2;
  stroke-linecap:round;
}
.month-connector.thin-arrow{stroke-width:2}
.month-connector.filled-arrow{stroke-width:2.6}
.month-chevron{
  fill:none;
  stroke:#94a4ad;
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.page-bg-image{
  pointer-events:none;
}


/* v0.10 */
.month-boundary{
  stroke:#74848d;
  stroke-width:2.4;
  opacity:.95;
}
.ring-activity-label.radial{
  text-anchor:middle;
  dominant-baseline:middle;
}


/* v0.11 */
.month-panel-title{
  font-weight:800;
}


/* v0.12 */
.app-v12{max-width:1900px}
.topbar-v12{
  display:grid;
  grid-template-columns:minmax(250px,360px) minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.brand-panel,.header-panel,.settings-panel,.activity-panel,.main-panel{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:14px;
  padding:16px;
}
.header-panel{display:grid;gap:12px}
.header-row{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.header-row-main .title-label{min-width:280px;flex:1}
.header-row-actions{justify-content:flex-end}
.status{margin:8px 0 12px;text-align:left}
.dashboard-layout{
  grid-template-columns:minmax(330px,390px) minmax(760px,1fr) minmax(280px,330px);
  gap:18px;
  align-items:start;
}
.layout .panel,.layout .wheel-card{padding:16px}
.settings-panel{padding:14px}
.settings-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:10px;
}
.settings-small{margin-top:2px}
.settings-toggle{
  background:#eef2f4;
  color:var(--ink);
  border:1px solid var(--border);
}
.settings-panel.collapsed .settings-body{display:none}
.settings-panel.collapsed{padding-bottom:12px}
.settings-body{display:grid;gap:12px}
.settings-group{
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  background:#fafbfc;
}
.settings-group-title{
  margin:0 0 10px;
  font-size:13px;
  color:var(--accent);
  letter-spacing:.06em;
  text-transform:uppercase;
}
.legend-column{
  display:grid;
  gap:8px;
  justify-content:stretch;
}
.legend-column .legend-item{
  justify-content:flex-start;
  font-size:12px;
}
.design-controls-column{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px 10px !important;
  align-items:end;
}
.design-controls-column .settings-group-title{
  grid-column:1/-1;
  margin-bottom:2px;
}
.design-controls-column label{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.design-controls-column input[type=range]{width:100%}
.design-controls-column select{width:100%}
.design-controls-column .checkline,
.design-controls-column .secondary-action,
.design-controls-column .zoom-controls{
  grid-column:1/-1;
}
.design-controls-column .secondary-action{
  background:#eef2f4;
  color:var(--ink);
}
.wheel-head{margin-bottom:8px}
.month-panel-head-zone{
  fill:transparent;
  cursor:grab;
}
.month-panel-head-zone:active{cursor:grabbing}
.month-panel-grip{
  pointer-events:none;
}
.center-item-left{text-anchor:end}
.center-item-right{text-anchor:start}

@media(max-width:1450px){
  .dashboard-layout{
    grid-template-columns:minmax(300px,360px) minmax(0,1fr);
  }
  .settings-panel{grid-column:1/-1}
}
@media(max-width:980px){
  .topbar-v12{grid-template-columns:1fr}
  .dashboard-layout{grid-template-columns:1fr}
}
@media print{
  .topbar,.activity-panel,.settings-panel,.status,.details{display:none !important}
  .dashboard-layout{display:block}
  .main-panel{border:0;padding:0}
}


/* v0.13 */
.app-v13{max-width:1900px;padding:12px}
.compact-header{display:grid;gap:8px}
.top-row,.settings-row{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:12px;
}
.top-row{
  min-height:58px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:14px;
  align-items:center;
  padding:8px 12px;
}
.top-row h1{font-size:28px;margin:0}
.top-controls{display:flex;align-items:end;gap:10px;justify-content:center;flex-wrap:wrap}
.top-controls label{display:grid;gap:2px;font-size:11px;font-weight:700;color:var(--muted)}
.top-controls input[type=number]{width:78px;padding:7px 9px}
.top-controls input[type=text]{width:270px;padding:7px 9px}
.title-label{min-width:270px}
.icon-button{
  width:38px;height:38px;padding:0;
  display:inline-grid;place-items:center;
  font-size:20px;line-height:1;
}
.settings-row{
  padding:7px 10px;
  display:grid;
  gap:7px;
}
.horizontal-settings{
  display:flex;
  align-items:end;
  gap:7px;
  flex-wrap:wrap;
}
.horizontal-settings label{
  display:grid;
  gap:2px;
  font-size:10px;
  font-weight:700;
  color:var(--muted);
}
.horizontal-settings input[type=range]{width:78px}
.horizontal-settings select{max-width:160px;padding:6px 7px;border:1px solid var(--border);border-radius:7px;background:#fff}
.horizontal-settings > span{
  font-size:10px;color:var(--muted);min-width:30px;padding-bottom:5px;
}
.compact-check{
  display:flex !important;
  flex-direction:row !important;
  align-items:center;
  gap:4px !important;
  padding-bottom:7px !important;
  white-space:nowrap;
}
.compact-action{padding:7px 9px}
.action-row{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
}
.action-row button,.action-row .file-button{padding:7px 10px;font-size:11px}
.compact-zoom{padding:2px 5px}
.compact-zoom label{display:flex;flex-direction:row;align-items:center;gap:5px}
.normal-layout{
  grid-template-columns:minmax(330px,390px) minmax(0,1fr);
  gap:14px;
  align-items:start;
}
.activity-panel,.main-panel{min-width:0}
.status{min-height:14px;margin:4px 0 6px}
.center-item-left{text-anchor:end}
.center-item-right{text-anchor:start}

/* Maximized app mode */
.maximized-shell{
  position:fixed;
  inset:0;
  z-index:9999;
  background:#f4f6f7;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  overflow:hidden;
}
.maximized-shell[hidden]{display:none !important}
.maximized-header{
  min-height:52px;
  padding:7px 12px;
  background:#fff;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.maximized-header h1{font-size:26px;margin:0}
.maximized-actions{display:flex;align-items:center;gap:10px}
.maximized-canvas{
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding:4px 8px;
}
#wheelMax{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
}
.details-max{
  min-height:46px;
  margin:0;
  padding:9px 14px;
  border-top:1px solid var(--border);
  background:#fff;
}
body.maximized-mode{overflow:hidden}

@media(max-width:950px){
  .top-row{grid-template-columns:1fr auto}
  .top-row h1{grid-column:1}
  .top-controls{grid-column:1/-1;justify-content:flex-start}
  .maximize-button{grid-column:2;grid-row:1}
  .normal-layout{grid-template-columns:1fr}
}
@media print{
  .compact-header,.activity-panel,.status,.details,.maximized-shell{display:none !important}
  .normal-layout{display:block}
}


/* v0.16: v0.13 + endast högerställda toppkontroller */
.top-row{grid-template-columns:auto 1fr}
.top-right-controls{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:flex-end;
  min-width:0;
}
.top-controls{
  justify-content:flex-end;
  margin-left:auto;
}
@media(max-width:950px){
  .top-row{grid-template-columns:1fr}
  .top-right-controls{
    grid-column:1/-1;
    justify-content:flex-start;
    flex-wrap:wrap;
  }
  .top-controls{
    margin-left:0;
    justify-content:flex-start;
  }
}


/* v0.17 - Excelimport */
.import-dialog{
  width:min(760px,calc(100vw - 32px));
  max-height:calc(100vh - 32px);
  border:0;
  border-radius:14px;
  padding:0;
  box-shadow:0 18px 70px rgba(22,34,44,.25);
}
.import-dialog::backdrop{background:rgba(22,34,44,.38)}
.import-dialog-card{padding:18px;display:grid;gap:15px}
.import-dialog-head{display:flex;justify-content:space-between;gap:18px;align-items:start}
.import-dialog-head h2{font-size:20px;margin:0 0 3px}
.dialog-close{background:#eef2f4;color:var(--ink);font-size:20px;padding:4px 10px}
.import-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.import-stat{border:1px solid var(--border);border-radius:10px;padding:10px;background:#f7f9fa}
.import-stat strong{display:block;font-size:22px;color:var(--ink)}
.import-stat span{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.import-lists{display:grid;grid-template-columns:1fr 1fr;gap:14px;max-height:320px;overflow:auto}
.import-lists section{border:1px solid var(--border);border-radius:10px;padding:10px;background:#fff}
.import-lists h3{font-size:12px;margin:0 0 7px;color:var(--accent);text-transform:uppercase;letter-spacing:.05em}
.import-lists ul{margin:0;padding-left:20px;font-size:12px;line-height:1.45}
.import-lists li+li{margin-top:3px}
.import-lists .empty-message{color:var(--muted);list-style:none;margin-left:-20px}
.import-dialog-actions{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--border);padding-top:12px}
.dialog-secondary{background:#eef2f4;color:var(--ink)}
@media(max-width:680px){
  .import-summary{grid-template-columns:1fr 1fr}
  .import-lists{grid-template-columns:1fr}
}


/* v0.18 */
.view-settings[hidden],
.zoom-controls[hidden]{
  display:none !important;
}
.month-panel-resize-zone{
  fill:transparent;
  cursor:ew-resize;
}
.month-panel-resize-edge{
  stroke:#9aa7ae;
  stroke-width:1;
  opacity:.7;
  pointer-events:none;
}


/* v0.19 */
.actions-only-row{padding:6px 10px}
.side-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
  padding:3px;
  margin-bottom:10px;
  background:#eef2f4;
  border-radius:9px;
}
.side-tab{
  background:transparent;
  color:var(--ink);
  padding:7px 8px;
  border-radius:7px;
}
.side-tab.active{
  background:#fff;
  color:var(--accent);
  box-shadow:0 1px 3px rgba(0,0,0,.08);
}
.side-tab-panel[hidden]{display:none !important}
.side-settings-group{
  display:grid;
  gap:10px;
  padding:10px 0 14px;
  border-bottom:1px solid var(--border);
}
.side-settings-group[hidden]{display:none !important}
.side-settings-group h3{
  margin:0;
  font-size:13px;
  color:var(--accent);
}
.side-settings-group label{
  display:grid;
  gap:4px;
  font-size:11px;
  font-weight:700;
  color:var(--muted);
}
.side-settings-group select{
  width:100%;
  padding:7px 8px;
  border:1px solid var(--border);
  border-radius:7px;
  background:#fff;
}
.setting-inline{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
}
.setting-inline input[type=range]{width:100%}
.setting-inline span{font-size:10px;color:var(--muted);min-width:42px;text-align:right}
.month-item-separator{
  stroke:#66737b;
  stroke-width:.8;
  opacity:.7;
  pointer-events:none;
}
.center-design-box{
  fill:rgba(255,255,255,.32);
  stroke:#9eabb2;
  stroke-width:1;
  stroke-dasharray:5 4;
}
.center-design-head{
  fill:#dfe4e7;
  opacity:.88;
  cursor:grab;
}
.center-design-head:active{cursor:grabbing}
.gantt-week-label{
  font-size:10px;
  font-weight:800;
  fill:#53616a;
  text-anchor:middle;
}
.gantt-month-label{
  font-size:12px;
  font-weight:800;
  fill:#263746;
  text-anchor:middle;
}
.gantt-row-label{
  font-size:11px;
  font-weight:700;
  fill:#20262b;
  dominant-baseline:middle;
}
.gantt-area-label{
  font-size:8px;
  fill:#6b7880;
  dominant-baseline:middle;
}
.gantt-grid{
  stroke:#cfd7dc;
  stroke-width:.8;
}
.gantt-month-line{
  stroke:#8b99a1;
  stroke-width:1.4;
}
.gantt-bar{
  stroke:#53616a;
  stroke-width:.65;
  rx:2;
}
.gantt-undated{
  stroke:#78858c;
  stroke-width:.7;
  stroke-dasharray:4 3;
}
@media print{
  .center-design-box,.center-design-head{display:none}
}


/* v0.20 */
.center-design-box{
  fill:rgba(255,255,255,.22);
}
.center-design-head{
  fill:#dfe4e7;
  opacity:.78;
}


/* v0.21 */
.center-box-resize-zone{
  fill:transparent;
  cursor:ew-resize;
}
.center-box-resize-edge{
  stroke:#8c989f;
  stroke-width:1;
  opacity:.8;
  pointer-events:none;
}
.gantt-row-label,
.gantt-bar,
.gantt-undated{
  cursor:pointer;
}
.gantt-page-outline{
  fill:#fff;
  stroke:#94a2aa;
  stroke-width:1.3;
  stroke-dasharray:8 6;
}
.gantt-page-title{
  font-size:25px;
  font-weight:800;
  fill:#263746;
}
.gantt-page-number{
  font-size:12px;
  font-weight:700;
  fill:#65717a;
  text-anchor:end;
}
.gantt-print-pages{display:none}

body.printing-gantt .normal-layout,
body.printing-gantt .compact-header,
body.printing-gantt .status,
body.printing-gantt .maximized-shell{
  display:none !important;
}

@media print{
  body.printing-gantt{
    width:auto !important;
    height:auto !important;
    overflow:visible !important;
  }
  body.printing-gantt .gantt-print-pages{
    display:block !important;
  }
  body.printing-gantt .gantt-print-page{
    display:block;
    width:297mm;
    height:210mm;
    margin:0;
    break-after:page;
    page-break-after:always;
  }
  body.printing-gantt .gantt-print-page:last-child{
    break-after:auto;
    page-break-after:auto;
  }
  body.printing-gantt .gantt-print-page svg{
    display:block;
    width:297mm !important;
    height:210mm !important;
  }
}


/* v0.22 — print layout corrections */
@media print{
  /* Month/ring: eliminate layout padding that otherwise shifts the A4 SVG down/right. */
  body:not(.printing-gantt),
  html:not(.printing-gantt){
    margin:0 !important;
    padding:0 !important;
    width:297mm !important;
    height:210mm !important;
    overflow:hidden !important;
  }

  body:not(.printing-gantt) .app,
  body:not(.printing-gantt) .app-v13,
  body:not(.printing-gantt) .normal-layout,
  body:not(.printing-gantt) .main-panel,
  body:not(.printing-gantt) .wheel-card,
  body:not(.printing-gantt) .wheel-wrap{
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    width:297mm !important;
    height:210mm !important;
    max-width:none !important;
    min-width:0 !important;
    overflow:hidden !important;
  }

  body:not(.printing-gantt) .normal-layout{
    display:block !important;
  }

  body:not(.printing-gantt) .main-panel{
    position:absolute !important;
    left:0 !important;
    top:0 !important;
  }

  body:not(.printing-gantt) #wheel{
    display:block !important;
    margin:0 !important;
    padding:0 !important;
    width:297mm !important;
    height:209.7mm !important; /* tiny rounding guard against a phantom second page */
    max-width:none !important;
    max-height:none !important;
    overflow:hidden !important;
    break-inside:avoid !important;
    page-break-inside:avoid !important;
  }

  /* Gantt: only the prepared print pages participate in print layout. */
  html.printing-gantt,
  body.printing-gantt{
    margin:0 !important;
    padding:0 !important;
    width:auto !important;
    height:auto !important;
    overflow:visible !important;
  }

  body.printing-gantt #appRoot{
    display:none !important;
  }

  body.printing-gantt .gantt-print-pages{
    display:block !important;
    margin:0 !important;
    padding:0 !important;
  }

  body.printing-gantt .gantt-print-page{
    box-sizing:border-box !important;
    width:297mm !important;
    height:209.7mm !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
    break-before:auto !important;
    page-break-before:auto !important;
  }

  body.printing-gantt .gantt-print-page svg{
    display:block !important;
    width:297mm !important;
    height:209.7mm !important;
    margin:0 !important;
    padding:0 !important;
  }
}


/* v0.23 — printer-safe title inset */
@media print{
  .print-title{
    padding-top:4mm !important;
    padding-left:5mm !important;
    box-sizing:border-box !important;
  }
}
