﻿.pd-h1 {
    font-size: 2.6669rem;
    line-height: 1;
    font-weight: bold;
}

.pd-h2 {
    font-size: 1.5rem;
    line-height: 1;
    font-weight: bold;
}

.pd-h3 {
    font-size: 1.25rem;
    line-height: 1;
    font-weight: bold;
}

.pd-toggle-wrapper {
    width: 100%;
    height: 20px;
}

.pd-toggle-button {
    width: 42px;
    height: 20px;
    min-width: 42px;
    border-radius: 12px;
    transition: all 0.1s ease-in-out;
}

.pd-toggle-slider {
    height: 100%;
    border: 2px solid;
    aspect-ratio: 1;
    transition: all 0.1s ease-in-out;
}

.pd-toggle-text {
    font-size: 14px;
    line-height: 16px;
}

.pd-checkbox {
    width: auto;
    height: 20px;
}

    .pd-checkbox > label {
        width: 20px;
        height: 100%;
        font-size: 20px;
        border-radius: 4px;
    }

.pd-checkbox-text {
    font-size: 14px;
    line-height: 16px;
}

.pd-radio-button {
    width: auto;
    height: 20px;
}

.pd-radio-button-dot {
    width: auto;
    height: 100%;
}

    .pd-radio-button-dot > input {
        aspect-ratio: 1;
        height: 100%;
    }

.pd-radio-button-text {
    font-size: 14px;
    line-height: 16px;
}

.pd-scrollable::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

    .pd-scrollable::-webkit-scrollbar-track::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 10px;
        height: 100%;
        background: red;
    
    }

.pd-scrollable::-webkit-scrollbar-thumb {
    border-radius: 5px;
}

/* ###################################################################### */
/* ##############################  BUTTON  ############################## */
/* ###################################################################### */
.pd-button {
    position: relative;
    display: flex;
    padding: 4px 12px;
    user-select: none;
    white-space: nowrap;
    box-sizing: border-box;
    border: none;
    outline: none;
}

    .pd-button > div {
        position: relative;
        display: flex;
        flex-direction: row;
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
    }

    .pd-button div + i {
        margin-left: 6px;
    }

    .pd-button:focus {
        z-index: 1;
    }

/* ###################################################################### */
/* #############################  CHECKBOX  ############################# */
/* ###################################################################### */
.pd-checkbox {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
}

    .pd-checkbox > input {
        display: none;
    }

    .pd-checkbox > label {
        display: inline-flex;
    }

.pd-checkbox-checked-icon {
    visibility: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    color: inherit;
    border-radius: inherit;
    user-select: none;
}

.pd-checkbox input[type="checkbox"]:checked + label > i {
    visibility: visible;
}

