/* Calendar geometry is independent of the padding used by data registers.
   Keep this in the workspace layer: its important rules outrank legacy skins. */
@layer werger-workspace {
@media screen {
body.werger-ui :is(.gpr-calendar,.gpr-summary-unified) {
  --gpr-line:#d6dee8;--gpr-paper:var(--ws-paper,var(--card));--gpr-soft:var(--ws-soft,var(--bg));
  --gpr-weekend:#f0f3f8;--gpr-name:310px;--gpr-lane:56px;--gpr-day:38px;
  color:var(--text);min-width:0;
}
body.werger-ui[data-theme="dark"] :is(.gpr-calendar,.gpr-summary-unified) {--gpr-line:#344154;--gpr-weekend:#222e40}
body.werger-ui :is(.gpr-calendar,.gpr-summary-unified) :is(.gpr-grid,.gpr-summary-unified-table) {
  width:100%!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important;
}
body.werger-ui .gpr-calendar .gpr-grid {min-width:calc(var(--gpr-name) + var(--gpr-lane) + var(--gpr-days)*var(--gpr-day))!important}
body.werger-ui .gpr-summary-unified .gpr-summary-unified-table {min-width:calc(var(--gprs-name) + var(--gprs-lane) + var(--gprs-days)*var(--gprs-day))!important}
body.werger-ui .gpr-calendar-name-col {width:var(--gpr-name)}
body.werger-ui .gpr-calendar-lane-col {width:var(--gpr-lane)}
body.werger-ui .gpr-summary-name-col {width:var(--gprs-name)}
body.werger-ui .gpr-summary-lane-col {width:var(--gprs-lane)}
body.werger-ui:not([class*="printing-"]) :is(#gpr-modal-wrap,#view-container) :is(.gpr-grid,.gpr-summary-unified-table) :is(th,td) {
  box-sizing:border-box!important;padding:0!important;border:0!important;border-right:1px solid var(--gpr-line)!important;
  border-bottom:1px solid var(--gpr-line)!important;background:var(--gpr-paper)!important;
  color:var(--text)!important;font-size:11px!important;line-height:1.3!important;box-shadow:none!important;
  min-width:0!important;border-radius:0!important;vertical-align:middle!important;
}
body.werger-ui:not([class*="printing-"]) :is(#gpr-modal-wrap,#view-container) :is(.gpr-grid,.gpr-summary-unified-table) th {
  position:sticky!important;top:0!important;z-index:6!important;background:var(--gpr-soft)!important;text-align:center!important;font-weight:600!important;
}
body.werger-ui:not([class*="printing-"]) :is(#gpr-modal-wrap,#view-container) :is(.gpr-grid,.gpr-summary-unified-table) .gpr-calendar-month {height:28px!important;min-height:28px!important;padding:4px 8px!important;letter-spacing:.02em;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis}
body.werger-ui:not([class*="printing-"]) :is(#gpr-modal-wrap,#view-container) .gpr-calendar-day-row th {top:28px!important;height:38px!important}
body.werger-ui :is(.gpr-grid,.gpr-summary-unified-table) .gpr-summary-day b {font-size:11px;line-height:1.2}
body.werger-ui :is(.gpr-grid,.gpr-summary-unified-table) .gpr-summary-day small {font-size:9px;line-height:1.2;margin-top:2px;color:var(--text-muted)}
body.werger-ui:not([class*="printing-"]) :is(#gpr-modal-wrap,#view-container) :is(.gpr-grid,.gpr-summary-unified-table) .weekend {background:var(--gpr-weekend)!important}
body.werger-ui:not([class*="printing-"]) :is(#gpr-modal-wrap,#view-container) :is(.gpr-grid,.gpr-summary-unified-table) .today {
  border-left:2px solid var(--primary)!important;border-top:0!important;
}
body.werger-ui .gpr-calendar .gpr-calendar-pair {height:44px}
body.werger-ui:not([class*="printing-"]) #gpr-modal-wrap .gpr-calendar .gpr-work-name {
  position:sticky;left:0;z-index:5!important;width:var(--gpr-name)!important;min-width:var(--gpr-name)!important;max-width:var(--gpr-name)!important;
  padding:10px 12px!important;text-align:left!important;background:var(--gpr-paper)!important;white-space:normal!important;
}
body.werger-ui:not([class*="printing-"]) #gpr-modal-wrap .gpr-calendar .gpr-calendar-lane {
  position:sticky;left:var(--gpr-name);z-index:5!important;width:var(--gpr-lane)!important;
  min-width:var(--gpr-lane)!important;max-width:var(--gpr-lane)!important;text-align:center!important;font-size:10px!important;font-weight:700!important;
}
body.werger-ui:not([class*="printing-"]) :is(#gpr-modal-wrap,#view-container) :is(.gpr-calendar-lane,.gpr-summary-lane).plan {color:#2563eb!important}
body.werger-ui:not([class*="printing-"]) :is(#gpr-modal-wrap,#view-container) :is(.gpr-calendar-lane,.gpr-summary-lane).fact {color:#059669!important}
body.werger-ui[data-theme="dark"]:not([class*="printing-"]) :is(#gpr-modal-wrap,#view-container) :is(.gpr-calendar-lane,.gpr-summary-lane).plan {color:#7aabff!important}
body.werger-ui[data-theme="dark"]:not([class*="printing-"]) :is(#gpr-modal-wrap,#view-container) :is(.gpr-calendar-lane,.gpr-summary-lane).fact {color:#40d7a1!important}
body.werger-ui:not([class*="printing-"]) #gpr-modal-wrap .gpr-calendar thead :is(.gpr-work-name,.gpr-calendar-lane),
body.werger-ui:not([class*="printing-"]) #view-container .gpr-summary-unified thead :is(.gpr-summary-project-name,.gpr-summary-lane) {
  z-index:9!important;background:var(--gpr-soft)!important;
}
body.werger-ui .gpr-calendar-work {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;font-size:11px}
body.werger-ui .gpr-calendar-work>b {font-size:12px;line-height:1.35;overflow-wrap:break-word}
body.werger-ui .gpr-calendar-work>span {font-size:10px;color:var(--text-muted);white-space:nowrap}
body.werger-ui .gpr-calendar-work>small {grid-column:1/-1;font-size:10px;color:var(--text-muted);line-height:1.35}
body.werger-ui:not([class*="printing-"]) #gpr-modal-wrap .gpr-calendar :is(.gpr-floor-row,.gpr-block-row)>td {height:32px!important;background:var(--gpr-soft)!important}
body.werger-ui:not([class*="printing-"]) #gpr-modal-wrap .gpr-calendar .gpr-calendar-group-name {
  position:sticky;left:0;z-index:5!important;text-align:left!important;padding:7px 12px!important;white-space:normal!important;
}
body.werger-ui .gpr-calendar-group-name small {margin-left:12px;font-size:10px;font-weight:400;color:var(--text-muted)}
body.werger-ui .gpr-calendar .gpr-block-row .gpr-calendar-group-name {padding-left:22px!important}
/* One time unit is always one complete horizontal segment, including single-day work. */
body.werger-ui .gpr-calendar .gpr-calendar-mark {display:block;width:100%!important;height:10px!important;min-height:10px;margin:0!important;border-radius:1px!important}
body.werger-ui .gpr-calendar {display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
body.werger-ui .gpr-calendar .gpr-grid-wrap {height:auto!important;max-height:none!important;flex:0 1 auto;min-height:0;overflow:auto;border:1px solid var(--gpr-line);border-radius:10px;scrollbar-gutter:stable}
body.werger-ui .gpr-calendar-toolbar {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px;flex:0 0 auto}
body.werger-ui .gpr-calendar-toolbar .gpr-legend {margin:0;padding:0;display:flex;gap:14px;flex-wrap:wrap}
body.werger-ui .gpr-calendar-toolbar>small,.gpr-calendar-help {font-size:11px;line-height:1.5;color:var(--text-muted)}
body.werger-ui .gpr-calendar-help {padding-top:10px;flex:0 0 auto}
body.werger-ui #gpr-modal-wrap .modal-box:has(.gpr-calendar) {height:auto!important;max-height:calc(100dvh - 24px)!important}
body.werger-ui #gpr-modal-body:has(>.gpr-calendar) {display:flex!important;flex-direction:column!important;flex:1 1 auto!important;overflow:hidden!important;min-height:0!important;padding:18px!important}
body.werger-ui #gpr-modal-wrap:has(.gpr-calendar) #gpr-modal-footer {display:none!important}
/* Keep the project overview on the same axis. Two rows still represent one project. */
body.werger-ui:not([class*="printing-"]) #view-container .gpr-summary-unified .gpr-summary-project-name {padding:10px 12px!important;background:var(--gpr-paper)!important}
body.werger-ui .gpr-summary-unified .gpr-summary-project-name b {font-size:12px;line-height:1.35}
body.werger-ui .gpr-summary-unified .gpr-summary-project-name small {font-size:10px;line-height:1.4}
body.werger-ui:not([class*="printing-"]) #view-container .gpr-summary-unified .gpr-summary-lane {font-size:10px!important;font-weight:700!important}
body.werger-ui:not([class*="printing-"]) #view-container .gpr-summary-unified .gpr-summary-project-pair td {height:34px!important}
body.werger-ui .gpr-summary-unified .gpr-summary-aggregate-mark {height:10px!important;min-height:10px;width:100%!important;margin:0!important;border-radius:1px;min-width:1px}
body.werger-ui .gpr-summary-unified .gpr-summary-aggregate-mark.multi:after {width:auto!important;height:auto!important;border-radius:0!important;background:transparent!important;font-size:8px;line-height:10px}
body.werger-ui .gpr-summary-unified .gpr-summary-aggregate-mark.fact.early {background:#f59e0b!important;color:#172033!important}
body.werger-ui .gpr-summary-unified .gpr-summary-unified-scroll {min-height:0!important;max-height:calc(100dvh - 290px);scrollbar-gutter:stable}
body.werger-ui .gpr-summary-unified-head {padding:12px!important;gap:12px!important;flex-wrap:wrap}
body.werger-ui .gpr-summary-unified-head>small {white-space:normal;line-height:1.4}
@media(max-width:900px){body.werger-ui .gpr-calendar {--gpr-name:235px;--gpr-day:32px}}
@media(max-width:600px){
  body.werger-ui .gpr-calendar {--gpr-name:142px;--gpr-lane:44px;--gpr-day:30px}
  body.werger-ui .gpr-summary-unified {--gprs-name:142px!important;--gprs-lane:44px!important}
  body.werger-ui #gpr-modal-body:has(>.gpr-calendar) {padding:10px!important}
  body.werger-ui:not([class*="printing-"]) #gpr-modal-wrap .gpr-calendar .gpr-work-name {padding:8px!important}
  body.werger-ui .gpr-calendar-work {grid-template-columns:minmax(0,1fr);gap:3px}
  body.werger-ui .gpr-calendar-work>small {font-size:9px}
  body.werger-ui .gpr-calendar-work>b {font-size:11px}
  body.werger-ui .gpr-calendar-work>span {font-size:9px}
  body.werger-ui .gpr-calendar .gpr-calendar-pair {height:50px}
  body.werger-ui .gpr-calendar-group-name small {display:block;margin:3px 0 0}
  body.werger-ui .gpr-summary-unified .gpr-summary-project-name b {font-size:11px}
  body.werger-ui .gpr-summary-unified .gpr-summary-project-name small {font-size:9px}
  body.werger-ui .gpr-calendar-toolbar .gpr-legend {gap:8px 12px;font-size:10px}
}
}
}
