.tri-cal-field {
  --cal-green:#196448;
  position:relative; display:block; width:100%; min-width:0; color:#183b32;
}
.tri-cal-field input[type=date] {
  display:block; box-sizing:border-box; width:100%; min-width:0; min-height:44px;
  margin:0; padding:10px 48px 10px 13px; line-height:1.4; font:inherit;
  color:#183b32; background:#fff; border:1px solid #c8dacf; border-radius:10px;
  -webkit-appearance:none; appearance:none; cursor:pointer;
}
.tri-cal-field input[type=date]::-webkit-calendar-picker-indicator {display:none;}
.tri-cal-field input[type=date]::-webkit-date-and-time-value {text-align:left;}
.tri-cal-field:focus-within input[type=date] {border-color:#438363;outline:2px solid #c1e0cf;outline-offset:1px;}
.tri-cal-field .tri-cal-trigger {
  position:absolute; inset:1px 1px 1px auto; display:grid; place-items:center; min-width:42px;
  padding:0; margin:0; width:42px; height:auto; min-height:0; border:0; border-radius:0 9px 9px 0;
  color:var(--cal-green); background:transparent; box-shadow:none; cursor:pointer;
}
.tri-cal-field .tri-cal-trigger:hover {background:#eff6f1;}
.tri-cal-field svg,.tri-cal-panel svg {width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.tri-cal-panel[hidden]{display:none!important;}
.tri-cal-panel {
  position:fixed; z-index:2147483000; box-sizing:border-box; width:min(344px,calc(100vw - 16px));
  max-height:calc(100vh - 16px); max-height:calc(100dvh - 16px); overflow:auto; overscroll-behavior:contain;
  padding:14px; color:#1e3d34; background:#fff; border:1px solid #cbded1; border-radius:18px;
  box-shadow:0 12px 40px rgba(21,61,43,.16),0 2px 6px rgba(21,61,43,.07);
  font-family:inherit; font-size:15px; line-height:1.35;
}
.tri-cal-panel button {
  display:inline-grid; place-items:center; width:auto; min-width:0; min-height:0; height:auto;
  box-sizing:border-box; margin:0; padding:0; color:inherit; background:transparent; border:0;
  border-radius:9px; box-shadow:none; text-align:center; font:inherit; letter-spacing:normal; cursor:pointer;
  -webkit-appearance:none; appearance:none;
}
.tri-cal-panel button:enabled:hover {background:#edf5ef;color:#16593f;}
.tri-cal-panel button:focus-visible,.tri-cal-trigger:focus-visible {outline:2px solid #338563;outline-offset:-2px;}
.tri-cal-panel button:disabled {color:#a6b4ad;cursor:default;opacity:.75;}
.tri-cal-panel .tc-head {display:flex;align-items:center;gap:4px;padding-bottom:10px;}
.tri-cal-panel .tc-title {display:inline-flex;align-items:center;gap:6px;margin-right:auto;padding:8px;font-size:16px;font-weight:700;}
.tri-cal-panel .tc-title::first-letter,.tri-cal-panel .tc-choice::first-letter {text-transform:uppercase;}
.tri-cal-panel .tc-title,.tri-cal-panel .tc-choice {text-transform:capitalize;}
.tri-cal-panel .tc-title svg {width:14px;height:14px;}
.tri-cal-panel .tc-arrow {width:36px;height:36px;border:1px solid #dbe7df;}
.tri-cal-panel .tc-grid {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;}
.tri-cal-panel .tc-week {padding:4px 0 7px;text-align:center;font-size:12px;font-weight:600;color:#526d60;}
.tri-cal-panel .tc-day {width:100%;height:38px;font-size:14px;font-variant-numeric:tabular-nums;}
.tri-cal-panel .tc-muted {color:#76887e;}
.tri-cal-panel .tc-day[aria-current=date] {box-shadow:inset 0 0 0 1px #6a9c81;}
.tri-cal-panel .tc-day[aria-pressed=true],.tri-cal-panel .tc-day[aria-pressed=true]:hover,.tri-cal-panel .tc-current {color:#fff;background:#236548;font-weight:700;}
.tri-cal-panel .tc-choices {grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;}
.tri-cal-panel .tc-choice {min-height:44px;}
.tri-cal-panel .tc-foot {display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e2eae4;margin-top:10px;padding-top:9px;}
.tri-cal-panel .tc-foot button {min-height:36px;padding:6px 12px;font-size:14px;font-weight:600;}
.tri-cal-panel .tc-today {color:#175c41;background:#e9f4ec;}
@media(pointer:coarse){
  .tri-cal-field .tri-cal-trigger {width:calc(100% - 2px);justify-items:end;padding-right:11px;border-radius:9px;background:transparent;}
  .tri-cal-field .tri-cal-trigger:hover {background:transparent;}
  .tri-cal-panel .tc-day,.tri-cal-panel .tc-arrow,.tri-cal-panel .tc-foot button {min-height:42px;}
}
@media(forced-colors:active){.tri-cal-panel .tc-day[aria-pressed=true]{outline:2px solid Highlight;}}
@media print {.tri-cal-panel,.tri-cal-trigger{display:none!important;}}
/* Shared form themes set important colors on every button. Retain the date states here. */
#tri-calendar-popup button {background:transparent!important;color:#223d32!important;box-shadow:none!important;}
#tri-calendar-popup .tc-day.tc-muted {color:#78867e!important;}
#tri-calendar-popup button:enabled:hover {background:#ebf5ee!important;}
#tri-calendar-popup .tc-day[aria-current=date] {box-shadow:inset 0 0 0 1px #4b8a68!important;}
#tri-calendar-popup .tc-day[aria-pressed=true],#tri-calendar-popup .tc-current {background:#236548!important;color:#fff!important;}
#tri-calendar-popup .tc-today {background:#e7f2ea!important;color:#175c41!important;}
#tri-calendar-popup button:disabled {color:#9aa9a0!important;}
.tri-cal-field .tri-cal-trigger {background:transparent!important;box-shadow:none!important;}
