/* Vertical office choice buttons in the original form's third column. */
.eelk-palvus {--ep-choice-accent:var(--blue,#315681);--ep-choice-line:var(--line,#d4d7dc)}
.ekt-palvused {--ep-choice-accent:var(--ekt-accent,#315681);--ep-choice-line:var(--ekt-line,#d4d7dc)}
:is(.eelk-palvus,.ekt-palvused) .ep-office-field{border:0;padding:0;margin:0;min-width:0}
:is(.eelk-palvus,.ekt-palvused) .ep-office-field legend{padding:0;font-size:14.4px;font-weight:600;line-height:inherit;color:inherit}
:is(.eelk-palvus,.ekt-palvused) .ep-office-field select[hidden]{display:none!important}
:is(.eelk-palvus,.ekt-palvused) .ep-office-buttons{display:flex;flex-direction:column;gap:6px;margin-top:6px}
:is(.eelk-palvus,.ekt-palvused) button.ep-office-button{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;text-align:left;min-height:44px;padding:10px 12px;border:1px solid var(--ep-choice-line);color:var(--ep-choice-accent);background:transparent}
:is(.eelk-palvus,.ekt-palvused) button.ep-office-button[aria-pressed="true"]{color:#fff;background:var(--ep-choice-accent);border-color:var(--ep-choice-accent)}
:is(.eelk-palvus,.ekt-palvused) button.ep-office-button[aria-pressed="true"]::after{content:"✓";flex:none;font-weight:700}
@media(max-width:640px){:is(.eelk-palvus,.ekt-palvused) .ep-fields>.ep-office-field{grid-column:1/-1}}

/* Keep date, time and actions beside the office choices on wider screens. */
@media(min-width:641px){
 :is(.eelk-palvus,.ekt-palvused) .ep-controls:has(.ep-office-field){display:grid;grid-template-columns:1fr 1fr 1.35fr;column-gap:16px;grid-template-rows:auto auto 1fr;align-items:start}
 :is(.eelk-palvus,.ekt-palvused) .ep-controls:has(.ep-office-field)>.ep-fields{display:contents}
 :is(.eelk-palvus,.ekt-palvused) .ep-fields>.ep-office-field{grid-column:3;grid-row:1/4}
 :is(.eelk-palvus,.ekt-palvused) .ep-controls:has(.ep-office-field)>.ep-options{grid-column:1/3;grid-row:2}
 :is(.eelk-palvus,.ekt-palvused) .ep-controls:has(.ep-office-field)>.ep-actions{grid-column:1/3;grid-row:3}
}
