/* Sort Fields Search */
.gk-gravityexport-sort-fields__search {
    grid-column: 1 / -1;
    margin-bottom: 1em;
}

.gk-gravityexport-sort-fields__search-input-wrapper {
    position: relative;
    display: block;
}

.gform-settings-panel__content input[type=search].gk-gravityexport-sort-fields__search-input {
    width: 100%;
    padding: .6875rem 1rem .6875rem 2rem;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.gform-settings-panel__content input[type=search].gk-gravityexport-sort-fields__search-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.gform-settings-panel__content input[type=search].gk-gravityexport-sort-fields__search-input::placeholder {
    color: #757575;
}

.gk-gravityexport-sort-fields__search-icon {
    position: absolute;
    left: 12px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    color: #757575;
    pointer-events: none;
}

.gk-gravityexport-sort-fields__search-status {
    display: none;
    margin-top: 8px;
    padding: 10px 12px;
    background-color: #f0f0f1;
    border-radius: 4px;
    color: #50575e;
    font-size: 13px;
}

.gk-gravityexport-sort-fields__search-status.is-active {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gk-gravityexport-sort-fields__search-status.is-no-results {
    background-color: #fcf0f1;
    color: #8a2424;
}

.gk-gravityexport-sort-fields__clear-search {
    color: #2271b1;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    margin-left: 1em;
}

.gk-gravityexport-sort-fields__clear-search:hover,
.gk-gravityexport-sort-fields__clear-search:focus {
    color: #135e96;
    text-decoration: underline;
    outline: none;
    box-shadow: 0 0 0 2px #2271b1;
    border-radius: 2px;
}

/* Hidden fields (filtered out) */
ul.fields-select li.gk-gravityexport-sort-fields__hidden {
    display: none !important;
}

#gform_setting_export-fields .gk-gravityexport-sort-fields {
    border: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1em;
}

/* Enable/Disable all buttons */
.gk-gravityexport-sort-fields button {
    background: none;
    border: 0;
    float: right;
    margin-top: -30px;
    color: #3e7da6;
    cursor: pointer;
    transition: color 0.15s ease-in-out;
}

.gk-gravityexport-sort-fields button:hover {
    text-decoration: underline;
}

.gk-gravityexport-sort-fields button:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
    border-radius: 2px;
}

.gk-gravityexport-sort-fields button:focus:not(:focus-visible) {
    outline: none;
}

.gk-gravityexport-sort-fields button:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
    border-radius: 2px;
}

ul.fields-select {
    background-color: #FFF;
    padding: 2px 5px;
    border: 1px solid #E1E1E1;
    min-height: 30px;
    border-radius: 4px;
    max-width: 100%;
}

ul.fields-select#export-fields-enabled .move i.fa-arrow-right,
ul.fields-select#export-fields-disabled .fa-bars,
ul.fields-select#export-fields-disabled .move i.fa-close {
    display: none;
}

ul.fields-select#export-fields-enabled {
    border: 1px solid #1e8cbe;
}

ul.fields-select .fa-bars {
    color: #ccd0d4;
    margin: 0;
}

ul.fields-select .fa {
    padding: 5px;
}

ul.fields-select li > div.field {
    display: flex;
    flex-grow: 1;
    align-items: center;
    overflow: hidden;
}

