/* ENDERECO: MAPA COM O PIN DO ENDERECO */
.endereco-mapa {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 380px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    border: 1px solid #e2e7ea;
}

.endereco-mapa iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.endereco-mapa-vazio {
    display: none;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #f2f6fc;
    color: #8a97a3;
    font-size: 13px;
}

.endereco-mapa-vazio i {
    font-size: 30px;
    color: #b9cbe4;
}

/* PARAMETROS: CABECALHO E GRID DE MIDIAS (LOGO, LOGO ESCURO, FAVICON, MEC) */
.midia-cabecalho {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.midia-cabecalho-icone {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background-color: #eaf2fd;
    color: #3c8dbc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.midia-cabecalho-titulo {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .5px;
    color: #5a6a72;
    text-transform: uppercase;
}

.midia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.midia-card {
    display: flex;
    flex-direction: column;
}

.midia-preview {
    height: 190px;
    border: 1px dashed #b9cbe4;
    border-radius: 6px;
    background-color: #f2f6fc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}

.midia-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.midia-preview-vazio {
    color: #8a97a3;
    font-size: 13px;
    text-align: center;
    padding: 0 10px;
}

.midia-preview-vazio i {
    display: block;
    font-size: 22px;
    margin-bottom: 6px;
}

.midia-titulo {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.midia-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    border: 1px solid #dde3e8;
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
    color: #3c8dbc;
    font-weight: normal;
    margin-bottom: 0;
    transition: border-color .15s ease, background-color .15s ease;
}

.midia-upload:hover {
    background-color: #f7fafd;
    border-color: #b9cbe4;
}

.midia-upload strong {
    color: #3c8dbc;
}

.midia-upload-hint {
    color: #999;
    font-size: 12px;
}

.midia-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.midia-remover {
    margin-top: 10px;
    border: none;
    border-radius: 6px;
    background-color: #fdecea;
    color: #dd4b39;
    font-weight: 600;
    padding: 8px 0;
    width: 100%;
}

.midia-remover:hover {
    background-color: #fbdbd7;
}

/* GRID DE REDES SOCIAIS */
.rede-social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.rede-social-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rede-social-icone {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
}

.rede-social-icone-facebook {
    background-color: #3b5998;
}

.rede-social-icone-instagram {
    background-image: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.rede-social-icone-youtube {
    background-color: #cc181e;
}

.rede-social-icone-linkedin {
    background-color: #0077b5;
}

.rede-social-icone-twitter {
    background-color: #1da1f2;
}

.rede-social-icone-whatsapp {
    background-color: #25d366;
}

/* WHATSAPP: LISTA DE MULTIPLOS NUMEROS */
.whatsapp-builder {
    margin-bottom: 8px;
}

.whatsapp-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef1f3;
}

.whatsapp-item .whatsapp-label {
    flex: 0 0 180px;
}

.whatsapp-item .whatsapp-numero {
    flex: 0 0 160px;
}

.whatsapp-opcao {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: normal;
    color: #666;
    white-space: nowrap;
    margin: 0;
}

.whatsapp-opcao input[type="checkbox"] {
    margin: 0;
}

/* TITULOS DE SECAO EM FORMULARIOS (ex: SEO) */
.seo-secao-titulo {
    color: #444;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.seo-secao-titulo i {
    color: #3c8dbc;
    margin-right: 6px;
}

.seo-secao-titulo small {
    font-weight: normal;
}

/* HORARIO DE ATENDIMENTO (estilo Google Meu Negocio / WhatsApp Business) */
.horario-atendimento {
    border: 1px solid #e2e7ea;
    border-radius: 6px;
    overflow: hidden;
}

.horario-dia {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #eef1f3;
    background-color: #fff;
}

.horario-dia:last-child {
    border-bottom: none;
}

.horario-dia-toggle {
    width: 170px;
    flex-shrink: 0;
}

.horario-dia-toggle label {
    font-weight: 500;
    color: #444;
    margin: 0;
}

.horario-dia-periodos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.horario-periodo {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 6px;
}

.horario-periodo input[type="time"] {
    width: 110px;
    display: inline-block;
}

.horario-periodo span {
    color: #999;
}

.horario-dia-fechado {
    font-style: italic;
}

/* DEGRADE SUTIL NA SIDEBAR (mantem a cor do skin ativo, so adiciona profundidade) */
.main-sidebar {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.22) 100%);
}

