/* Decision 111, note 3: the date box typed day/month/year (date-field.js), on the office's pages and the public ones. */
.dateField{position:relative;display:inline-block;vertical-align:middle;max-width:100%;direction:ltr;text-align:left}
/* In a form it takes its column, up to the width a date needs: on a wide line it stays by its label (at the start). */
.field .dateField,.formgrid .dateField,.detailgrid .dateField{display:block;max-width:22em}
.dateBox{position:relative;display:block}
.dateField .dateText{width:11.5em;max-width:100%;padding-right:38px;direction:ltr;text-align:left;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.field .dateField .dateText,.formgrid .dateField .dateText,.detailgrid .dateField .dateText{width:100%}
.dateField .dateText::placeholder{color:#a3b1b9;letter-spacing:.04em}
.dateField .dateText[aria-invalid="true"]{border-color:#d0606a;outline-color:#f0c2c6}
/* The real field: still there for the form and the browser's calendar, never seen nor reached. */
.dateBox>input[type=date]{position:absolute;inset:0;width:100%;height:100%;min-width:0;margin:0;padding:0;border:0;opacity:0;pointer-events:none}
.dateField .dateCalendar{position:absolute;top:50%;right:5px;transform:translateY(-50%);display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:6px;background:transparent;color:#6b7d89;line-height:0}
.dateField .dateCalendar:hover{background:#edf5f4;color:#087f78}
.dateField .dateCalendar:disabled{opacity:.4;background:transparent}
.dateField .dateCalendar svg{width:18px;height:18px}
/* «DD MM YYYY» under the digits: each word over invisible digits as wide as the typed ones. */
.dateHint{display:block;padding:3px 0 0 13px;font-size:14px;line-height:1;white-space:nowrap;direction:ltr;text-align:left;user-select:none;pointer-events:none}
.dateShapes{display:inline-flex}
.dateSeg,.dateSlash{position:relative;color:transparent;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.dateSeg b{position:absolute;inset:0;font-size:10px;font-weight:600;line-height:14px;letter-spacing:.06em;color:#8a9ba5;text-align:center}
/* In a bar of filters the words hang under the box, so the box stays in line with the lists beside it. */
.dateField:not(.field .dateField,.formgrid .dateField,.detailgrid .dateField) .dateHint{position:absolute;top:100%;left:0}
.dateSpoken{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.workspace-page :is(.formgrid,.formflow,.detailgrid.cols3,.inlineform) .field .dateText{height:44px}
