/* Default
----------------------------------------------------------------------------------*/

:root {
    --font-family: 'Exo 2';
    --bg-default: #E7EFFB;
    --bg-light: #F9FBFC;
}

body {
    background: var(--bg-default);
    font-family: var(--font-family);
}

#app {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-family: var(--font-family);
}

.cursor-pointer {
    cursor: pointer;
}

.text-decoration-none,
.text-decoration-none:hover {
    text-decoration: none;
}

.hidden {
    display: none;
}


/* Buttons
----------------------------------------------------------------------------------*/

.btn-primary {
    background: #1F1653;
    border: 0;
    border-radius: 8px;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:active:focus,
.btn-primary:not(:disabled):hover,
.btn-primary:not(:disabled):not(.disabled):active:focus {
    background: #00CFFF;
    color: #1F1653;
}

.btn-primary.btn-hightlight {
    animation: shadow-pulse 1s infinite;
}

.btn-primary.btn-active {
    background: #00CFFF;
}

.btn-success {
    background: #38c172;
    border: 0;
    border-radius: 8px;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success:active:focus,
.btn-success:not(:disabled):hover,
.btn-success:not(:disabled):not(.disabled):active:focus {
    background: #6cc291;
    color: #FFFFFF;
}

.btn-danger {
    background: #e3342f;
    border: 0;
    border-radius: 8px;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger:active:focus,
.btn-danger:not(:disabled):hover,
.btn-danger:not(:disabled):not(.disabled):active:focus {
    background: #da6b69;
    color: #FFFFFF;
}

.btn-default {
    background: #FFFFFF;
    border: 0;
    border-radius: 8px;
    color: #6D7587;
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default:active:focus,
.btn-default:not(:disabled):hover,
.btn-default:not(:disabled):not(.disabled):active:focus {
    background: #DDDDDD;
    color: #6D7587;
}

.b-top-and-bottom-left-radius-none {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

.b-top-and-bottom-right-radius-none {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.btn.disabled {
    cursor: not-allowed;
}

.text-sm {
    font-size: .8rem;
}

.popover-navigation button.disabled {
    display: none;
}

/* Inputs
----------------------------------------------------------------------------------*/

.pretty {
    margin-right: 0;
}

.color-picker {
    height: 40px;
    width: 100%;
    border: 1px solid #DFDFDF;
    padding: 0 12px;
    border-radius: 8px;
    overflow: hidden;
    outline: none;
    cursor: pointer;
    margin-bottom: 10px;
}


/* Table
----------------------------------------------------------------------------------*/

.table-responsive {
    border-radius: 8px;
}

.table thead th {
    background: #e9e9e9;
    border-bottom: 0;
}

.table th,
.table td {
    white-space: nowrap;
    vertical-align: middle;
    border: 0;
    color: #767676;
}

tr .min {
    width: 1%;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: #FAFAFA;
}

.table-striped tbody tr:nth-of-type(even) {
    background: #FFFFFF;
}

.container-btn-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding: 0 20px;
}

.container-btn-actions .btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 46px;
    margin: 0 5px;
    text-decoration: none;
}

.container-filters {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .container-filters .form-control,
    .container-filters .btn {
        flex: 1 1 100%;
    }
}

@media (min-width: 769px) {
    .container-filters .search-input {
        flex: 0 0 50%; /* Barra de pesquisa ocupa 50% */
    }

    .container-filters .category-select,
    .container-filters .paginate-select {
        flex: 0 0 20%; /* Cada select ocupa 20% */
    }

    .container-filters .filter-btn {
        flex: 0 0 10%; /* Botão de filtro ocupa 10% */
    }
}


/* Modal
----------------------------------------------------------------------------------*/

.modal-content {
    background: #FEFEFE;
    border: 1px solid #FAFAFA;
    box-shadow: -5px -5px 19px 0 #FAFBFF, 5px 5px 10px 0 #A6ABBD;
    border-radius: 8px;
}

.modal-header {
    border-bottom: 0;
}

.modal-title {
    color: #002868;
    font-weight: 300;
}

.modal-footer {
    border-top: 0;
}

.modal-backdrop {
    background: #FFFFFF;
}

.modal-backdrop.show {
    opacity: .75;
}


/* Form
----------------------------------------------------------------------------------*/

input.form-control::placeholder {
  color: #999999;
  font-style: italic;
}

.form-control {
    background: #FFFFFF;
    color: #495057;
    border: 1px solid #B3B3B3;
    border-radius: 8px;
}

.form-control:focus {
    color: #495057;
    border: 1px solid #B3B3B3;
    outline: 0;
}

.label {
    font-size: 14px;
    color: #666666;
}

.label-img {
    height: 80px;
    border: 1px dashed #CCCCCC;
    border-radius: 8px;
    font-size: 1.25rem;
    color: #6D7587;
    font-weight: 500;
    cursor: pointer;
    display: block;
    line-height: 80px;
    padding: 0 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
}

.label-img ul li {
    line-height: 20px;
}

.input-file-hidden {
    visibility: hidden;
    position: absolute;
}


.gallery-list .gallery-content {
    display: grid;
    grid-gap: 0;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    position: relative;
}

.gallery-list .gallery-content  .media-gallery-item {
    min-height: 220px;
    display: flex;
    flex: 1 1 220px;
    overflow: hidden;
    padding: 7px;
    position: relative;
    vertical-align: top;
    max-width: 100%;
    min-width: 0;
    color: rgba(0,0,0,.72);
    touch-action: pan-x pan-y;
}

.gallery-list .gallery-content .media-gallery-item .delete {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ea4335;
    text-align: center;
    border-radius: 50%;
    z-index: 1;
    color: #FFF;
    font-size: 1rem;
    width: 40px;
    height: 40px;
    display: block;
    line-height: 38px;
}

.gallery-list .gallery-content .media-gallery-item .content {
    background-color: #fff;
    border: 1px solid #dadce0;
    border-radius: 6px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: box-shadow 200ms cubic-bezier(0.4,0.0,0.2,1);
    min-width: 100%;
}

.gallery-list .gallery-content .media-gallery-item .content .preview-area {
    flex: 1 1 auto;
    position: relative;
    width: 100%;
}

.gallery-list .gallery-content .media-gallery-item .content .preview-area .preview {
    background-color: #fff;
    height: 100%;
    left: 0;
    overflow: hidden;
    position: absolute;
    text-align: center;
    top: 0;
    transition: opacity 200ms ease-in-out;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
}

.gallery-list .gallery-content .media-gallery-item .content .preview-area .preview.preview-image {
    background-size: cover;
}

.gallery-list .gallery-content .media-gallery-item .content .info-area {
    display: flex;
    flex: 0 0 48px;
}

.gallery-list .gallery-content .media-gallery-item .content .info-area .icon-area {
    flex: 0 0 auto;
    height: 24px;
    padding: 12px 16px;
    position: relative;
    width: 24px;
    z-index: 1;
}

.gallery-list .gallery-content .media-gallery-item .content .info-area .icon-area .icon-box {
    height: 24px;
    position: relative;
    width: 24px;
}

.gallery-list .gallery-content .media-gallery-item .content .info-area .icon-area .icon-box > img {
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 16px;
    width: 16px;
}

.gallery-list .gallery-content .media-gallery-item .content .info-area .title {
    align-self: center;
    box-sizing: border-box;
    flex: 1 1 auto;
    font-weight: 500;
    overflow: hidden;
    padding-left: 12px;
    padding-right: 12px;
    position: relative;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: calc(100% - 56px);
}


/* Card
----------------------------------------------------------------------------------*/
.card {
    border: 0;
    border-radius: 8px;
}

.card-body {
    padding: 20px;
}


/* Layout
----------------------------------------------------------------------------------*/

#layout-container {
    width: 100%;
    position: relative;
}

@media screen and (min-width: 991px) {
    #layout-container {
        width: calc(100% - 80px);
    }
}

.title-section {
    font-size: 42px;
    font-weight: 300;
    color: #002868;
}


/* Catalog
----------------------------------------------------------------------------------*/

.container-catalog-options {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.catalog-option {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px;
}

.catalog-option-input {
    visibility: hidden;
    position: absolute;
}

.catalog-option-label {
    height: 100px;
    width: 100px;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}

.catalog-option-input:checked ~ .catalog-option-label {
    border: 2px solid #6087d0;
}

.catalog-option-input:disabled ~ .catalog-option-label {
    opacity: .5;
    cursor: not-allowed;
}


.catalog-option-icon {
    font-size: 25px;
    margin-bottom: 10px;
    color: #6D7587;
}

.catalog-option-text {
    font-size: 14px;
    color: #6D7587;
}

.img-list-prod {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.bootstrap-maxlength {
    font-size: 80%;
    color: #888;
}

.trumbowyg-box {
    margin: 0;
}


/* Login
----------------------------------------------------------------------------------*/

.adverstising-image-link {
    max-width: 500px;
    margin: 0 auto;
}



/* Massive actions
----------------------------------------------------------------------------------*/
.container-massive-actions {
    position: fixed;
    bottom: 2rem;
    width: 90%;
    justify-self: anchor-center;
    border-radius: 8px;
    overflow: hidden;
    height: 70px;
    z-index: 99;
    background: #FFFFFF;
    display: flex;
    align-items: center;
}

.massive-actions-count-items {
    height: 100%;
    min-width: 70px;
    color: #FFFFFF;
    background: var(--primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.massive-actions-body {
    width: calc(100% - 70px);
}

.massive-actions-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

@media screen and (min-width: 992px) {
    .container-massive-actions {
        width: 60%;
    }
}


.img-float-top-left {
    position: absolute;
    top: 28px;
    left: 20px;
}

.product-actions button,
.product-actions a {
    @media (max-width: 768px) {
        width: 100%;
    }
}
