.dropdown-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    translate: 0 -50%;
    pointer-events: none;
}

.select-input {
    .selection {
        position: relative;
        cursor: pointer;
    }

    .text:focus {
        outline: none;
    }

    .values {
        width: 100%;
        border: 1px solid #222;
        display: none;
        position: absolute;
        background-color: white;
        max-height: 200px;
        overflow-y: auto;
        z-index: 999;
    }

    .value {
        padding: .5em;
        border-top: 1px solid #aaa;
        cursor: pointer;
    }
}

.input-data {
    padding: 0 0.4em;
    position: relative;
    font-size: 16px;
    border-top: 5px solid transparent;
    margin-bottom: 5px;
    display: inline-block;
    --field-padding: 6px;
    width: 100%;
    min-width: 170px;
    position: relative;
    width: calc(100% - 15px);
}

.input-data:has(.short) {
    min-width: 100px;
    width: 100px;
}

.input-data input,
.input-data select,
.input-data .selection {
    border: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #f2f2f2;
    padding: var(--field-padding);
    border-radius: 3px;
    outline: none;
    font-size: 14px;
    width: -webkit-fill-available;
    overflow-y: hidden;
}


.input-data .placeholder {
    position: absolute;
    left: var(--field-padding);
    width: calc(100% - (var(--field-padding) * 2));
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    top: 22px;
    line-height: 100%;
    transform: translateY(-50%);
    color: #aaa;
    transition:
        top 0.3s ease,
        color 0.3s ease,
        font-size 0.3s ease;
    cursor: text;
}

.input-data input.dirty+.placeholder,
.input-data input:focus+.placeholder,
.input-data input:not(:placeholder-shown)+.placeholder,
.input-data select.dirty+.placeholder,
.input-data select:focus+.placeholder,
.input-data select:not(:placeholder-shown)+.placeholder,
.input-data .selection+.placeholder {
    top: -10px;
    font-size: 10px;
    color: #222;
}

.input-data .error-message {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 12px;
    background: #d30909;
    color: #fff;
    height: 24px;
}

.input-data .error-message:empty {
    opacity: 0;
}

.input-data input,
.input-data select,
.input-data .selection {
    background: none;
    border: 2px solid #ddd;
    transition: border-color 0.3s ease;
}

.input-data input+.placeholder,
.input-data select+.placeholder,
.input-data .selection+.placeholder {
    left: 15px;
    padding: 0 5px;
}

.input-data input.dirty,
.input-data input:not(:placeholder-shown),
.input-data input:focus .input-data select.dirty,
.input-data select:not(:placeholder-shown),
.input-data select:focus,
.input-data .selection {
    border-color: #222;
    transition-delay: 0.1s
}

.input-data input.dirty+.placeholder,
.input-data input:not(:placeholder-shown)+.placeholder,
.input-data input:focus+.placeholder,
.input-data select.dirty+.placeholder,
.input-data select:not(:placeholder-shown)+.placeholder,
.input-data select:focus+.placeholder,
.input-data .selection+.placeholder {
    top: 0;
    font-size: 14px;
    color: #222;
    background: #fff;
    width: auto
}

* {
    margin: 0;
}

.utm-builder {
    margin: auto;
    margin-top: 100px;
    /* JUST FOR THE PURPOSES OF A TESTING WEBSITE*/
    margin-bottom: 100px;
    /* JUST FOR THE PURPOSES OF A TESTING WEBSITE*/
    max-width: 1200px;
    background-color: white;
    padding: 1em;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.top-bar {
    display: flex;
    align-items: center;
}

.reset {
    background-color: red;
    font-size: 16px;
    color: white;
    padding: 0.5em 1em;
    border: none;
    margin-left: auto;
    cursor: pointer;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.tabs {
    display: flex;
    gap: 3px;
    padding: 1em 0;

    .tab {
        box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
        background-color: white;
        padding: .5em 1em;

        cursor: pointer;

        &.selected {
            background-color: #34A853;
        }
    }
}

.main-settings {
    display: flex;
    gap: 2em;
    padding: 5px 0;
}

#URL {
    max-width: 300px;
}

.campaign {
    display: grid;
    gap: 0 10px;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}


.table-wrapper {
    width: 100%;
    margin: 10px 0 3rem 0;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.inputs-wrapper {
    display: flex;
    align-items: flex-end;

    .new {
        font-size: 2em;
        cursor: pointer;
        padding: 0 10px;
    }
}

table {
    border-radius: 5px;
    font-size: 16px;
    font-weight: normal;
    border: none;
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    background-color: white;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

table td,
table th {
    text-align: center;
    padding: 8px;
}

table td {
    border-right: 1px solid #f8f8f8;
    font-size: 16px;
}

table thead {
    color: #ffffff;
    background: #31a738;
}

table thead th:nth-child(odd) {
    color: #ffffff;
    background: #3156a7;
}

table tr:nth-child(even) {
    background: #F8F8F8;
}

.remove {
    cursor: pointer;
}

/* 
.table-wrapper:before {
    content: "Scroll horizontally >";
    display: block;
    text-align: right;
    font-size: 15px;
    color: black;
    padding: 0 10px 10px;
} */

.table-wrapper,
.utm-wrapper {
    display: none;
}

.table-wrapper:has(tbody) {
    display: flex;
}

.table-title {
    padding: 1em;
    background-color: #3156a7;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.utm-wrapper:has(+ .table-wrapper tbody) {
    display: flex;
    gap: 1em;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
    width: fit-content;
    padding: 1em;
}

td.small {
    max-width: 200px;
    overflow: auto;
}

.text[value=""]::before {
    content: "Edit Value";
    color: gray;
}

table td::-webkit-scrollbar {
    height: 5px;
}

/* Track */
table td::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px 3;
    border-radius: 10px;
}

/* Handle */
table td::-webkit-scrollbar-thumb {
    background: #31a738;
    border-radius: 10px;
}

.new {
    background-color: transparent;
    color: black;
    border: none;
    padding: .5em 1em;
}

.generate,
.change {
    background-color: #3156a7;
    color: white;
    border: none;
    padding: .5em 1em;
    margin: 1em;
    margin-left: auto;
    display: flex;
    cursor: pointer;
}

.change {
    background-color: #31a738;
}

.buttons {
    width: fit-content;
    display: flex;
    margin-left: auto;
}

@media screen and (max-width: 700px) {
    #inputs {
        overflow-x: auto;
        display: block;
    }
}

.orderMenu {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;

    background-color: white;
    padding: 2em 3em 1em 3em;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
    min-width: 300px;
    display: none;

    #utmparts {
        margin: 1em;
        display: flex;
        flex-direction: column;
    }

    #utmparts>* {
        display: block;
        background-color: #3156a7;
        color: white;
        border: none;
        font-size: 13px;
        white-space: nowrap;
        padding: .25em .5em;
        margin: 0.5em;
        cursor: grab;
    }
}

.hint{
    background-color: #607093 !important;
}

.active{
    background-color: #34A853 !important;
}
.site-header + .site-content .bg-box.top-area {
    margin-top: -130px;
}