@import "../common/var";

@include b(picker-panel) {
    color: $--color-text-regular;
    border: 1px solid $--datepicker-border-color;
    box-shadow: $--box-shadow-light;
    background: $--color-white;
    border-radius: $--border-radius-base;
    line-height: 30px;
    margin: 5px 0;

    @include e((body, body-wrapper)) {
        &::after {
            content: "";
            display: table;
            clear: both;
        }
    }

    @include e(content) {
        position: relative;
        margin: 15px;
    }

    @include e(footer) {
        border-top: 1px solid $--datepicker-inner-border-color;
        padding: 4px;
        text-align: right;
        background-color: $--color-white;
        position: relative;
        font-size: 0;
    }

    @include e(shortcut) {
        display: block;
        width: 100%;
        border: 0;
        background-color: transparent;
        line-height: 28px;
        font-size: 14px;
        color: $--datepicker-color;
        padding-left: 12px;
        text-align: left;
        outline: none;
        cursor: pointer;

        &:hover {
            color: $--datepicker-text-hover-color;
        }

        &.active {
            background-color: #e6f1fe;
            color: $--datepicker-active-color;
        }
    }

    @include e(btn) {
        border: 1px solid #dcdcdc;
        color: #333;
        line-height: 24px;
        border-radius: 2px;
        padding: 0 20px;
        cursor: pointer;
        background-color: transparent;
        outline: none;
        font-size: 12px;

        &[disabled] {
            color: #cccccc;
            cursor: not-allowed;
        }
    }

    @include e(icon-btn) {
        font-size: 12px;
        color: $--datepicker-icon-color;
        border: 0;
        background: transparent;
        cursor: pointer;
        outline: none;
        margin-top: 8px;

        &:hover {
            color: $--datepicker-text-hover-color;
        }

        @include when(disabled) {
            color: $--font-color-disabled-base;

            &:hover {
                cursor: not-allowed;
            }
        }
    }

    @include e(link-btn) {
        vertical-align: middle;
    }
}

.el-picker-panel__body-wrapper {
    display: flex;
}

.el-picker-panel__sidebar-right,
.el-picker-panel__sidebar {
    box-sizing: border-box;
    max-width: 292px; // Width of calendar content
}