/* TABS MODERNIZADAS (abas dinamicas do sistema: #abasSistemas / nav-tabs-custom) */
.nav-tabs-custom > .nav-tabs {
    border-bottom-color: #e2e7ea;
}

.nav-tabs-custom > .nav-tabs > li {
    border-top: none;
    margin-bottom: 0;
    margin-right: 4px;
}

.nav-tabs-custom > .nav-tabs > li > a {
    border-radius: 6px 6px 0 0;
    padding: 10px 16px;
    font-weight: 500;
    color: #5a6a72;
    background-color: #f4f6f8;
    transition: background-color .15s ease, color .15s ease;
}

.nav-tabs-custom > .nav-tabs > li:not(.active) > a:hover {
    background-color: #e8edf0;
    color: #2c3b41;
    border-color: transparent;
}

.nav-tabs-custom > .nav-tabs > li.active > a,
.nav-tabs-custom > .nav-tabs > li.active:hover > a {
    background-color: #fff;
    color: #222d32;
    border-color: transparent;
    box-shadow: inset 0 -3px 0 #3c8dbc;
}

.nav-tabs-custom > .nav-tabs .iconeFecharTab {
    margin-left: 8px;
    padding: 2px 5px;
    border-radius: 50%;
    opacity: .55;
    transition: opacity .15s ease, background-color .15s ease;
}

.nav-tabs-custom > .nav-tabs .iconeFecharTab:hover {
    opacity: 1;
    background-color: rgba(221, 75, 57, .12);
}

#depreload {
    background-size: cover;
    background-color: #f4f4f4;
    position: fixed;
    text-align: center;
    z-index: 999;
    height: 100%
}

#depreload div {
    margin-top: 15%;
}

.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}

.error {
    color: #f50;
    padding: 2px;
}

.input-error {
    border: 1px solid #F50;
    color: #F50;
}

.btn-bluerc {
    color: #FFFFFF;
    background-color: #021826;
    border-color: #021826;
    border-radius: 5px !important;
}

.btn-bluerc:hover,
.btn-bluerc:focus,
.btn-bluerc:active,
.btn-bluerc.active,
.open .dropdown-toggle.btn-bluerc {
    color: #FFFFFF;
    background-color: #14557D;
    border-color: #021826;
    border-radius: 5px;
}

.btn-bluerc:active,
.btn-bluerc.active,
.open .dropdown-toggle.btn-bluerc {
    background-image: none;
    border-radius: 5px;
}

.btn-bluerc.disabled,
.btn-bluerc[disabled],
fieldset[disabled] .btn-bluerc,
.btn-bluerc.disabled:hover,
.btn-bluerc[disabled]:hover,
fieldset[disabled] .btn-bluerc:hover,
.btn-bluerc.disabled:focus,
.btn-bluerc[disabled]:focus,
fieldset[disabled] .btn-bluerc:focus,
.btn-bluerc.disabled:active,
.btn-bluerc[disabled]:active,
fieldset[disabled] .btn-bluerc:active,
.btn-bluerc.disabled.active,
.btn-bluerc[disabled].active,
fieldset[disabled] .btn-bluerc.active {
    background-color: #021826;
    border-color: #021826;
}

.btn-bluerc .badge {
    color: #021826;
    background-color: #FFFFFF;
}

.btn-bordorc {
    color: #FFFFFF;
    background-color: #8C0444;
    border-color: #8C0444;
    border-radius: 5px;
}

.btn-bordorc:hover,
.btn-bordorc:focus,
.btn-bordorc:active,
.btn-bordorc.active,
.open .dropdown-toggle.btn-bordorc {
    color: #FFFFFF;
    background-color: #470021;
    border-color: #8C0444;
    border-radius: 5px;
}

.btn-bordorc:active,
.btn-bordorc.active,
.open .dropdown-toggle.btn-bordorc {
    background-image: none;
    border-radius: 5px;
}

