/* One date/time chooser, shared by order fields, filters and drawers. */
input.dtp-input,.order-screen input.dtp-input,.drawer input.dtp-input,.v2-period input.dtp-input{cursor:pointer;padding-right:35px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23737b8d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center}
input.dtp-input::-webkit-calendar-picker-indicator{opacity:0;position:absolute;right:0;pointer-events:none}
.dtp-host{display:block;box-sizing:border-box;grid-column:1/-1;flex:1 1 100%;width:100%;min-width:0;max-width:100%}
.dtp-panel{--dtp-purple:#6035ef;--dtp-ink:#161b2c;--dtp-muted:#737b8d;--dtp-line:#e4e7ee;container:dtp/inline-size;display:block;box-sizing:border-box;width:100%;max-width:1050px;min-width:0;margin:11px 0;padding:15px 17px 12px;border:1px solid var(--dtp-line);border-radius:10px;background:#fff;color:var(--dtp-ink);font-family:inherit;font-size:14px;line-height:1.4;text-align:left;box-shadow:none;isolation:isolate;overflow:visible}
.dtp-panel *{box-sizing:border-box}
.dtp-panel button,.dtp-panel select,.dtp-panel input{font-family:inherit;letter-spacing:normal;box-shadow:none}
.dtp-panel button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:31px;margin:0;padding:6px 10px;border:1px solid #d9deea;border-radius:6px;background:#fff;color:var(--dtp-ink);font-size:13px;font-weight:400;line-height:1.25;text-align:center;text-decoration:none;cursor:pointer;white-space:normal}
.dtp-panel button:hover{border-color:#c1b4ee;background:#f8f6ff}
.dtp-panel button:focus-visible,.dtp-panel input:focus-visible,.dtp-panel select:focus-visible{outline:2px solid var(--dtp-purple);outline-offset:2px}
.dtp-panel :is(button,input,select):disabled{opacity:.5;cursor:wait}
.dtp-panel .dtp-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 15px;padding:0;border:0;background:transparent}
.dtp-panel .dtp-heading :is(h2,h3,h4){margin:0;padding:0;color:var(--dtp-ink);font-size:17px;line-height:1.3;font-weight:650;letter-spacing:-.01em}
.dtp-heading>span,.dtp-heading>small,.dtp-timezone{display:inline-flex;align-items:center;gap:7px;color:var(--dtp-muted);font-size:12px;font-weight:400;line-height:1.35;white-space:nowrap}
.dtp-heading svg,.dtp-timezone svg{width:16px;height:16px;flex:0 0 16px}
.dtp-body{display:grid;grid-template-columns:minmax(250px,300px) minmax(0,1fr);align-items:stretch;gap:22px;min-width:0}
.dtp-calendar{display:flex;flex-direction:column;min-width:0;padding-right:20px;border-right:1px solid var(--dtp-line)}
.dtp-calendar-head,.dtp-month-nav{display:flex;align-items:center;gap:7px;min-width:0;min-height:34px;margin-bottom:10px}
.dtp-month-title{display:flex;align-items:center;justify-content:center;gap:4px;flex:1 1 auto;min-width:0}
.dtp-panel .dtp-month-nav>button,.dtp-panel .dtp-calendar-head>button{flex:0 0 30px;width:30px;min-height:30px;padding:5px;border-color:#dce1eb;font-size:19px;line-height:1}
.dtp-panel :is(.dtp-month-nav,.dtp-calendar-head)>.dtp-month-label{display:block;flex:1 1 auto;width:auto;min-width:0;min-height:30px;margin:0;padding:3px 4px;border:0;border-radius:4px;background:#fff;color:var(--dtp-ink);font-size:15px;font-weight:600;line-height:1.3;text-align:center}
.dtp-panel :is(.dtp-month-nav,.dtp-calendar-head)>input{display:block;flex:0 0 65px;width:65px;min-width:0;min-height:30px;margin:0;padding:3px 4px;border:1px solid transparent;border-radius:4px;background:#fff;color:var(--dtp-ink);font-size:14px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
.dtp-panel :is(.dtp-month-nav,.dtp-calendar-head)>input:hover{border-color:#d9deea}
.dtp-panel .dtp-month-title>.dtp-month-label{display:block;flex:1 1 auto;width:auto;min-width:0;min-height:30px;margin:0;padding:3px 2px;border:0;border-radius:4px;background:#fff;color:var(--dtp-ink);font-size:15px;font-weight:600;line-height:1.3;text-align:center}
.dtp-panel .dtp-month-title>.dtp-year{display:block;flex:0 0 65px;width:65px;min-width:0;max-width:65px;min-height:30px;margin:0;padding:3px 4px;border:1px solid transparent;border-radius:4px;background:#fff;color:var(--dtp-ink);font-size:14px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}
.dtp-panel .dtp-month-title>.dtp-year:hover{border-color:#d9deea}
.dtp-weekdays,.dtp-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;min-width:0}
.dtp-weekdays{margin-bottom:4px}
.dtp-weekdays>span{display:grid;place-items:center;min-width:0;min-height:25px;color:var(--dtp-muted);font-size:12px;line-height:1;font-weight:400;text-align:center}
.dtp-panel .dtp-day{display:grid;place-items:center;width:100%;min-width:0;min-height:34px;height:34px;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--dtp-ink);font-size:14px;line-height:1;font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap}
.dtp-panel .dtp-day:hover{border-color:#d8cff8;background:#f5f1ff}
.dtp-panel .dtp-day.other-month{color:#adb2bf}
.dtp-panel .dtp-day.today:not(.start):not(.end):not([aria-selected=true]){border-color:#c3b4f2;font-weight:600}
.dtp-panel .dtp-day.in-range{border-color:transparent;background:#f0ebff;color:#4d2bb0}
.dtp-panel .dtp-day.start,.dtp-panel .dtp-day.end,.dtp-panel .dtp-day[aria-selected=true]{border-color:var(--dtp-purple);background:var(--dtp-purple);color:#fff;font-weight:600}
.dtp-panel .dtp-day.start.end{border-radius:6px}
.dtp-shortcuts{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0}
.dtp-calendar>.dtp-shortcuts{margin-top:auto;padding-top:12px}
.dtp-panel .dtp-shortcuts>button{min-height:29px;padding:5px 9px;font-size:12px}
.dtp-endpoints{display:flex;flex-direction:column;gap:10px;min-width:0}
.dtp-endpoint{display:flex;flex-direction:column;gap:7px;min-width:0;padding:10px 11px;border:1px solid #dce1eb;border-radius:9px;background:#fff}
.dtp-endpoint.active{border-color:#8f74f1;background:#fdfcff;box-shadow:0 0 0 1px #6035ef09}
.dtp-panel .dtp-endpoint-label{justify-content:flex-start;min-height:20px;width:fit-content;max-width:100%;padding:0;border:0;border-radius:3px;background:transparent;color:var(--dtp-ink);font-size:14px;line-height:1.35;font-weight:600;text-align:left}
.dtp-panel .dtp-endpoint-dot{display:block;flex:0 0 12px;width:12px;height:12px;border:1px solid #bdc5d6;border-radius:50%;background:#fff}
.dtp-panel .dtp-endpoint.active .dtp-endpoint-dot{border:4px solid var(--dtp-purple)}
.dtp-endpoint-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.dtp-panel .dtp-endpoint-date{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;flex:1 1 150px;min-width:0;min-height:37px;padding:7px 9px;border:1px solid #d4dae6;border-radius:6px;background:#fff;color:var(--dtp-ink);font-size:13px;line-height:1.3;font-weight:400;text-align:left;font-variant-numeric:tabular-nums;overflow-wrap:normal}
.dtp-endpoint-date svg{width:16px;height:16px;flex:0 0 16px;color:#697386}
.dtp-clock{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;min-width:0;max-width:100%;font-variant-numeric:tabular-nums}
.dtp-clock>label{display:block;min-width:0;margin:0;padding:0}
.dtp-panel .dtp-clock input{display:block;box-sizing:border-box;width:49px;min-width:49px;max-width:49px;height:39px;min-height:39px;margin:0;padding:5px 3px;border:1px solid #cfd6e4;border-radius:6px;background:#fff;color:var(--dtp-ink);font-family:inherit;font-size:21px;line-height:1.2;font-weight:650;text-align:center;letter-spacing:-.025em;font-variant-numeric:tabular-nums;appearance:textfield}
.dtp-clock input::-webkit-inner-spin-button,.dtp-clock input::-webkit-outer-spin-button{appearance:none;margin:0}
.dtp-clock>span,.dtp-clock>strong{color:#737b8d;font-size:19px;line-height:1;font-weight:400}
/* A clock remains compact; its choices expand in the same endpoint card. */
.dtp-clock-field{display:inline-flex;align-items:stretch;flex:0 0 66px;width:66px;min-width:66px;max-width:66px;height:39px;border:1px solid #cfd6e4;border-radius:6px;background:#fff;overflow:visible}
.dtp-panel .dtp-clock .dtp-clock-field>input{flex:1 1 auto;width:44px;min-width:0;max-width:44px;height:37px;min-height:37px;padding:4px 1px 4px 4px;border:0;border-radius:5px 0 0 5px;background:transparent;color:var(--dtp-ink);font-size:21px;line-height:1.2;font-weight:650;text-align:center;letter-spacing:-.025em;box-shadow:none;outline:none}
.dtp-panel .dtp-clock .dtp-clock-field>input:is(:hover,:focus,:focus-visible){border:0;background:transparent;box-shadow:none;outline:none}
.dtp-panel button.dtp-clock-open{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;min-width:20px;max-width:20px;height:37px;min-height:37px;padding:0;border:0;border-radius:0 5px 5px 0;background:transparent;color:#737b8d;font-size:12px;line-height:1}
.dtp-panel button.dtp-clock-open:hover{background:#f4f0ff;color:var(--dtp-purple)}
.dtp-clock-field:focus-within,.dtp-clock-field.active{border-color:var(--dtp-purple);box-shadow:0 0 0 2px #6035ef12}
.dtp-time-selection{container:dtp-time/inline-size;display:block;box-sizing:border-box;min-width:0;width:100%;margin-top:2px;padding:11px 12px;border:1px solid #dce1eb;border-radius:8px;background:#fafbfe;color:var(--dtp-ink)}
.dtp-time-selection-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;margin:0 0 9px;color:var(--dtp-muted);font-size:12px;line-height:1.4;font-weight:400}
.dtp-time-selection-heading>span{flex:1;min-width:0}
.dtp-panel .dtp-time-selection-heading>button{flex:0 0 auto;min-width:24px;min-height:24px;padding:2px 5px;border:0;background:transparent;color:#737b8d;font-size:13px;line-height:1.2;white-space:nowrap}
.dtp-panel .dtp-time-selection-heading>button:hover{background:#f0ecfa;color:var(--dtp-purple)}
.dtp-time-grids{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:start;gap:14px;min-width:0}
.dtp-hour-picker,.dtp-minute-picker{display:block;min-width:0}
.dtp-minute-picker{padding-left:14px;border-left:1px solid var(--dtp-line)}
.dtp-panel .dtp-time-grids h4{margin:0 0 8px;padding:0;color:var(--dtp-ink);font-size:13px;line-height:1.3;font-weight:600}
.dtp-panel .dtp-time-grids>.active h4{color:var(--dtp-purple)}
.dtp-hour-grid,.dtp-minute-grid{display:grid;min-width:0;gap:5px}
.dtp-hour-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.dtp-minute-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.dtp-minute-grid.all-minutes{grid-template-columns:repeat(10,minmax(0,1fr));gap:4px}
.dtp-panel button.dtp-time-option{display:grid;place-items:center;min-width:0;width:100%;min-height:34px;margin:0;padding:6px 2px;border:1px solid #d9deea;border-radius:6px;background:#fff;color:var(--dtp-ink);font-size:14px;line-height:1;font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap;word-break:normal;overflow-wrap:normal}
.dtp-panel button.dtp-time-option:hover{border-color:#bca9ef;background:#f4efff}
.dtp-panel button.dtp-time-option.selected,.dtp-panel button.dtp-time-option[aria-selected=true],.dtp-panel button.dtp-time-option[aria-pressed=true]{border-color:var(--dtp-purple);background:var(--dtp-purple);color:#fff;font-weight:600}
.dtp-panel button.dtp-all-minutes{width:100%;min-width:0;min-height:30px;gap:6px;margin-top:9px;padding:5px 8px;border:1px solid #d9deea;border-radius:6px;background:#fff;color:#596174;font-size:12px;line-height:1.3;font-weight:400}
.dtp-panel button.dtp-all-minutes:hover{border-color:#bca9ef;background:#f5f1ff;color:var(--dtp-purple)}
.dtp-adjust,.dtp-step{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;min-width:0}
.dtp-panel :is(.dtp-adjust,.dtp-step)>button{min-height:31px;padding:6px 7px;font-size:11px;line-height:1.2;white-space:nowrap}
.dtp-endpoints>.dtp-shortcuts{padding-top:1px}
.dtp-panel .dtp-range-shortcuts small{color:var(--dtp-muted);font-size:10px;font-weight:400;white-space:nowrap}
.dtp-panel button.dtp-clear{align-self:flex-start;min-height:22px;padding:0 2px;border:0;background:transparent;color:var(--dtp-muted);font-size:11px;line-height:1.35}
.dtp-panel button.dtp-clear:hover{color:var(--dtp-purple);background:#f8f6ff}
.dtp-duration{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0;margin-top:auto;padding-top:3px;color:#596174;font-size:13px;line-height:1.4}
.dtp-duration-buttons{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
.dtp-panel .dtp-duration button{min-height:29px;padding:5px 9px;font-size:12px}
.dtp-panel .dtp-duration button.active,.dtp-panel .dtp-duration button[aria-pressed=true]{border-color:#bba7f7;background:#f1ecff;color:#5129bf}
.dtp-duration>span,.dtp-duration>strong,.dtp-duration-summary{display:inline-flex;align-items:center;gap:6px;min-width:0;margin-left:5px;padding-left:11px;border-left:1px solid var(--dtp-line);color:#596174;font-size:13px;line-height:1.4;font-weight:400;white-space:normal}
.dtp-duration svg{width:16px;height:16px;flex:0 0 16px}
.dtp-duration strong{color:var(--dtp-ink);font-weight:600}
.dtp-error{display:block;min-width:0;margin:11px 0 0;padding:8px 10px;border:1px solid #edcfc7;border-radius:6px;background:#fff7f3;color:#a24b36;font-size:12px;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
.dtp-error:empty,.dtp-panel [hidden]{display:none!important}
.dtp-footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;min-width:0;margin-top:15px;padding-top:12px;border-top:1px solid var(--dtp-line)}
.dtp-footer>small,.dtp-footer>.dtp-keyboard-hint{flex:1 1 auto;margin-right:auto;color:var(--dtp-muted);font-size:11px;line-height:1.4;font-weight:400}
.dtp-footer>div{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;min-width:0}
.dtp-footer button{min-height:33px;padding:7px 13px;font-size:13px;font-weight:500}
.dtp-panel .dtp-footer button[data-dtp-action=apply],.dtp-panel .dtp-footer button.dtp-apply,.dtp-panel .dtp-footer button.dtp-primary,.dtp-panel .dtp-footer button.primary{border-color:var(--dtp-purple);background:var(--dtp-purple);color:#fff}
.dtp-panel .dtp-footer button[data-dtp-action=apply]:hover,.dtp-panel .dtp-footer button.dtp-apply:hover{border-color:#5128d5;background:#5128d5}
.dtp-panel[aria-busy=true]{cursor:wait}
.dtp-panel[aria-busy=true] :is(input,select,button){pointer-events:none}
.dtp-date-only .dtp-clock,.dtp-date-only .dtp-adjust,.dtp-date-only .dtp-step{display:none}
.dtp-date-only .dtp-endpoint-date{flex-basis:100%}
.dtp-time-only .dtp-body{display:block}
.dtp-time-only .dtp-calendar{display:none}
.dtp-time-only .dtp-endpoint-controls{justify-content:flex-start}
/* Direct time editors share this footer; other forms keep their own Save action. */
.order-screen .co-inline-editor.dtp-direct{max-width:1050px;margin:0;padding:0;border:0;background:transparent;gap:0;container:none}
.order-screen .co-inline-editor.dtp-direct>.co-inline-heading,.order-screen .co-inline-editor.dtp-direct>.co-inline-hint,.order-screen .co-inline-editor.dtp-direct>.co-inline-actions,.dtp-direct .dtp-source{display:none!important}
.order-screen .co-inline-editor.dtp-direct>.co-inline-actions:has([data-action=inline-reload]){display:flex!important;padding-top:9px}
.order-screen .co-inline-editor.dtp-direct>.co-inline-actions:has([data-action=inline-reload])>:not([data-action=inline-reload]){display:none!important}
.order-screen .co-inline-editor.dtp-direct>.co-inline-fields,.co-inline-fields:has(>.dtp-panel){display:block;min-width:0}
.order-screen .co-inline-editor.dtp-direct .dtp-panel{width:100%;max-width:none;margin:0}
.order-screen .co-inline-header-editor>.co-inline-editor.dtp-direct[data-inline-key=event]{max-width:1050px;margin:0;padding:0;gap:0}
.order-screen .co-inline-editor.dtp-direct>.co-inline-error{margin-top:10px}
.form-grid>.dtp-panel,.form-grid>.dtp-host{grid-column:1/-1}
.v2-period:has(>.dtp-host),.table-tools:has(>.dtp-host){flex-wrap:wrap}
.drawer .dtp-panel{max-width:none;margin:8px 0}
@container dtp (max-width:760px){
 .dtp-body{grid-template-columns:minmax(0,1fr);gap:15px}
 .dtp-calendar{max-width:340px;width:100%;justify-self:center;padding:0;border:0}
 .dtp-calendar>.dtp-shortcuts{padding-top:10px}
 .dtp-endpoints{padding-top:13px;border-top:1px solid var(--dtp-line)}
 .dtp-endpoint-controls{gap:8px}
 .dtp-panel .dtp-endpoint-date{flex-basis:170px}
 .dtp-footer{margin-top:13px}
}
@container dtp (max-width:430px){
 .dtp-heading{align-items:flex-start;gap:8px}
 .dtp-panel .dtp-heading :is(h2,h3,h4){font-size:16px}
 .dtp-heading>span,.dtp-heading>small,.dtp-timezone{font-size:11px;gap:5px}
 .dtp-endpoint{padding:10px;gap:8px}
 .dtp-panel .dtp-endpoint-date{flex:1 1 100%;width:100%}
 .dtp-clock input{width:49px;min-width:49px;max-width:49px}
 .dtp-adjust,.dtp-step{margin-left:auto}
 .dtp-duration>span,.dtp-duration>strong,.dtp-duration-summary{flex:1 1 100%;margin:3px 0 0;padding:0;border:0}
 .dtp-footer>small,.dtp-footer>.dtp-keyboard-hint{flex:1 1 100%;margin:0 0 3px}
 .dtp-footer>div{flex:1 1 100%}
 .dtp-footer button{flex:1 1 auto}
}
@container dtp-time (max-width:700px){
 .dtp-time-grids:has(.dtp-minute-grid.all-minutes){grid-template-columns:minmax(0,1fr);gap:12px}
 .dtp-time-grids:has(.dtp-minute-grid.all-minutes) .dtp-hour-grid{max-width:420px}
 .dtp-time-grids:has(.dtp-minute-grid.all-minutes) .dtp-minute-picker{padding:11px 0 0;border-left:0;border-top:1px solid var(--dtp-line)}
}
@container dtp-time (max-width:580px){
 .dtp-time-grids{grid-template-columns:minmax(0,1fr);gap:12px}
 .dtp-hour-grid{max-width:420px}
 .dtp-minute-picker{padding:11px 0 0;border-left:0;border-top:1px solid var(--dtp-line)}
}
@container dtp-time (max-width:430px){
 .dtp-time-selection-heading{font-size:11px}
 .dtp-hour-grid,.dtp-minute-grid,.dtp-minute-grid.all-minutes{gap:4px}
 .dtp-minute-grid.all-minutes{grid-template-columns:repeat(6,minmax(0,1fr))}
 .dtp-panel button.dtp-time-option{min-height:35px;font-size:14px}
}
@media(max-width:740px){
 .dtp-panel{padding:12px;margin-block:9px}
 .dtp-panel .dtp-heading{margin-bottom:12px}
 .dtp-panel input,.dtp-panel select{font-size:16px}
 .dtp-panel .dtp-clock input{font-size:22px}
 .dtp-panel :is(.dtp-month-nav,.dtp-calendar-head)>.dtp-month-label,.dtp-panel :is(.dtp-month-nav,.dtp-calendar-head)>input,.dtp-panel .dtp-month-title>.dtp-month-label,.dtp-panel .dtp-month-title>.dtp-year{font-size:16px}
 .dtp-panel .dtp-day{font-size:14px;min-height:35px;height:35px}
 .dtp-panel .dtp-footer button{min-height:36px}
}
/* The compact picker floats above its order fields without reserving form space. */
.dtp-host.dtp-floating {
  position: fixed;
  inset: auto;
  z-index: 80;
  width: min(328px, calc(100vw - 16px));
  max-width: none;
  max-height: calc(100dvh - 16px);
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #cdd7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(35, 40, 90, .19), 0 2px 6px rgba(48, 42, 96, .08);
}
.dtp-floating > .dtp-panel.dtp-compact {
  --dtp-purple: var(--crm-indigo, #5145e5);
  --dtp-ink: var(--crm-ink, #142033);
  --dtp-muted: var(--crm-muted, #596780);
  --dtp-line: #e1e7f4;
  --dtp-compact-action-height: 30px;
  container: none;
  max-width: none;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  background: linear-gradient(145deg,#f7f6ff,#fff 46%,#f9fcff);
  font-family: var(--crm-font, Inter, "Segoe UI", system-ui, sans-serif);
  font-size: 13px;
}
.dtp-compact .dtp-heading {
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 8px;
  min-height: 24px;
  margin: 0 0 5px;
}
.dtp-compact .dtp-heading h3 {
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 720;
}
.dtp-compact .dtp-heading > span { font-size: 11px; }
.dtp-compact .dtp-compact-endpoints {
  display: flex;
  gap: 4px;
  margin: 0 0 5px;
  min-width: 0;
}
.dtp-compact .dtp-compact-endpoint {
  display: grid;
  flex: 1 1 0;
  justify-content: stretch;
  gap: 0;
  padding: 3px 7px;
  min-height: 32px;
  border-color: #dde4f2;
  background: #fff;
  text-align: left;
}
.dtp-compact .dtp-compact-endpoint strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 670;
}
.dtp-compact .dtp-compact-endpoint small {
  color: var(--dtp-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.dtp-compact .dtp-compact-endpoint:is(.active,[aria-pressed=true],[aria-selected=true]) {
  border-color: #bcb1f5;
  background: linear-gradient(110deg,#eee9ff,#f1f7ff);
  color: #382994;
}
.dtp-compact .dtp-compact-switch {
  display: flex;
  width: fit-content;
  gap: 2px;
  padding: 2px;
  border: 1px solid #e1e4f3;
  border-radius: 7px;
  background: #f1f3fb;
}
.dtp-compact > .dtp-compact-switch { margin-bottom: 5px; }
.dtp-compact .dtp-compact-switch > button {
  min-height: 24px;
  padding: 2px 8px;
  border: 0;
  background: transparent;
  color: #414c6e;
  font-size: 12px;
  font-weight: 650;
}
.dtp-compact .dtp-compact-switch > button:is(.active,[aria-pressed=true],[aria-selected=true]) {
  background: var(--crm-gradient, linear-gradient(115deg,#5145e5,#673fea 55%,#7c3aed));
  color: #fff;
}
.dtp-compact .dtp-compact-calendar .dtp-calendar {
  width: 100%;
  padding: 0;
  border: 0;
}
.dtp-compact .dtp-month-nav {
  gap: 5px;
  min-height: 27px;
  margin-bottom: 2px;
}
.dtp-compact .dtp-month-nav > button {
  flex-basis: 28px;
  width: 28px;
  min-height: 28px;
  padding: 3px 4px;
}
.dtp-compact .dtp-month-title > :is(.dtp-month-label,.dtp-year) {
  min-height: 28px;
  font-size: 14px;
}
.dtp-compact .dtp-weekdays,.dtp-compact .dtp-days { gap: 1px; }
.dtp-compact .dtp-weekdays { margin-bottom: 2px; }
.dtp-compact .dtp-weekdays > span { min-height: 17px; font-size: 11px; }
.dtp-compact button.dtp-day {
  height: 24px;
  min-height: 24px;
  font-size: 13px;
}
.dtp-compact button.dtp-day.other-month:not(.start):not(.end):not(.in-range) { color: #64718c; }
.dtp-compact .dtp-calendar > .dtp-shortcuts {
  gap: 4px;
  padding-top: 4px;
}
.dtp-compact .dtp-range-shortcuts { gap: 4px; padding-top: 4px; }
.dtp-compact .dtp-compact-calendar:has(> .dtp-range-shortcuts) {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  column-gap: 4px;
}
.dtp-compact-calendar:has(> .dtp-range-shortcuts) > .dtp-calendar { display: contents; }
.dtp-compact-calendar:has(> .dtp-range-shortcuts) :is(.dtp-month-nav,.dtp-weekdays,.dtp-days) { grid-column: 1/-1; }
.dtp-compact .dtp-shortcuts > button {
  min-height: 26px;
  padding: 3px 7px;
}
.dtp-compact .dtp-compact-clock {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 0;
  padding: 5px 0;
}
.dtp-compact .dtp-clock-field {
  flex-basis: 56px;
  width: 56px;
  min-width: 56px;
  max-width: 56px;
  height: 36px;
}
.dtp-compact .dtp-clock .dtp-clock-field > input {
  width: 34px;
  max-width: 34px;
  height: 34px;
  min-height: 34px;
  font-size: 18px;
}
.dtp-compact button.dtp-clock-open { height: 34px; min-height: 34px; }
.dtp-compact .dtp-adjust { margin-left: 0; gap: 4px; }
.dtp-compact .dtp-time-selection {
  position: relative;
  margin: 0;
  padding: 7px 8px;
}
.dtp-compact .dtp-time-grids {
  grid-template-columns: minmax(0,1fr);
  gap: 6px;
}
.dtp-compact .dtp-time-grids > :not(.active) { display: none; }
.dtp-compact .dtp-time-grids .dtp-minute-picker,
.dtp-compact .dtp-time-grids:has(.dtp-minute-grid.all-minutes) .dtp-minute-picker { padding: 0; border: 0; }
.dtp-compact .dtp-time-grids h4 { margin-bottom: 6px; padding-right: 24px; }
.dtp-compact .dtp-time-selection-heading { position: absolute; top: 2px; right: 3px; margin: 0; }
.dtp-compact .dtp-time-selection-heading > span { display: none; }
.dtp-compact .dtp-hour-grid,
.dtp-compact .dtp-minute-grid,
.dtp-compact .dtp-minute-grid.all-minutes { gap: 3px; }
.dtp-compact .dtp-minute-grid.all-minutes { grid-template-columns: repeat(10,minmax(0,1fr)); }
.dtp-compact button.dtp-time-option { min-height: 28px; padding: 3px 0; font-size: 13px; }
.dtp-compact .dtp-minute-grid.all-minutes button.dtp-time-option { min-height: 24px; }
.dtp-compact button.dtp-all-minutes { min-height: 26px; margin-top: 5px; padding: 3px 5px; }
.dtp-compact .dtp-duration { padding: 0; font-size: 12px; }
.dtp-compact :is(.dtp-duration > span,.dtp-duration-summary) {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 12px;
}
.dtp-compact .dtp-duration-summary { flex-basis: 100%; }
.dtp-compact .dtp-error {
  position: sticky;
  bottom: calc(var(--dtp-compact-action-height) + 7px);
  z-index: 1;
  margin-top: 5px;
  padding: 5px 7px;
}
.dtp-compact :is(.dtp-footer,.dtp-compact-actions) {
  position: sticky;
  bottom: 0;
  z-index: 2;
  gap: 4px 6px;
  margin-top: 5px;
  padding-top: 5px;
  background: #fcfdff;
}
.dtp-compact :is(.dtp-footer,.dtp-compact-actions) > div { gap: 4px; }
.dtp-compact :is(.dtp-footer,.dtp-compact-actions) button { min-height: var(--dtp-compact-action-height); padding: 4px 8px; font-size: 12px; }
.dtp-compact :is(.dtp-footer,.dtp-compact-actions) .dtp-clear { margin-right: auto; padding-inline: 2px; }
.dtp-compact .dtp-footer button[data-dtp-action=apply] {
  border-color: transparent;
  background: var(--crm-gradient, linear-gradient(115deg,#5145e5,#673fea 55%,#7c3aed));
  color: #fff;
  font-weight: 650;
}
@media(max-width:350px) {
  .dtp-compact .dtp-shortcuts > button { padding-inline: 5px; font-size: 11px; }
}
@media(pointer:coarse) {
  .dtp-floating > .dtp-panel.dtp-compact { --dtp-compact-action-height: 36px; }
  .dtp-compact .dtp-month-title > :is(.dtp-month-label,.dtp-year) { font-size: 16px; }
  .dtp-compact button.dtp-day { height: 31px; min-height: 31px; }
  .dtp-compact button.dtp-time-option,
  .dtp-compact .dtp-minute-grid.all-minutes button.dtp-time-option { min-height: 30px; }
}
@media(prefers-reduced-motion:reduce){.dtp-panel *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.dtp-panel,.dtp-host{display:none!important}input.dtp-input{background-image:none}}
