#office-calendar {
  --week-ink: #27271f;
  --week-forest: #285642;
  --week-line: #cbbd9e;
  color: var(--week-ink);
}
.ko-cal-heading, .ko-cal-controls, .ko-cal-sheet-heading,
.ko-cal-actions, .ko-cal-navigation, .ko-cal-form-actions, .ko-cal-confirm {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
}
.ko-cal-heading, .ko-cal-controls { justify-content: space-between; gap: .75rem 1rem; }
.ko-cal-heading { margin-bottom: 1rem; }
.ko-cal-heading h2 { font-size: clamp(1.8rem, 4vw, 2.65rem); }
.ko-cal-controls { justify-content: start; align-items: end; margin-bottom: .9rem; }
.ko-cal-actions img { object-fit: contain; }
.ko-cal-actions .button.primary, .ko-cal-form .button.primary {
  background: var(--week-forest);
  color: #fffcf3;
  border-color: #163e32;
  box-shadow: 0 2px 0 #163e32;
}
.ko-cal-actions .button.primary:hover, .ko-cal-form .button.primary:hover { background: #386852; }
.ko-cal-field { display: grid; gap: .22rem; color: #383328; font-size: .97rem; font-weight: 700; }
.ko-cal-controls select { max-width: 100%; width: min(22rem, 100%); }
.ko-cal-controls select, .ko-cal-controls input, .ko-cal-form select, .ko-cal-form input:not([type=checkbox]) {
  min-height: 44px;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  color: var(--week-ink);
  background: #fffdf7;
  border: 1px solid #827765;
  border-radius: .32rem;
  font: 400 1rem var(--body);
  padding: .5rem .7rem;
}
.ko-cal-controls > label { max-width: 100%; min-width: min(15rem,100%); }
.ko-cal-controls > .ko-cal-jump { min-width: 0; }
.ko-cal-navigation { gap: 0; margin-left: auto; }
.ko-cal-navigation button {
  height: 44px;
  background: #fffbef;
  border: 1px solid #938570;
  padding: 0 .75em;
  font: 700 1rem var(--body);
}
.ko-cal-navigation button:hover { background: #f1e9d2; }
.ko-cal-navigation .ko-cal-arrow { width: 44px; font: 600 1.6rem/1 Georgia, serif; padding: 0; }
.ko-cal-navigation button:first-child { border-radius: .45rem 0 0 .45rem; }
.ko-cal-navigation button:last-child { border-radius: 0 .45rem .45rem 0; }
.ko-cal-navigation button + button { border-left-width: 0; }
.ko-cal-status:not(:empty), .ko-cal-form-notice:not(:empty) { margin-block: .6rem; color: #51472f; }
.ko-cal-spread {
  overflow: clip;
  border: 1px solid #948166;
  border-radius: 7px 13px 10px 7px;
  background: #fffdf4;
  box-shadow: 0 3px 0 -1px #e1d0b4, 0 4px 0 -1px #a89370;
}
.ko-cal-sheet-heading {
  position: relative;
  gap: .9rem;
  padding: clamp(.85rem, 2.7vw, 1.65rem);
  color: #f9f4df;
  background: var(--week-forest);
  border-bottom: 4px double #e0d4a9;
}
.ko-cal-sheet-heading h3 { color: inherit; font-size: clamp(1.28rem, 3.22vw, 2.2rem); }
.ko-cal-stamp {
  display: inline-flex;
  align-items: center;
  border: 1px solid #daccab;
  border-radius: .2rem;
  padding: .35em .5em;
  color: #fff7d3;
  font: 700 clamp(.9rem,2vw,1.15rem)/1.2 ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .035em;
  white-space: nowrap;
}
.ko-cal-sheet-name { display: grid; gap: .2rem; min-width: 0; overflow-wrap: anywhere; }
.ko-cal-print-scope { color: #efe8d0; font-weight: 700; font-size: .92rem; }
.ko-cal-days { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.ko-cal-leaf { display: grid; align-content: start; padding: .15rem clamp(.8rem,2.3vw,1.65rem) .85rem; min-width: 0; }
.ko-cal-leaf:first-child {
  background: linear-gradient(to left,#e9dfc9 0,#fffaf0 9px,#fffdf4 24px);
  border-right: 1px solid #c7bba0;
}
.ko-cal-day {
  display: grid;
  grid-template-columns: minmax(78px, .28fr) minmax(0,1fr);
  align-content: start;
  gap: .55rem;
  min-height: 6.1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--week-line);
}
.ko-cal-day:last-child { border-bottom: none; }
.ko-cal-date { display: grid; grid-template-columns: auto 1fr; justify-items: start; align-content: start; align-items: baseline; gap: .12rem .3rem; }
.ko-cal-day-number {
  display: block;
  font: 800 clamp(1.7rem,3.2vw,2.4rem)/1 var(--display);
  letter-spacing: -.06em;
  grid-column: 1;
}
.ko-cal-date h4 { font: 700 1rem/1.2 var(--body); letter-spacing: 0; grid-row: 2; grid-column: 1 / -1; }
.ko-cal-add-day {
  justify-self: end;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-width: 32px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #506959;
  font: 700 1.25rem/1 var(--body);
}
.ko-cal-add-day:hover, .ko-cal-add-day:focus-visible { background: #e6efdf; border-color: #9db7a1; }
.ko-cal-now { grid-column: 1 / -1; grid-row: 3; padding: .1rem .38rem; background: #285642; color: #fffdf6; border-radius: .2rem; font: 700 .76rem/1.2 var(--body); }
.ko-cal-day-body { min-width: 0; padding-inline-start: .35rem; border-left: 1px solid #e7ddca; }
.ko-cal-event-list { list-style: none; margin: 0; padding: 0; }
.ko-cal-event { margin: 0; padding: 0 0 .32rem .35rem; overflow-wrap: anywhere; }
.ko-cal-event + .ko-cal-event { margin-top: .5rem; border-top: 1px dotted #c8baa3; padding-top: .35rem; }
.ko-cal-time { color: #315843; font: 700 .88rem/1.2 var(--body); display: block; font-variant-numeric: tabular-nums; }
.ko-cal-event-title { display: block; color: var(--week-ink); font: 700 1.03rem/1.25 var(--body); }
.ko-cal-edit { border: 0; background: none; padding: .18rem .15rem .18rem 0; text-decoration: underline; text-decoration-color: #c2b8a3; text-underline-offset: .17em; text-align: left; overflow-wrap: anywhere; max-width: 100%; min-height: 28px; }
.ko-cal-edit:hover { color: var(--week-forest); text-decoration-color: var(--week-forest); }
.ko-cal-place { display: block; font-size: .92rem; line-height: 1.25; color: #61594a; }
.ko-cal-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ko-cal-blank { height: 2.1rem; border-bottom: 1px dotted #dbd0be; margin: 0 .5rem; }
.ko-cal-editor { border: 1px solid #ab9a7d; background: #fff9e8; border-radius: 8px; padding: clamp(.8rem,2vw,1.4rem); margin-bottom: 1.1rem; }
.ko-cal-form { max-width: 40rem; }
.ko-cal-form h3 { font-size: 1.65rem; }
.ko-cal-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.ko-cal-all-day { min-height: 38px; display: flex; align-items: center; gap: .52rem; width: fit-content; font-size: 1rem; font-weight: 700; }
.ko-cal-all-day input { width: 1.1rem; height: 1.1rem; }
.ko-cal-form-actions { margin-top: .2rem; }
.ko-cal-delete { margin-left: auto; padding: .45rem 0; min-height: 42px; border: 0; background: none; color: #7f332a; text-decoration: underline; text-underline-offset: .18em; font-weight: 700; }
.ko-cal-confirm { padding: .8rem; border: 1px solid #ad7563; background: #fff2e7; border-radius: .35rem; font-size: 1rem; }
.ko-cal-confirm p { flex-basis: 100%; overflow-wrap: anywhere; }
@media (max-width: 740px) {
  .ko-cal-days { grid-template-columns: minmax(0,1fr); }
  .ko-cal-leaf, .ko-cal-leaf:first-child { border: 0; background: transparent; padding: 0 .88rem; }
  .ko-cal-leaf:first-child .ko-cal-day:last-child { border-bottom: 1px solid var(--week-line); }
  .ko-cal-day { min-height: 5rem; grid-template-columns: minmax(75px, .25fr) minmax(0,1fr); }
}
@media (max-width: 480px) {
  .ko-cal-controls { align-items: end; gap: .5rem; }
  .ko-cal-controls > label { flex: 1 1 9rem; min-width: 0; }
  .ko-cal-navigation { margin-left: 0; }
  .ko-cal-heading { align-items: start; }
  .ko-cal-actions { width: 100%; }
  .ko-cal-pair { grid-template-columns: minmax(0,1fr); }
  .ko-cal-sheet-heading { align-items: start; }
  .ko-cal-day-number { font-size: 1.8rem; }
  .ko-cal-add-day { width: 34px; height: 38px; }
  .ko-cal-leaf { padding-inline: .68rem; }
}

@media print {
  #kontoret-print-root .ko-week-print {
    color: #222;
    background: #fff;
    width: 100%;
    font: 10pt/1.28 Arial,sans-serif;
    overflow-wrap: anywhere;
  }
  .ko-week-print table { width: 100%; table-layout: fixed; border-collapse: collapse; }
  .ko-week-print thead { display: table-header-group; }
  .ko-week-print th, .ko-week-print td { vertical-align: top; text-align: left; padding: 0; }
  .ko-week-print th[scope='row'] { font-weight: 400; }
  .ko-week-print-head { padding: 1mm 0 4mm; position: relative; min-height: 29mm; padding-right: 27mm; }
  .ko-week-print-head .ko-week-mark { position: absolute; top: 2mm; right: 1mm; object-fit: contain; width: 22mm; height: 22mm; }
  .ko-week-company { font-weight: 700; font-size: 11pt; border-bottom: .4mm solid #333; padding-bottom: 1.5mm; }
  .ko-week-print-head h1 { margin: 2mm 0; color: #222; font: 800 32pt/1.04 'Kontoret Fraunces',Georgia,serif; }
  .ko-week-subtitle { display: flex; align-items: baseline; gap: 3mm; font-size: 14pt; }
  .ko-week-subtitle strong { font: bold 12pt/1.1 ui-monospace,monospace; }
  .ko-week-audience { margin: 1mm 0 0; font-weight: 700; font-size: 10pt; }
  .ko-week-print .ko-week-cols th { padding: 2mm 1.5mm; border-block: .45mm solid #555; font-size: 10pt; }
  .ko-week-print tr { break-inside: avoid; }
  .ko-week-print .ko-week-day, .ko-week-print .ko-week-appointment, .ko-week-print .ko-week-handover {
    padding: 2.5mm 1.5mm;
    border-bottom: .2mm solid #a29c91;
  }
  .ko-week-print .ko-week-day { border-right: .2mm dotted #aaa; }
  .ko-week-print .ko-week-day strong, .ko-week-print .ko-week-day span, .ko-week-print .ko-week-appointment > * { display: block; }
  .ko-week-print .ko-week-day strong { font-size: 12pt; }
  .ko-week-time { font-size: 9.5pt; }
  .ko-week-appointment strong { font-size: 11pt; }
  .ko-week-location { margin-top: .8mm; font-size: 10pt; }
  .ko-week-print .ko-week-handover { border-left: .2mm dotted #aaa; }
  .ko-week-start-row { height: 24mm; }
  .ko-week-extra-row { height: 13mm; }
  .ko-week-extra-row .ko-week-day { font-size: 9pt; }
  .ko-week-writing-line { height: 8mm; border-bottom: .18mm dotted #aaa; }
  .ko-week-memo { break-inside: avoid; margin-top: 4mm; padding: 2mm 0; }
  .ko-week-memo span { display: block; height: 7mm; border-bottom: .2mm solid #aaa; }
}