.btn-bordorc.disabled,
.btn-bordorc[disabled],
fieldset[disabled] .btn-bordorc,
.btn-bordorc.disabled:hover,
.btn-bordorc[disabled]:hover,
fieldset[disabled] .btn-bordorc:hover,
.btn-bordorc.disabled:focus,
.btn-bordorc[disabled]:focus,
fieldset[disabled] .btn-bordorc:focus,
.btn-bordorc.disabled:active,
.btn-bordorc[disabled]:active,
fieldset[disabled] .btn-bordorc:active,
.btn-bordorc.disabled.active,
.btn-bordorc[disabled].active,
fieldset[disabled] .btn-bordorc.active {
    background-color: #8C0444;
    border-color: #8C0444;
}

.btn-bordorc .badge {
    color: #8C0444;
    background-color: #FFFFFF;
}

.login-box-body .form-control-feedback,
.register-box-body .form-control-feedback {
    color: #021826;
}

.linkTable {
    color: #666 !important;
}

.pagination>.active>a,
.pagination>.active>a:focus,
.pagination>.active>a:hover,
.pagination>.active>span,
.pagination>.active>span:focus,
.pagination>.active>span:hover {
    background-color: #222d32 !important;
    border-color: #222d32 !important;
}

th {
    font-size: 14px !important;
}

label {
    font-weight: normal;
}


/* GALERIA */

#masonry {
    column-count: 2;
    column-gap: 1em;
}

@media(min-width: 30em) {
    #masonry {
        column-count: 3;
        column-gap: 1em;
    }
}

@media(min-width: 40em) {
    #masonry {
        column-count: 4;
        column-gap: 1em;
    }
}

@media(min-width: 60em) {
    #masonry {
        column-count: 5;
        column-gap: 1em;
    }
}

@media(min-width: 75em) {
    #masonry {
        column-count: 6;
        column-gap: 1em;
    }
}

.item {
    background-color: none;
    display: inline-block;
    margin: 0 0 1em 0;
    width: 100%;
    cursor: pointer;
}

.item img {
    max-width: 100%;
    height: auto;
    width: 100%;
    margin-bottom: -4px;
    /*idk why but this fix stuff*/
}

.item.active {
    animation-name: active-in;
    animation-duration: 0.7s;
    animation-fill-mode: forwards;
    animation-direction: alternate;
}

.item.active:before {
    content: "+";
    transform: rotate(45deg);
    font-size: 48px;
    color: white;
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    text-align: center;
    line-height: 48px;
    z-index: 12;
}

.item.active img {
    animation-name: active-in-img;
    animation-duration: 0.7s;
    animation-fill-mode: forwards;
    animation-direction: alternate;
}

@keyframes active-in {
    0% {
        opacity: 1;
        background-color: white;
    }
    50% {
        opacity: 0;
        background-color: rgba(0, 0, 0, 0.90);
    }
    100% {
        opacity: 1;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.90);
    }
}

@keyframes active-in-img {
    0% {
        opacity: 1;
        transform: translate(0%, 0%);
        top: 0;
        left: 0;
        max-width: 100%;
    }
    49% {
        opacity: 0;
        transform: translate(0%, -50%);
    }
    50% {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -100%);
    }
    100% {
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90%;
        width: auto;
        max-height: 95vh;
        opacity: 1;
    }
}

.checkImage {
    display: none !important;
}

.labelCheck {
    border: 1px solid #fff;
    padding: 10px;
    display: block;
    position: relative;
    margin: 5px;
    cursor: pointer;
}

.labelCheck:before {
    background-color: white;
    color: white;
    z-index: 99;
    content: " ";
    display: block;
    border-radius: 50%;
    border: 1px solid rgb(255, 255, 255);
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 23px;
    transition-duration: 0.4s;
    transform: scale(0);
}

:checked+label {
    border-color: #ddd;
}

:checked+label:before {
    font-family: "FontAwesome";
    content: "\f014";
    background-color: rgb(224, 39, 39);
    transform: scale(1);
}

:checked+label img {
    transform: scale(0.9);
    box-shadow: 0 0 5px #333;
    z-index: -1;
}

.btnZoom {
    float: right;
    position: absolute;
    z-index: 9;
    border-radius: 100%;
    width: 26px;
    padding-left: 7px;
}