.l-date-picker,
.l-date-range-picker {
  display: inline-flex;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: var(--td-text-color-primary);
  font-size: var(--td-font-size-body-medium);
  font-family: var(--td-font-family);
  list-style: none;
}
.l-date-picker__header-controller-month-popup > .l-popup__content,
.l-date-picker__header-controller-year-popup > .l-popup__content {
  max-height: 160px;
}
.l-date-picker__panel-container > .l-popup__content,
.l-date-range-picker__panel-container > .l-popup__content {
  padding: 0;
  min-width: 280px;
}
.l-date-picker__panel,
.l-date-range-picker__panel {
  display: flex;
  flex-direction: column;
}
.l-date-picker__panel--direction-row,
.l-date-range-picker__panel--direction-row {
  flex-direction: row;
}
.l-date-picker__panel .l-time-picker__panel,
.l-date-range-picker__panel .l-time-picker__panel {
  width: 216px;
}
.l-date-picker__panel .l-time-picker__panel-section-body,
.l-date-range-picker__panel .l-time-picker__panel-section-body {
  padding: 0;
}
.l-date-picker__panel .l-time-picker__panel-body,
.l-date-range-picker__panel .l-time-picker__panel-body {
  margin: 0;
}
.l-date-picker__panel-content,
.l-date-range-picker__panel-content,
.l-date-range-picker__panel-content-wrapper {
  display: flex;
}
.l-date-range-picker__panel-content-wrapper {
  gap: 6px;
}
.l-date-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.l-date-picker__header-controller {
  display: inline-flex;
  gap: 8px;
}
.l-date-picker__header-controller .l-date-picker__header-controller-month {
  width: 80px;
}
.l-date-picker__header-controller .l-date-picker__header-controller-year {
  width: 78px;
}
.l-date-picker__table table {
  width: 100%;
  border-collapse: collapse;
}
.l-date-picker__table table th {
  text-align: center;
  color: var(--td-text-color-secondary);
  font-weight: 400;
}
.l-date-picker__table table td.l-date-picker__cell {
  text-align: center;
  font-weight: 500;
}
.l-date-picker__table table th,
.l-date-picker__table table td.l-date-picker__cell {
  padding: 0;
  border: 0;
  line-height: initial;
}
.l-date-picker__table table thead::after {
  content: "-";
  display: block;
  line-height: 3px;
  color: transparent;
}
.l-date-picker__table-week-row {
  cursor: pointer;
  position: sticky;
}
.l-date-picker__table-week-row .l-date-picker__cell:first-child .l-date-picker__cell-inner {
  color: var(--td-text-color-disabled);
}
.l-date-picker__table-week-row .l-date-picker__cell:hover .l-date-picker__cell-inner {
  box-shadow: none;
  background: none;
}
.l-date-picker__table-week-row::after {
  content: "";
  position: absolute;
  left: 33px;
  right: 0;
  top: 3px;
  z-index: 10;
  height: 24px;
  border-radius: 3px;
  transition: box-shadow 0.2s cubic-bezier(0.38, 0, 0.24, 1), background-color 0.2s linear, border-color 0.2s linear, color 0.2s linear;
  pointer-events: none;
}
.l-date-picker__table-week-row:hover .l-date-picker__cell:first-child .l-date-picker__cell-inner {
  color: var(--td-brand-color);
}
.l-date-picker__table-week-row:hover::after {
  box-shadow: inset 0 0 0 1px var(--td-brand-color);
}
.l-date-picker__table-week-row--active::after {
  z-index: 0;
  background-color: var(--td-brand-color);
}
.l-date-picker__table-week-row--active .l-date-picker__cell:first-child .l-date-picker__cell-inner {
  color: var(--td-brand-color);
}
.l-date-picker__table-week-row--active .l-date-picker__cell .l-date-picker__cell-inner {
  background: transparent;
  color: var(--td-text-color-anti);
}
.l-date-picker__table-week-row--range::after {
  z-index: 0;
  background-color: var(--td-brand-color-light);
}
.l-date-picker__table-week-row--range .l-date-picker__cell .l-date-picker__cell-inner {
  background: transparent;
}
.l-date-picker__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px;
  gap: 8px;
}
.l-date-picker__footer--bottom {
  border-top: 1px solid var(--td-component-stroke);
}
.l-date-picker__footer--top {
  border-bottom: 1px solid var(--td-component-stroke);
}
.l-date-picker__footer--left {
  flex-direction: column;
  border-right: 1px solid var(--td-component-stroke);
}
.l-date-picker__footer--left .l-date-picker__presets {
  flex-direction: column;
}
.l-date-picker__footer--right {
  flex-direction: column;
  border-left: 1px solid var(--td-component-stroke);
}
.l-date-picker__footer--right .l-date-picker__presets {
  flex-direction: column;
}
.l-date-picker__presets {
  display: flex;
  gap: 8px;
  white-space: nowrap;
  min-width: 40px;
}
.l-date-picker__presets .l-button {
  cursor: pointer;
}
.l-date-picker__presets a {
  color: var(--td-brand-color);
}
.l-date-picker__presets a:hover {
  color: var(--td-brand-color-hover);
}
.l-date-picker__panel-time,
.l-date-range-picker__panel-time {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border-left: 1px solid var(--td-component-stroke);
}
.l-date-picker__panel-time-viewer,
.l-date-range-picker__panel-time-viewer {
  display: flex;
  height: 32px;
  line-height: 22px;
  align-items: center;
  justify-content: center;
  color: var(--td-text-color-primary);
}
.l-date-picker__panel-time .l-time-picker__panel-body,
.l-date-range-picker__panel-time .l-time-picker__panel-body {
  margin: 0;
}
.l-date-picker__panel-year,
.l-date-picker__panel-month,
.l-date-picker__panel-quarter,
.l-date-picker__panel-week,
.l-date-picker__panel-date {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 12px;
  gap: 12px;
  max-width: 280px;
}
.l-date-picker__panel-year .l-date-picker__cell--hover-highlight + .l-date-picker__cell--hover-highlight::before,
.l-date-picker__panel-month .l-date-picker__cell--hover-highlight + .l-date-picker__cell--hover-highlight::before,
.l-date-picker__panel-year .l-date-picker__cell--hover-highlight + .l-date-picker__cell--hover-highlight::after,
.l-date-picker__panel-month .l-date-picker__cell--hover-highlight + .l-date-picker__cell--hover-highlight::after {
  left: -28px;
}
.l-date-picker__panel-year .l-date-picker__cell--hover-highlight + .l-date-picker__cell--active::after,
.l-date-picker__panel-month .l-date-picker__cell--hover-highlight + .l-date-picker__cell--active::after {
  left: 0;
}
.l-date-picker__panel-year .l-date-picker__cell--highlight + .l-date-picker__cell--highlight::before,
.l-date-picker__panel-month .l-date-picker__cell--highlight + .l-date-picker__cell--highlight::before {
  left: -28px;
}
.l-date-picker__panel-year .l-date-picker__header-controller-year,
.l-date-picker__panel-month .l-date-picker__header-controller-year,
.l-date-picker__panel-quarter .l-date-picker__header-controller-year {
  width: 130px;
}
.l-date-picker__panel-year .l-date-picker__table table tbody,
.l-date-picker__panel-month .l-date-picker__table table tbody,
.l-date-picker__panel-quarter .l-date-picker__table table tbody {
  width: 100%;
  display: flex;
  gap: 16px;
  flex-direction: column;
}
.l-date-picker__panel-year .l-date-picker__table table tbody tr,
.l-date-picker__panel-month .l-date-picker__table table tbody tr,
.l-date-picker__panel-quarter .l-date-picker__table table tbody tr {
  display: flex;
  justify-content: space-between;
}
.l-date-picker__panel-year .l-date-picker__cell--disabled + .l-date-picker__cell--disabled:before,
.l-date-picker__panel-month .l-date-picker__cell--disabled + .l-date-picker__cell--disabled:before,
.l-date-picker__panel-quarter .l-date-picker__cell--disabled + .l-date-picker__cell--disabled:before {
  left: -56px;
}
.l-date-picker__panel-year .l-date-picker__cell:nth-child(1),
.l-date-picker__panel-month .l-date-picker__cell:nth-child(1),
.l-date-picker__panel-quarter .l-date-picker__cell:nth-child(1) {
  text-align: left;
}
.l-date-picker__panel-year .l-date-picker__cell:nth-child(3),
.l-date-picker__panel-month .l-date-picker__cell:nth-child(3),
.l-date-picker__panel-quarter .l-date-picker__cell:nth-child(3) {
  text-align: right;
}
.l-date-picker__panel-year .l-date-picker__cell-inner,
.l-date-picker__panel-month .l-date-picker__cell-inner,
.l-date-picker__panel-quarter .l-date-picker__cell-inner {
  width: 48px;
}
.l-date-picker__cell {
  cursor: pointer;
  position: relative;
  padding: 0;
}
.l-date-picker__cell::before,
.l-date-picker__cell::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  z-index: 1;
  height: 24px;
  transform: translateY(-50%);
  transition: all 0.2s cubic-bezier(0.38, 0, 0.24, 1);
}
.l-date-picker__cell:hover .l-date-picker__cell-inner {
  box-shadow: inset 0 0 0 1px var(--td-brand-color);
}
.l-date-picker__cell-inner {
  position: relative;
  z-index: 5;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  margin: 3px;
  border-radius: var(--td-radius-default);
  transition: box-shadow 0.2s cubic-bezier(0.38, 0, 0.24, 1), background-color 0.2s linear, border-color 0.2s linear, color 0.2s linear;
}
.l-date-picker__cell--now .l-date-picker__cell-inner {
  color: var(--td-brand-color);
  background: var(--td-brand-color-light);
}
.l-date-picker__cell--hover-highlight::after {
  background-color: var(--td-brand-color-light);
}
.l-date-picker__cell--highlight::before {
  background-color: var(--td-brand-color-light);
}
.l-date-picker__cell--highlight.l-date-picker__cell--hover-highlight::after {
  background-color: rgba(0, 0, 0, 0.04);
}
.l-date-picker__cell--additional:hover .l-date-picker__cell-inner {
  box-shadow: none;
  border-color: var(--td-bg-color-container-hover);
  background-color: var(--td-bg-color-container-hover);
}
.l-date-picker__cell--additional .l-date-picker__cell-inner {
  color: var(--td-text-color-disabled);
}
.l-date-picker__cell--active .l-date-picker__cell-inner {
  color: var(--td-text-color-anti);
  background-color: var(--td-brand-color);
}
.l-date-picker__cell--active-start::before {
  left: 6px;
  border-top-left-radius: var(--td-radius-default);
  border-bottom-left-radius: var(--td-radius-default);
}
.l-date-picker__cell--active-end::before {
  right: 6px;
  border-top-right-radius: var(--td-radius-default);
  border-bottom-right-radius: var(--td-radius-default);
}
.l-date-picker__cell--disabled:hover .l-date-picker__cell-inner {
  box-shadow: none;
  background-color: var(--td-bg-color-component-disabled);
}
.l-date-picker__cell--disabled .l-date-picker__cell-inner {
  cursor: not-allowed;
  color: var(--td-text-color-disabled);
  background-color: var(--td-bg-color-component-disabled);
}
.l-date-picker__cell--disabled + .l-date-picker__cell--disabled::before {
  left: -32px;
  background-color: var(--td-bg-color-component-disabled);
}
.l-date-picker__input--placeholder input {
  color: var(--td-text-color-placeholder);
}