ul.fields-select li > div.field span {
    margin-left: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

ul.fields-select li > div.move {
    font-weight: bold;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}

ul.fields-select li div.move:hover {
    color: #006899;
}

ul.fields-select li div.move:focus {
    color: #006899;
    outline: 2px solid #2271b1;
    outline-offset: 2px;
    border-radius: 2px;
}

ul.fields-select li div.move:focus:not(:focus-visible) {
    outline: none;
}

ul.fields-select li div.move:focus-visible {
    color: #006899;
    outline: 2px solid #2271b1;
    outline-offset: 2px;
    border-radius: 2px;
}

ul.fields-select li {
    display: flex;
    background-color: #f7f7f7;
    margin: 4px 0;
    padding: 6px;
    -webkit-transition: background-color 100ms ease-in-out, color 100ms ease-in-out;
    -ms-transition: background-color 100ms ease-in-out, color 100ms ease-in-out;
    transition: background-color 100ms ease-in-out, color 100ms ease-in-out;
}

ul.fields-select li:first-child {
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

ul.fields-select li:last-child {
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}

ul.fields-select .ui-sortable-handle {
    cursor: pointer;
    cursor: -webkit-grab;
}

ul.fields-select .ui-sortable-handle:hover {
    background-color: #F0F0F0;
}

ul.fields-select li:focus {
    background-color: #F0F0F0;
    outline: 2px solid #2271b1;
    outline-offset: -2px;
}

ul.fields-select li:focus:not(:focus-visible) {
    outline: none;
}

ul.fields-select li:focus-visible {
    background-color: #F0F0F0;
    outline: 2px solid #2271b1;
    outline-offset: -2px;
}

ul.fields-select li.light-up {
    background-color: #006799;
    color: #FFF;
}

ul.fields-select li.light-up i {
    color: #fff;
}

ul.fields-select .ui-sortable-handle:active,
ul.fields-select .ui-sortable-helper {
    cursor: -webkit-grabbing;
}

.download-block {
    display: inline-flex;
    flex-wrap: wrap;
    padding: 3px 0;
}

.download-block .date-field {
    margin-right: 10px;
    width: 200px;
}

.download-block .download-button {
    margin-top: 10px;
    flex-basis: 100%;
}

fieldset.gk-gravityexport-download-file {
    border: 1px solid #006899;
}

fieldset.gk-gravityexport-download-file .gform-settings-panel__title--header {
    background-color: #006899;
    color: #FFF;
}

fieldset.gk-gravityexport-download-file .gform-settings-panel__content {
    border-top: 0;
    border-radius: 2px;
    background-color: #ebf2fa;
}

.gfexcel-addon-gravityexport-lite #gform_setting_order_by .gform-settings-nested-fields {
    display: flex;
    border: 0;
    padding: 0;
    margin: 0;
}

.gfexcel-addon-gravityexport-lite #gform_setting_order_by #gform_setting_sort_order {
    margin-left: 5px;
}

.gfexcel-addon-gravityexport-lite #gform_setting_order_by #gform_setting_sort_order select {
    width: auto;
    max-width: 100%;
}

.gfexcel-addon-gravityexport-lite .gform-settings-panel__content input.small,
.gfexcel-addon-gravityexport-lite .gform-settings-panel__content select.small,
.gfexcel-addon-gravityexport-lite .gform-settings-panel__content textarea.small {
    max-width: 25%;
}

.gfexcel-addon-gravityexport-lite .gform-settings-panel__content input.medium,
.gfexcel-addon-gravityexport-lite .gform-settings-panel__content select.medium,
.gfexcel-addon-gravityexport-lite .gform-settings-panel__content textarea.medium {
    max-width: 50%;
}

.gform-settings-field__download_url span.success {
    margin: 10px 5px 0 0;
    display: inline-block;
}

.gform-settings-field__download_url span.success.hidden {
    display: none;
}

.gform-settings-choice.gk-gravityexport-meta-all {
    margin-top: 5px;
    border-bottom: 1px solid #ebebf2;
    padding-bottom: 10px;
}

.gform-settings-panel .copy-short-code {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gform-settings-panel .copy-short-code .input {
    flex: 1;
    margin-right: 1rem;
}

.gform-settings-panel .copy-short-code .success {
    margin-right: 1rem;
}

/* RTL Support */
.rtl .gform-settings-panel__content input[type=search].gk-gravityexport-sort-fields__search-input {
    padding: .6875rem 2rem .6875rem 1rem;
}

.rtl .gk-gravityexport-sort-fields__search-icon {
    left: auto;
    right: 12px;
}

.rtl .gk-gravityexport-sort-fields__clear-search {
    margin-left: 0;
    margin-right: 1em;
}

.rtl ul.fields-select li > div.field span {
    margin-left: 0;
    margin-right: 5px;
}

.rtl ul.fields-select .fa-bars {
    margin-left: 8px;
    margin-right: 0;
}

.rtl ul.fields-select .move .fa-arrow-right {
    transform: scaleX(-1);
}

.rtl .gk-gravityexport-sort-fields button {
    float: left;
}

.rtl .download-block .date-field {
    margin-right: 0;
    margin-left: 10px;
}

.rtl .gfexcel-addon-gravityexport-lite #gform_setting_order_by #gform_setting_sort_order {
    margin-left: 0;
    margin-right: 5px;
}

.rtl .gform-settings-field__download_url span.success {
    margin: 10px 0 0 5px;
}

.rtl .gform-settings-panel .copy-short-code .input {
    margin-right: 0;
    margin-left: 1rem;
}

.rtl .gform-settings-panel .copy-short-code .success {
    margin-right: 0;
    margin-left: 1rem;
}
