/* A date box with its calendar button (app/static/datefield.js, George 2026-10-27): the box takes typed dates, the button
   opens the browser's date picker. Loaded by the portal, the console and the phone pages; each page's own colours, with
   plain ones where a page has none. */
.df { position: relative; display: inline-flex; align-items: stretch; gap: 4px; width: 100%; min-width: 9.5em; max-width: 100%; }
.df[hidden] { display: none !important; }
.df input.df-in[type] { flex: 1 1 auto; min-width: 0; width: 100%; }
.df-cal { flex: none; display: inline-grid; place-items: center; width: 34px; min-height: 32px; padding: 0;
          border: 1px solid var(--lb-edge, var(--edge, var(--line, #C9D5E4))); border-radius: 5px;
          background: var(--field, #FFFFFF); color: var(--ink, #0C1628); cursor: pointer; }
.df-cal:hover { border-color: var(--accent, var(--blue, #1C7BF5)); color: var(--accent, var(--blue, #1C7BF5)); }
.df-cal:focus-visible { outline: 3px solid var(--accent, var(--blue, #1C7BF5)); outline-offset: 2px; }
.df-cal:disabled { opacity: 0.45; cursor: default; }
.df input.df-pick[type] { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; padding: 0; margin: 0; border: 0; opacity: 0; pointer-events: none;
                 color-scheme: light; background: var(--field, #FFFFFF); color: var(--ink, #0C1628); font: inherit; }
:root[data-theme="dark"] .df input.df-pick[type] { color-scheme: dark; }
/* an older browser with no showPicker: the picker field itself, in place of the box */
.df.df-open .df-in { display: none; }
.df.df-open input.df-pick[type] { position: static; flex: 1 1 auto; height: auto; min-height: 32px; padding: 4px 6px;
                             border: 1px solid var(--lb-edge, var(--edge, var(--line, #C9D5E4))); border-radius: 5px; opacity: 1; pointer-events: auto; }