.pd-checkbox-text {
    padding: 0 4px 0 4px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-checkbox-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ###################################################################### */
/* ############################ RADIO BUTTON ############################ */
/* ###################################################################### */
.pd-radio-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pd-radio-button {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.pd-radio-button-dot {
    position: relative;
    display: flex;
}

    .pd-radio-button-dot > input:checked::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 50%;
        height: 50%;
        border-radius: 50%;
        background-color: currentColor;
        transform: translate(-50%, -50%);
    }

.pd-radio-button-text {
    padding: 0 4px 0 4px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-radio-button-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ###################################################################### */
/* ############################  CONTAINERS  ############################ */
/* ###################################################################### */
.pd-container {
    position: relative;
    display: flex;
    flex-direction: column;
}

.pd-container-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.pd-container-caption {
    position: relative;
    display: flex;
    height: 2rem;
    min-height: 2rem;
    padding: 0 0.5rem;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-container-caption-icon {
    position: absolute;
    left: 0.25rem;
    display: flex;
    height: 100%;
    align-items: center;
    user-select: none;
}

.pd-container-caption-text {
    margin-left: auto;
    margin-right: auto;
}

.pd-container-caption-buttons {
    position: absolute;
    display: flex;
    flex-direction: row;
    right: 0.25rem;
    height: 1.5rem;
    gap: 0.25rem;
}

.pd-container-tabs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    gap: 2px;
}

.pd-container-tab {
    position: relative;
    display: flex;
    flex-grow: 1;
    height: 2rem;
    font-weight: bold;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: none;
    cursor: pointer;
}

    .pd-container-tab > div {
        position: relative;
        display: flex;
        width: 100%;
        height: 100%;
        padding: 0 1rem;
        color: inherit;
        justify-content: center;
        align-items: center;
    }

    .pd-container-tab > a {
        position: relative;
        display: flex;
        width: 100%;
        height: 100%;
        color: inherit;
        justify-content: center;
        align-items: center;
        text-decoration: none;
    }

/* ###################################################################### */
/* ############################  TEXT INPUT  ############################ */
/* ###################################################################### */
.pd-input {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    font-size: 14px;
    gap: 0.25rem;
}

.pd-input-wrapper {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    box-sizing: border-box;
}

    .pd-input-wrapper > button {
        padding: 0;
        height: 28px;
        aspect-ratio: 1;
    }

.pd-input-value-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    padding: 0 0.5rem;
    gap: 0.25rem;
}

.pd-input-text {
    position: relative;
    display: flex;
    width: 100%;
    line-height: 16px;
    align-items: flex-end;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-input-value {
    flex: 1 1 auto;
    color: inherit;
}

    .pd-input-value > input {
        position: relative;
        width: 100%;
        height: calc(12px + 1rem);
        color: inherit;
        background: none;
        border: none;
        outline: none;
        overflow: hidden;
        text-decoration: none;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pd-input-value:-webkit-autofill {
        background-color: inherit;
        -webkit-background-clip: text;
    }

    .pd-input-value:invalid {
        text-decoration: none;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
    }

.pd-input-remark {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-input-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ###################################################################### */
/* #############################    NOTE    ############################# */
/* ###################################################################### */
.pd-note {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    gap: 0.5rem;
}

.pd-note-text {
    position: relative;
    display: flex;
    font-size: 14px;
}

.pd-note-warning {
    color: var(--pd-maroon);
}

/* ###################################################################### */
/* ##############################  SELECT  ############################## */
/* ###################################################################### */
.pd-select {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    font-size: 14px;
    gap: 0.25rem;
}

.pd-select-wrapper {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
}

    .pd-select-wrapper > button,
    .pd-select-wrapper > .pd-select-button > button {
        padding: 0;
        height: 28px;
        aspect-ratio: 1;
        border: none;
        border-left: 1px solid;
        border-color: inherit;
    }

.pd-select-text {
    position: relative;
    display: flex;
    width: 100%;
    line-height: 16px;
    align-items: flex-end;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-select-dropdown {
    max-height: calc(6 * (12px + 1rem));
    padding: 0.25rem;
    border: none;
    outline: none;
    border-radius: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.pd-select-option {
    width: 100%;
    padding: 0 0.5rem;
    border: none;
    outline: none;
    font-size: 14px;
    line-height: calc(12px + 1rem);
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    cursor: pointer;
}

.pd-select-button {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.pd-select-value-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    padding: 0 0.5rem;
    gap: 0.25rem;
}

.pd-select-value {
    position: relative;
    flex: 1 1 auto;
    color: inherit;
}

    .pd-select-value > input {
        position: relative;
        width: 100%;
        height: calc(12px + 1rem);
        padding: 0;
        color: transparent;
        caret-color: transparent;
        background: none;
        border: none;
        outline: none;
        overflow: hidden;
        text-decoration: none;
        text-overflow: ellipsis;
        white-space: nowrap;
        cursor: pointer;
        pointer-events: none;
    }

        .pd-select-value > input:-webkit-autofill {
            background-color: inherit;
            -webkit-background-clip: text;
        }

        .pd-select-value > input:invalid {
            text-decoration: none;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
        }

.pd-select-input-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    line-height: 1;
    align-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

    .pd-select-input-cover > * {
        display: inline-block;
    }

.pd-select-remark {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-select-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-item:focus,
.dropdown-item:active {
    color: inherit;
    background-color: inherit;
}

/* ###################################################################### */
/* ##############################  TOGGLE  ############################## */
/* ###################################################################### */
.pd-toggle-wrapper {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
}

    .pd-toggle-wrapper > input {
        position: relative;
        display: none;
    }

    .pd-toggle-wrapper > label {
        position: relative;
        display: inline-flex;
    }

.pd-toggle-button {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.pd-toggle-slider {
    position: relative;
    border-radius: 50%;
    transition: ease-in-out 0.1s;
}

.pd-toggle-on + label > .pd-toggle-button > .pd-toggle-slider {
    transform: translateX(calc(100% + 2px));
}

.pd-toggle-off + label > .pd-toggle-button > .pd-toggle-slider {
}

.pd-toggle-text {
    padding: 0 4px 0 4px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .pd-toggle-text > a {
        text-decoration: underline;
        color: inherit;
    }

.pd-toggle-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-toggle-blocker {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* ###################################################################### */
/* #############################  TOOLTIPS  ############################# */
/* ###################################################################### */
.pd-tooltip {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
}

    .pd-tooltip > span {
        position: absolute;
        display: block;
        visibility: hidden;
        padding: 12px;
        width: max-content;
        line-height: 1;
        font-size: 1rem;
        font-weight: normal;
        justify-content: center;
        pointer-events: none;
    }

    .pd-tooltip:hover > span {
        visibility: visible;
    }

    .pd-tooltip:hover .pd-tooltip-extra {
        opacity: 1;
        transition: opacity 0.5s ease 1s;
    }

.pd-tooltip-extra {
    position: inherit;
    display: inherit;
    color: inherit;
    background-color: inherit;
    padding: inherit;
    width: 200%;
    line-height: inherit;
    font-size: 0.75rem;
    font-weight: inherit;
    pointer-events: inherit;
    opacity: 0;
}

.pd-tooltip-arrow-top::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid;
}

.pd-tooltip-arrow-bottom::before {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid;
}

.pd-tooltip-arrow-right::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid;
}

.pd-tooltip-arrow-left::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -8px;
    transform: translateY(-50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid;
}

.pd-tooltip-arrow-top-right::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 2px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid;
}

/* ###################################################################### */
/* ##############################  LOADER  ############################## */
/* ###################################################################### */
.pd-loader-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 1rem;
}

.pd-loader-text {
    font-size: 1rem;
    font-weight: bold;
}

.pd-loader-progress {
    position: relative;
    display: flex;
    width: 355px;
    height: 12px;
    background-color: var(--pd-text-dark);
}

    .pd-loader-progress > div {
        position: relative;
        display: flex;
        height: 100%;
        background-color: var(--pd-green);
    }