/* Local-only, namespaced picker based on the user-provided card UI reference. */
.adp-root,
.adp-root * {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 768px) {
  html.adp-no-scroll,
  html.adp-no-scroll body {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
  }

  .ui-dialog.adp-legacy-bridge,
  #dateSelectDialog2.adp-legacy-bridge-content {
    display: none !important;
  }

  .adp-root[hidden] {
    display: none !important;
  }

  .adp-root {
    --adp-cyan: #08a7df;
    --adp-cyan-dark: #0494d0;
    --adp-navy: #293544;
    --adp-slate: #506079;
    --adp-muted: #91a0b5;
    --adp-line: #dce5ef;
    --adp-surface: #f5f8fb;
    --adp-cell: #f7f9fc;
    --adp-sunday: #ff174f;
    --adp-saturday: #1267f2;
    --adp-calendar-title-size: clamp(0.875rem, 3.9vw, 0.9375rem);
    --adp-calendar-weekday-size: clamp(0.75rem, 3.4vw, 0.8125rem);
    --adp-calendar-day-size: clamp(0.875rem, 4vw, 0.9375rem);
    --adp-calendar-title-height: clamp(1.75rem, 8vw, 1.875rem);
    --adp-calendar-weekday-height: clamp(1.5rem, 7.5vw, 1.75rem);
    --adp-calendar-day-height: clamp(2.5rem, 11.75vw, 2.75rem);
    --adp-calendar-button-height: clamp(2.25rem, 10.7vw, 2.5rem);
    --adp-summary-scale: clamp(0.9375rem, 4.2vw, 1rem);
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: max(4px, env(safe-area-inset-top, 0px)) 8px max(16px, env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    background: rgba(37, 49, 64, 0.68);
    color: var(--adp-navy);
    font-family: "Noto Sans KR", "Nanum Barun Gothic", Arial, sans-serif;
  }

  .adp-dialog {
    position: relative;
    display: grid;
    grid-template-rows: 64px minmax(0, 1fr) 56px;
    width: min(100%, 360px);
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #93a3b6;
    border-radius: 0;
    background: var(--adp-surface);
    box-shadow: 0 5px 0 rgba(24, 37, 51, 0.42);
  }

  .adp-title,
  .adp-instruction,
  .adp-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
  }

  .adp-status-copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 100%;
  }

  .adp-selection-header {
    width: 100%;
    height: 64px;
    margin: 0;
    padding: 8px 8px 0;
    background: var(--adp-surface);
  }

  .adp-selection-summary {
    min-width: 0;
    width: 100%;
    height: 56px;
    padding: 4px 0;
    border-radius: 0;
    background: var(--adp-navy);
    color: #fff;
    font-size: var(--adp-summary-scale);
  }

  .adp-status-item {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 0;
    min-width: 0;
    margin: 0;
    padding: 0.0625rem 0.5rem;
    border: 0;
    background: transparent;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
  }

  .adp-status-item + .adp-status-item {
    border-left: 1px solid rgba(255, 255, 255, 0.22);
  }

  .adp-status-item:disabled {
    cursor: default;
  }

  .adp-status-item strong {
    font-family: "Noto Sans KR", sans-serif;
    font-size: 0.875em;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0.01em;
  }

  .adp-start-status-jump strong {
    color: #62d5fa;
  }

  .adp-end-status-jump strong {
    color: #ffb4c0;
  }

  .adp-status-value {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: clamp(0.25rem, 1.4vw, 0.375rem);
    min-width: 0;
    color: #fff;
  }

  .adp-status-date {
    overflow: hidden;
    color: #fff;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 1em;
    font-weight: 900;
    line-height: 1.4;
    text-overflow: ellipsis;
  }

  .adp-status-time {
    flex: 0 0 auto;
    color: #fff;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 1em;
    font-weight: 900;
    line-height: 1.4;
  }

  .adp-current-month-button,
  .adp-status-item,
  .adp-day-button,
  .adp-time-step,
  .adp-close,
  .adp-apply {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    font-family: "Noto Sans KR", "Nanum Barun Gothic", Arial, sans-serif;
    cursor: pointer;
  }

  .adp-current-month-button {
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid #ccd7e3;
    border-radius: 0;
    background: #fff;
    color: #3d4d64;
    font: 800 15px/38px "Noto Sans KR", sans-serif;
  }

  .adp-body {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 8px;
    overflow: hidden;
  }

  .adp-calendar-scroll {
    min-width: 0;
    min-height: 0;
    width: 100%;
    margin: 0;
    padding: 0 8px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--adp-line);
    border-radius: 0;
    background: #fff;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd7e4 transparent;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
  }

  .adp-month-card {
    width: 100%;
    min-height: 246px;
    margin: 0;
    padding: 8px 0 10px;
    border-bottom: 1px solid #edf1f6;
  }

  .adp-month-card:last-child {
    border-bottom: 0;
  }

  .adp-month-title {
    height: var(--adp-calendar-title-height);
    margin: 0 0 0.25rem;
    color: #111827;
    font-family: "Noto Sans KR", sans-serif;
    font-size: var(--adp-calendar-title-size);
    font-weight: 800;
    line-height: var(--adp-calendar-title-height);
    text-align: center;
    letter-spacing: 0.2px;
  }

  .adp-weekdays,
  .adp-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
  }

  .adp-weekdays {
    height: var(--adp-calendar-weekday-height);
    margin-bottom: 0.125rem;
  }

  .adp-weekday {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--adp-calendar-weekday-height);
    color: #617087;
    font-family: "Noto Sans KR", sans-serif;
    font-size: var(--adp-calendar-weekday-size);
    font-weight: 800;
    line-height: 1.4;
  }

  .adp-weekday-0 {
    color: var(--adp-sunday);
  }

  .adp-weekday-6 {
    color: var(--adp-saturday);
  }

  .adp-day {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: var(--adp-calendar-day-height);
    padding: 0.0625rem;
  }

  .adp-day-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 0.125rem);
    min-width: 0;
    max-width: var(--adp-calendar-day-height);
    height: var(--adp-calendar-button-height);
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 0;
    background: var(--adp-cell);
    color: #25364d;
    font-family: "Noto Sans KR", sans-serif;
    font-size: var(--adp-calendar-day-size);
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
  }

  .adp-day-button:disabled {
    background: transparent;
    color: #cfd7e2;
    cursor: default;
  }

  .adp-sunday .adp-day-button:not(:disabled) {
    color: var(--adp-sunday);
  }

  .adp-saturday .adp-day-button:not(:disabled) {
    color: var(--adp-saturday);
  }

  .adp-today .adp-day-button:not(:disabled) {
    border: 2px solid #ff6f7d;
    background: #fff;
    color: var(--adp-cyan-dark);
  }

  .adp-in-range .adp-day-button {
    border-radius: 0;
    background: #b8e2f3;
    color: #17324a;
  }

  .adp-range-start .adp-day-button,
  .adp-range-end .adp-day-button,
  .adp-sunday.adp-range-start .adp-day-button,
  .adp-sunday.adp-range-end .adp-day-button,
  .adp-saturday.adp-range-start .adp-day-button,
  .adp-saturday.adp-range-end .adp-day-button {
    border-color: var(--adp-cyan);
    border-radius: 0;
    background: var(--adp-cyan);
    color: #fff;
  }

  .adp-range-start::after,
  .adp-range-end::after {
    display: none;
  }

  .adp-time-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
  }

  .adp-time-stack,
  .adp-time-stack * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation !important;
  }

  .adp-time-panel {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 68px;
    margin: 0;
    padding: 8px;
    overflow: hidden;
    border: 1px solid var(--adp-line);
    border-radius: 0;
    background: #fff;
  }

  .adp-time-panel-header {
    display: block;
    width: 100%;
    height: 50px;
  }

  .adp-time-heading {
    display: block;
    min-width: 0;
    height: 20px;
    margin: 0;
    padding: 0 2px;
    border-radius: 0;
    background: transparent;
    color: #63728a;
    font: 700 10px/20px "Noto Sans KR", sans-serif;
    text-align: left;
  }

  .adp-time-control {
    display: block;
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .adp-time-value {
    display: block;
    width: 72px;
    height: 30px;
    margin: 0;
    padding: 0 2px;
    border-radius: 0;
    background: transparent;
    color: #25364d;
    font: 800 17px/30px "Noto Sans KR", sans-serif;
    text-align: left;
  }

  .adp-time-slider-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 6px;
    width: 100%;
    height: 36px;
  }

  .adp-time-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #617188;
    font-size: 0;
    line-height: 0;
  }

  .adp-time-step::before {
    display: block;
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    content: "";
  }

  .adp-start-decrease::before,
  .adp-end-decrease::before {
    transform: translateX(1px) rotate(135deg);
  }

  .adp-start-increase::before,
  .adp-end-increase::before {
    transform: translateX(-1px) rotate(-45deg);
  }

  .adp-time-step:active {
    background: #eef4f9;
    color: var(--adp-cyan);
  }

  .adp-time-step.adp-time-step-holding {
    background: #d8edf7;
    color: var(--adp-cyan-dark);
  }

  .adp-time-range {
    --adp-range-progress: 0%;
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    height: 28px;
    margin: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
  }

  .adp-time-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--adp-cyan) 0 var(--adp-range-progress), #dce4ee var(--adp-range-progress) 100%);
  }

  .adp-time-range::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 19px;
    height: 19px;
    margin-top: -7px;
    border: 5px solid var(--adp-cyan);
    border-radius: 50%;
    background: #fff;
  }

  .adp-time-range::-moz-range-track {
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: #dce4ee;
  }

  .adp-time-range::-moz-range-progress {
    height: 5px;
    border-radius: 3px;
    background: var(--adp-cyan);
  }

  .adp-time-range::-moz-range-thumb {
    width: 9px;
    height: 9px;
    border: 5px solid var(--adp-cyan);
    border-radius: 50%;
    background: #fff;
  }

  .adp-time-bounds {
    position: relative;
    display: block;
    height: 12px;
    margin: -1px 42px 0;
    width: calc(100% - 84px);
    color: #94a2b6;
    font: 800 10px/12px "Noto Sans KR", Arial, sans-serif;
  }

  .adp-time-bounds span {
    position: absolute;
    top: 0;
    width: max-content;
    text-align: center;
    white-space: nowrap;
  }

  .adp-time-bounds span:first-child {
    left: 9.5px;
    transform: translateX(-50%);
  }

  .adp-time-bounds span:nth-child(2) {
    left: 50%;
    transform: translateX(-50%);
  }

  .adp-time-bounds span:last-child {
    right: 9.5px;
    transform: translateX(50%);
  }

  .adp-time-select {
    display: none;
  }

  .adp-footer {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-rows: 56px;
    width: 100%;
    height: 56px;
    margin: 0;
    padding: 0;
    background: var(--adp-surface);
  }

  .adp-actions {
    display: grid;
    grid-template-columns: 88px repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    height: 56px;
    margin: 0;
    padding: 8px;
    border: 0;
    background: #edf2f7;
    box-shadow: inset 0 1px 0 #c9d5e2;
  }

  .adp-close,
  .adp-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    color: #fff;
    font: 800 15px/20px "Noto Sans KR", sans-serif;
  }

  .adp-close {
    background: #4a5c75;
  }

  .adp-apply {
    background: var(--adp-cyan);
  }

  .adp-apply:disabled {
    background: #aab6c5;
    cursor: default;
  }

  .adp-error {
    position: absolute;
    right: 8px;
    bottom: 56px;
    left: 8px;
    margin: 0;
    color: #d92828;
    font: 700 11px/16px "Noto Sans KR", sans-serif;
    text-align: center;
  }

  .adp-error:not(:empty) {
    padding: 5px 8px;
    border: 1px solid #f2b3bb;
    border-radius: 0;
    background: #fff;
  }

  .adp-current-month-button:focus-visible,
  .adp-status-item:focus-visible,
  .adp-time-range:focus-visible,
  .adp-time-step:focus-visible,
  .adp-close:focus-visible,
  .adp-apply:focus-visible {
    outline: 3px solid rgba(8, 167, 223, 0.32);
    outline-offset: 1px;
  }

  .adp-day-button:focus-visible {
    outline: 0;
    box-shadow: inset 0 0 0 2px rgba(8, 167, 223, 0.38);
  }

  @media (max-width: 340px) {
    .adp-root {
      padding-right: 4px;
      padding-left: 4px;
    }

    .adp-calendar-scroll {
      padding-right: 7px;
      padding-left: 7px;
    }

    .adp-status-item {
      padding-right: 5px;
      padding-left: 5px;
    }
  }
}
