
time-input {
  display: block;
  position: relative;
}

xtime-input input {
  border-radius: var(--radius-small);
  border: 1px solid var(--outline) !important;
  padding: 1rem;
  width: 100%;
  font-size: var(--text-size-lg);
}

time-input .time-picker__options-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: var(--layer-modal);
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background: var(--layer-background);
  border: 1px solid var(--outline);
  border-radius: var(--radius-small);
  box-shadow: var(--elevation-2);
  margin-top: 2px;
}

time-input .time-picker__options {
  padding: 0;
  margin: 0;
}

time-input .time-picker__item {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--on-layer-background);
  text-decoration: none;
}

xtime-input .time-picker__item:hover {
  background: var(--layer-widget);
}
.time-input-container {
  position: relative;
  width: 100%;
}

.time-input-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  pointer-events: none;
  color: var(--outline);
}
time-input input {
  padding-right: 2.5rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23444444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 24px;
}
.time-picker__item--selected {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
}
[data-theme='dark'] {
  time-input input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23DDDDDD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
  }
}

date-input {
  display: block;
  position: relative;
}


date-input duet-date-picker {
  width: 100%;
}

duet-date-picker,
.duet-date__dialog,
.duet-date__dialog-content {
  z-index: 2147483647 !important;
  /* position: relative !important; */
}

.duet-date__dialog-content {
  background: var(--surface-3);
  border-radius: var(--radius-2);
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.duet-date__table {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  table-layout: fixed;
  border: none;
}

.duet-date__table th,
.duet-date__table td {
  width: calc(100% / 7);
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

date-input .duet-date__input {
      border-radius: var(--radius-2);
    border: 1px solid var(--surface-3) !important;
    box-shadow: var(--shadow-1);
    color: var(--text-1);
    background: var(--surface-1);
    display: block;
    font-size: var(--font-size-2);
    line-height: var(--font-lineheight-3);
    padding: var(--size-3);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

date-input .duet-date__input:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 1px var(--primary-container);
}

date-input.validation-error .duet-date__input {
  background-color: var(--red-1);
  border: 1px solid var(--red-6);
}
/* Removed conflicting styles - using base form styles instead */

/* For floating placeholder alignment */
.floating-placeholder date-input .duet-date__input,
.floating-placeholder time-input input {
  padding-top: 1.6rem !important;
  padding-bottom: 0.4rem !important;
}
:root {

}
.duet-date__toggle {
  background: var(--surface-3);
}
[data-theme='dark'] .duet-date__toggle-icon::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M8 14h.01'/%3E%3Cpath d='M12 14h.01'/%3E%3Cpath d='M16 14h.01'/%3E%3Cpath d='M8 18h.01'/%3E%3Cpath d='M12 18h.01'/%3E%3Cpath d='M16 18h.01'/%3E%3C/svg%3E") !important;
}
}
/* Duplicate styles removed - keeping only the first instance */


.duet-date__toggle-icon {
  color: var(--text-1);
}

.duet-date__toggle-icon svg {
  display: none;
}

.duet-date__toggle-icon::after {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23222222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M8 14h.01'/%3E%3Cpath d='M12 14h.01'/%3E%3Cpath d='M16 14h.01'/%3E%3Cpath d='M8 18h.01'/%3E%3Cpath d='M12 18h.01'/%3E%3Cpath d='M16 18h.01'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
[data-theme='dark'] .duet-date__toggle-icon::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M8 14h.01'/%3E%3Cpath d='M12 14h.01'/%3E%3Cpath d='M16 14h.01'/%3E%3Cpath d='M8 18h.01'/%3E%3Cpath d='M12 18h.01'/%3E%3Cpath d='M16 18h.01'/%3E%3C/svg%3E") !important;
}
}
date-input .duet-date__input:focus-within,
date-input .duet-date__input:focus {
outline: none;
border-color: var(--primary) !important;
box-shadow: 0 0 0 2px var(--primary-container);
}
/* Focus styling for all form elements */
input:focus,
textarea:focus,
select:focus,
time-input input:focus,
date-input .duet-date__input:focus {
outline: none;
border-color: var(--primary) !important;
box-shadow: 0 0 0 1px var(--primary-container);
}

/* Specifically for date input to ensure it matches */
date-input .duet-date__input:focus-within {
outline: none;
border-color: var(--primary) !important;
box-shadow: 0 0 0 1px var(--primary-container);
}
[data-controller="event-time"] {
  display: flex;
  flex-wrap: wrap;
}

[data-controller="event-time"] .floating-date-time:first-child {
  flex-basis: 100%;
  margin-bottom: var(--size-2);
}

@media (min-width: 600px) {
  [data-controller="event-time"] .floating-date-time:first-child {
    flex-basis: auto;
    margin-bottom: 0;
  }
}