#app #opening-form .opening-row{display:grid;grid-template-columns:minmax(150px,1.2fr) minmax(110px,1fr) minmax(110px,1fr) auto;align-items:end;gap:12px;}
#app #opening-form .opening-row>span,#app #opening-form .opening-row>label{min-width:0;width:auto;max-width:100%;margin:0;}
#app #opening-form .opening-row>label:not(.check-row),#app #opening-form .opening-row>span>label{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;margin:0;}
#app #opening-form .opening-row input:not([type=checkbox]),#app #opening-form .opening-row select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:44px;min-height:44px;max-height:44px;margin:0;flex:0 0 44px;}
#app #opening-form .opening-row input::-webkit-date-and-time-value{min-width:0;text-align:left;}
#app #opening-form .opening-row>[data-opening-remove]{min-height:44px;margin:0;}
#app #opening-form .opening-row:has([name=closed]){grid-template-columns:minmax(150px,1.2fr) minmax(110px,1fr) minmax(110px,1fr) auto auto;}
@media(max-width:800px){
 #app #opening-form .opening-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;}
 #app #opening-form .opening-row>span{grid-column:1/-1;}
 #app #opening-form .opening-row:has([name=closed]){grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
 #app #opening-form .opening-row:has([name=closed])>[data-opening-remove]{justify-self:end;}
}

/* Identical HH:MM controls avoid different native time-field geometry on iOS. */
#app #opening-form .opening-row input:is([name=from],[name=to]){appearance:none;-webkit-appearance:none;align-self:stretch;line-height:20px;}
