@use '../common/var' as *;
@use '../mixins/mixins' as *;
@use '../mixins/var' as *;
@use './picker-panel.scss';

// @include b(date-picker) {
//   @include set-component-css-var('datepicker', $datepicker);
// }

@include b(date-picker) {
  width: 284px;

  &.has-sidebar.has-time {
    width: 574px;
  }

  &.has-sidebar {
    width: 412px;
  }

  &.has-time {
    width: 446px;

    .#{$namespace}-picker-panel__sidebar {
      border-bottom-left-radius: 0;
    }
  }

  &.has-time,
  &.has-sidebar {
    .#{$namespace}-picker-panel__body-wrapper {
      display: flex;
    }
  }

  .#{$namespace}-picker-panel__content {
    width: 252px;
  }

  table {
    table-layout: fixed;
    width: 100%;
  }

  @include e(time-panel) {
    border-left: 1px solid getCssVar('color-neutral-2');
    margin-right: -16px;
    display: flex;
    align-items: flex-end;
  }

  @include e(time-header) {
    position: relative;
    border-bottom: getCssVar('border');
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    padding: 8px 4px 4px;
    display: table;
    width: 100%;
    box-sizing: border-box;
    color: getCssVar('color-neutral-7');
  }

  @include e((month-header, year-header)) {
    padding-top: 2px;
    padding-bottom: 2px;
    background-color: getCssVar('color-neutral-2');
    border-radius: getCssVar('border-radius-md');
  }

  @include e(month-header) {
    margin-top: 8px;
  }

  @include e(header-label) {
    width: 100%;
  }
}
