/*
    File: css/custom.css
    Author: Crece Consultores
*/
.select2-container--default .select2-selection--single {
    height: calc(1.5em + 0.75rem + 2px) !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

/* table-sortable */
.table-sortable tr .btn-drag {
    opacity: 0;
}

.table-sortable tr:hover .btn-drag {
    opacity: 1;
}

/* sortable-thumbnail */
.sortable-thumbnail-container {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.sortable-thumbnail-container .sortable-thumbnail {
    margin: 3px 3px 3px 0;
    padding: 1px;
    float: left;
    width: 90px;
    height: 90px;
    text-align: center;
    position: relative;
}

.sortable-thumbnail-container .sortable-thumbnail .img-thumbnail {
    display: block;
    width: 90px;
    height: 90px;
    object-fit: cover;
    object-position: center center;
}

.sortable-thumbnail-container .sortable-thumbnail .thumbnail-badges {
    position: absolute;
    display: block;
    right: 5px;
    top: 5px;
}

.sortable-thumbnail-container .sortable-thumbnail .thumbnail-badges .thumbnail-badge {
    color: white;
}

/* media-thumbnail */
.media-thumbnail {
    position: relative;
}

.media-thumbnail .img-thumbnail {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center center;
}

.media-thumbnail .thumbnail-badges {
    position: absolute;
    display: block;
    right: 5px;
    top: 5px;
}

/* column-sort */
.column-sort {
}

.column-sort .btn {
    padding: 0em;
    font-size: 12px;
    line-height: 0.4em;
}

.column-sort .btn:first-child {
    padding-top: 0.3em;
}

.column-sort .btn:last-child {
    padding-bottom: 0.3em;
}

.column-sort .btn .fa {
    line-height: 0em;
}

/* table-scrolleable */
.table-scrolleable table {
    display: flex;
    flex-flow: column;
    width: 100%;
}

.table-scrolleable thead, 
.table-scrolleable tfoot { 
    flex: 0 0 auto;
}

.table-scrolleable tbody {
    flex: 1 1 auto;
    display: block;
    height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
}

.table-scrolleable thead tr,
.table-scrolleable tbody tr,
.table-scrolleable tfoot tr {
    width: 100%;
    display: table;
}

/* sortable-list */
.sortable-list {
    list-style: none;
    padding: 0;
}

.sortable-list .sortable-element {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sortable-list .sortable-element .element-main {
    color: black;
    cursor: pointer;
}

.sortable-list .sortable-element .element-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: contain;
    object-position: center center;
}

/* file-input */
.input.form-control[type="file"]::-webkit-file-upload-button {
    visibility: hidden;
}
.input.form-control[type="file"]::before {
    content: 'Selecciona un archivo';
    display: inline-block;
    background: linear-gradient(top, #f9f9f9, #e3e3e3);
    border: 1px solid #999;
    border-radius: 3px;
    padding: 5px 8px;
    outline: none;
    white-space: nowrap;
    -webkit-user-select: none;
    cursor: pointer;
    text-shadow: 1px 1px #fff;
    font-weight: 700;
    font-size: 10pt;
}
.input.form-control[type="file"]:hover::before {
    border-color: black;
}
.input.form-control[type="file"]:active::before {
    background: -webkit-linear-gradient(top, #e3e3e3, #f9f9f9);
}

/* search-modal */
#search-modal .search-modal-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    object-position: center center;
    padding: 5px;
}

/* btn-login */
.btn-login {
    background-color: #0c51dc;
    color: white;
}