.custom-input {
    position: relative;
}

    .custom-input input[type="text"],
    .custom-input input[type="password"],
    .custom-input select,
    .custom-input textarea,
    .custom-input img {
        display: block;
        width: 100%;
        padding: .675rem .75rem;
        border: 2px solid #afbdcf;
        border-radius: 10px;
        color: #000;
        font-size: 16px;
        background-color: transparent;
        box-sizing: border-box;
    }

        .custom-input input[type="text"]:disabled,
        .custom-input input[type="password"]:disabled,
        .custom-input select:disabled,
        .custom-input textarea:disabled {
            background-color: #eee;
            border-color: #ccc;
            color: #999;
            cursor: not-allowed;
            opacity: 0.7;
        }

[data-theme="dark"] .custom-input input[type="text"]:disabled,
[data-theme="dark"] .custom-input input[type="password"]:disabled,
[data-theme="dark"] .custom-input select:disabled,
[data-theme="dark"] .custom-input textarea:disabled {
    background-color: #333;
    border-color: #555;
    color: #777;
}

.custom-input:has(.custom-image-selector-container) {
    height: 100%;
}

    .custom-input:has(.custom-image-selector-container) img {
        border: unset !important;
        border-radius: unset !important;
    }

[data-theme="dark"] .custom-input input[type="text"],
[data-theme="dark"] .custom-input input[type="password"],
[data-theme="dark"] .custom-input select,
[data-theme="dark"] .custom-input textarea {
    color: #fff;
}

[data-theme="dark"] .custom-input select {
    background-color: #000;
}

.custom-input input[type="text"],
.custom-input input[type="password"] {
    box-shadow: none;
}

.custom-input .custom-image-list {
    position: relative;
    z-index: 1;
    height: unset;
}

.custom-input .text-right {
    text-align: right;
}

.custom-input .text-center {
    text-align: center;
}

.custom-input .text-left {
    text-align: left;
}

.custom-input .text-justify {
    text-align: justify;
}

.custom-input input[mask]:not([mask=""]) {
    letter-spacing: 3px;
}

.custom-input input[original-type="currency"] {
    letter-spacing: 1px;
}

.custom-input > label:not(:empty) {
    position: absolute;
    color: #afbdcf;
    background-color: #fff;
    border-radius: 8px;
    top: 1px;
    left: 14px;
    transform: translateY(-50%);
    font-size: 12px;
    padding: 2px 6px;
    z-index: 2;
}

[dir="rtl"] .custom-input > label:not(:empty) {
    left: unset;
    right: 14px;
}

.custom-dropdown {
    position: relative;
}

    .custom-dropdown label:not(:empty) {
        position: absolute;
        color: #afbdcf;
        background-color: #fff;
        top: -20px;
        font-size: 12px;
        margin-top: 7px;
        z-index: 1000;
    }

[data-theme="dark"] .custom-input label:not(:empty) {
    color: #fff;
    background-color: #000;
}

.custom-input .invalid {
    border: 2px solid red !important;
}

.custom-input-dropdown {
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 6px;
    max-height: 200px;
    overflow: auto;
    position: absolute;
    z-index: 999999;
    display: none;
}

[data-theme="dark"] .custom-input-dropdown {
    background: #000;
    color: #fff;
    border: 1px solid #333;
}

.custom-input-item {
    padding: 8px 10px;
    cursor: pointer;
}

    .custom-input-item:hover {
        background: #f0f0f0;
    }

.custom-input-item {
    padding: 6px 10px;
    cursor: pointer;
}

    .custom-input-item:hover,
    .custom-input-item.selected {
        background-color: #007bff;
        color: white;
    }
