.btn-outline{
	width: 30px;
	height: 25px;
	font-size: 10px;
	margin-top: -7px;
	padding-left: 4px;
	padding-top: 2px;
}

.link-active{
	background-color: #8531FA;
	color: #fff;
}

.td-icon i{
	font-size: 22px;
}

button.px-5{
	float: right;
	height: 40px;
	width: 220px;
}

#image-preview {
	width: 200px;
	height: 200px;
	position: relative;
	overflow: hidden;
	background-color: #ffffff;
	color: #ecf0f1;
	border: 1px solid #CACED2;
	border-radius: 50%;
}

.img-default{
	width: 200px;
	height: 200px;
	margin-left: -7px;
}

/* imagem do template */

.img-template img{
	width: 400px;
	height: 200px;
	border: 1px solid rgb(162, 179, 162);
	border-radius: 5px;
}

.img-template-active img{
	width: 400px;
	height: 200px;
	border: 3px solid green;
	border-radius: 5px;
}

#image-preview input {
	line-height: 200px;
	font-size: 200px;
	position: absolute;
	opacity: 0;
	z-index: 10;
}

#image-preview label {
	position: absolute;
	z-index: 5;
	opacity: 0.8;
	cursor: pointer;
	background-color: #8833FF;
	height: 50px;
	font-size: 15px;
	line-height: 50px;
	text-transform: uppercase;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	text-align: center;
}

.img-round{
	height: 30px;
	border-radius: 50%;
}


/* Imagem da configuração Ecommerce */


._image-preview {
	width: 100px;
	height: 100px;
	position: relative;
	overflow: hidden;
	background-color: #ffffff;
	color: #ecf0f1;
	border: 1px solid rgb(151, 153, 156);
	border-radius: 30%;
}

._image-preview input {
	line-height: 100px;
	font-size: 100px;
	position: absolute;
	opacity: 0;
	z-index: 10;
}

._image-preview label {
	position: absolute;
	z-index: 5;
	opacity: 0.8;
	cursor: pointer;
	background-color: #8833FF;
	height: 25px;
	font-size: 12px;
	line-height: 25px;
	text-transform: uppercase;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	text-align: center;
}

.img-default-contato{
	width: 100px;
	height: 100px;
	margin-left: 1px;
}

body.loading {
	overflow: hidden;
}

/* a partir do momento em que o body estiver com a classe loading,  o modal aparecerá */
body.loading .modal-loading {
	display: block;
}

.modal-loading {
	display: none;
	position: fixed;
	z-index: 10000;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: rgba(255, 255, 255, 0.8)
	url("/loading.gif") 50% 50% no-repeat;
}

.required:after {
	content: "*";
	color: red;
}

.tbl-400{
	height: 400px !important;
}

@media screen
and (max-device-width: 480px)
and (orientation: portrait){
	.btn-ip{
		display: none;
	}

	.texto-leitor{
		font-size: 12px !important;
	}

	.is-desktop{
		display: none;
	}

	.btns-pdv div{
		margin-top: 5px !important;
	}

	#salvar_venda{
		margin-top: 35px !important;
	}

	.table-pdv th{
		width: 100px;
	}

	.table-pdv{
		width: 100%;
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}
	.table-pdv input{
		width: 100px;
	}
	.table-pdv button{
		width: 70px;
	}
	.table-pdv .produto-nome{
		width: 300px !important;
	}
}

#salvar_venda{
	margin-right: 10px !important;
}

@media only screen and (min-width: 1025px) {
	.is-mobile{
		display: none;
	}
	.btns-pdv button{
		height: 50px;
	}
	.btn-venda{
		float: right;
	}
}


/* =======================
   SIDEBAR COLAPSÁVEL
   ======================= */

/* --- CONFIGURAÇÃO PADRÃO (MENU ABERTO) --- */
.sidebar-wrapper {
    width: 250px;
    transition: width 0.3s;
}
.page-wrapper {
    margin-left: 250px;
    transition: margin-left 0.3s;
}
.topbar {
    left: 250px;
    transition: left 0.3s;
}
.page-footer {
    left: 250px;
    transition: left 0.3s;
}

/* --- ESTADO RECOLHIDO (SEM HOVER) --- */
body.sidebar-collapsed:not(.sidebar-hovered) .sidebar-wrapper {
    width: 70px !important;
    overflow: visible;
    transition: width 0.3s;
}
body.sidebar-collapsed:not(.sidebar-hovered) .page-wrapper {
    margin-left: 70px !important;
    transition: margin-left 0.3s;
}
body.sidebar-collapsed:not(.sidebar-hovered) .topbar {
    left: 70px !important;
    transition: left 0.3s;
}
body.sidebar-collapsed:not(.sidebar-hovered) .page-footer {
    left: 70px !important;
    transition: left 0.3s;
}

/* --- ESTADO RECOLHIDO (COM HOVER) --- */
body.sidebar-collapsed.sidebar-hovered .sidebar-wrapper {
    width: 250px !important;
    z-index: 999;
    transition: width 0.3s;
}
body.sidebar-collapsed.sidebar-hovered .page-wrapper {
    margin-left: 250px !important;
    transition: margin-left 0.3s;
}
body.sidebar-collapsed.sidebar-hovered .topbar {
    left: 250px !important;
    transition: left 0.3s;
}
body.sidebar-collapsed.sidebar-hovered .page-footer {
    left: 250px !important;
    transition: left 0.3s;
}

/* Oculta textos, setas e submenus quando retraída e SEM hover */
body.sidebar-collapsed:not(.sidebar-hovered) .sidebar-wrapper .menu-title,
body.sidebar-collapsed:not(.sidebar-hovered) .sidebar-wrapper .has-arrow:after,
body.sidebar-collapsed:not(.sidebar-hovered) .sidebar-wrapper .has-arrow .bx-right-arrow-alt,
body.sidebar-collapsed:not(.sidebar-hovered) .sidebar-wrapper .has-arrow .bi-chevron-down,
body.sidebar-collapsed:not(.sidebar-hovered) .sidebar-wrapper ul li ul,
body.sidebar-collapsed:not(.sidebar-hovered) .sidebar-wrapper .has-arrow > span,
body.sidebar-collapsed:not(.sidebar-hovered) .sidebar-wrapper li > a > span:not(.parent-icon) {
    display: none !important;
}

/* Centraliza ícones quando retraída */
body.sidebar-collapsed:not(.sidebar-hovered) .sidebar-wrapper .parent-icon {
    margin-right: 0 !important;
    display: flex;
    justify-content: center;
    width: 100%;
}
body.sidebar-collapsed:not(.sidebar-hovered) .sidebar-wrapper li > a {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ======================================================
   ESTILOS ADICIONAIS: MENU MODERNO E MINIMALISTA
   ====================================================== */

/* 1. Remove a sombra pesada e adiciona uma borda sutil */
.sidebar-wrapper {
    box-shadow: none !important;
    border-right: 1px solid #e9ecef;
}
.dark-theme .sidebar-wrapper,
.semi-dark .sidebar-wrapper {
    border-right: 1px solid #343a40;
}

/* 2. Ajusta os links principais do menu */
.metismenu li a {
    font-size: 14px;
    font-weight: 500;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 2px 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* 3. Alinha os ícones */
.metismenu li a .parent-icon {
    min-width: 40px;
    font-size: 20px;
    line-height: 1;
}

/* 4. Estado de Hover */
.metismenu li:not(.mm-active) a:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--color-default, #0d6efd);
}
.dark-theme .metismenu li:not(.mm-active) a:hover,
.semi-dark .metismenu li:not(.mm-active) a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* 5. Estado Ativo */
.metismenu li.mm-active > a {
    font-weight: 600;
    color: var(--color-default, #0d6efd);
    background-color: rgba(13, 110, 253, 0.08);
    box-shadow: none;
}
.metismenu li.mm-active {
     border-left: 4px solid var(--color-default, #0d6efd);
     margin-left: 0;
     margin-right: 0;
}
.metismenu li.mm-active a {
    margin-left: 6px;
    margin-right: 10px;
}

/* 6. Refinamento dos Submenus */
.metismenu ul {
    background-color: rgba(13, 110, 253, 0.04);
    border-radius: 8px;
    margin: 4px 10px 10px 10px;
    padding: 6px 12px 10px 14px;
    position: relative;
}
.metismenu ul::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    border-radius: 2px;
    background-color: rgba(13, 110, 253, 0.18);
}
.dark-theme .metismenu ul,
.semi-dark .metismenu ul {
    background-color: rgba(255, 255, 255, 0.03);
}
.dark-theme .metismenu ul::before,
.semi-dark .metismenu ul::before {
    background-color: rgba(255, 255, 255, 0.18);
}

/* 7. Links do Submenu */
.metismenu ul li a {
    padding: 8px 12px;
    font-size: 13.5px;
    font-weight: 400;
    color: #2f2f2f;
    margin: 3px 6px;
    position: relative;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.35;
    width: 100%;
}
.dark-theme .metismenu ul li a,
.semi-dark .metismenu ul li a {
    color: #d4d7dc;
}
.metismenu ul li a:hover {
    background-color: rgba(13, 110, 253, 0.12);
    color: var(--color-default, #0d6efd);
}
.dark-theme .metismenu ul li a:hover,
.semi-dark .metismenu ul li a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.metismenu ul li a strong {
    color: #333;
    font-weight: 600;
}
.metismenu ul li > a.has-arrow {
    padding-right: 32px;
}
.metismenu ul li > a.has-arrow strong {
    flex: 1;
}
.dark-theme .metismenu ul li a strong,
.semi-dark .metismenu ul li a strong {
    color: #f1f1f1;
}
.metismenu ul ul li a i.bx-circle {
    font-size: 8px !important;
    vertical-align: middle;
}
.metismenu ul li.mm-active > a {
    color: var(--color-default, #0d6efd);
    font-weight: 500;
    background-color: transparent;
}

/* 9. Logo compacta quando menu recolhido */
body.sidebar-collapsed:not(.sidebar-hovered) .sidebar-wrapper .sidebar-header {
    padding: 12px 8px;
}
body.sidebar-collapsed:not(.sidebar-hovered) .sidebar-wrapper .sidebar-header .logo-icon {
    width: 44px;
    max-width: 44px;
    transition: width 0.2s ease;
}
body.sidebar-collapsed.sidebar-hovered .sidebar-wrapper .sidebar-header .logo-icon,
body:not(.sidebar-collapsed) .sidebar-wrapper .sidebar-header .logo-icon {
    width: 60px;
    max-width: 60px;
}

/* 8. Transições de Colapso */
.sidebar-wrapper,
.page-wrapper,
.topbar,
.page-footer {
    transition: all 0.25s ease-in-out !important;
}

/* ===========================
   BOTÕES DE RECOLHER/EXPANDIR
   =========================== */

/* Por padrão, só mostra o botão de recolher */
#btn-expandir-menu { display: none !important; }
#btn-recolher-menu { display: block !important; }

/* Quando retraído, só mostra o botão de expandir */
body.sidebar-collapsed #btn-recolher-menu { display: none !important; }
body.sidebar-collapsed #btn-expandir-menu { display: block !important; }

/* Sidebar para exibir erros de validacao - DESABILITADO */
/*
#error-sidebar {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 260px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1100;
}
#error-sidebar .error-item { cursor: pointer; }
*/

/* ===================================
   ESTILOS MINIMALISTAS PARA HEADER
   =================================== */

/* Botões minimalistas do cabeçalho */
.btn-header-minimal {
    padding: 4px 10px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    border-radius: 4px !important;
    border-width: 1px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    height: auto !important;
    min-height: 28px !important;
}

.btn-header-minimal i {
    margin: 0 !important;
}

.btn-header-minimal:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Texto minimalista do cabeçalho */
.header-text-minimal {
    font-size: 11px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* Ajustes para botões outline no cabeçalho */
.btn-outline-secondary.btn-header-minimal {
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    background-color: transparent !important;
}

.btn-outline-secondary.btn-header-minimal:hover {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.btn-outline-primary.btn-header-minimal {
    color: #0d6efd !important;
    border-color: #0d6efd !important;
    background-color: transparent !important;
}

.btn-outline-primary.btn-header-minimal:hover {
    color: #fff !important;
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.btn-outline-success.btn-header-minimal {
    color: #198754 !important;
    border-color: #198754 !important;
    background-color: transparent !important;
}

.btn-outline-success.btn-header-minimal:hover {
    color: #fff !important;
    background-color: #198754 !important;
    border-color: #198754 !important;
}

.btn-outline-info.btn-header-minimal {
    color: #0dcaf0 !important;
    border-color: #0dcaf0 !important;
    background-color: transparent !important;
}

.btn-outline-info.btn-header-minimal:hover {
    color: #000 !important;
    background-color: #0dcaf0 !important;
    border-color: #0dcaf0 !important;
}

/* Ajustes para o top-menu */
.top-menu {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.top-menu-left {
    display: flex !important;
    align-items: center !important;
}

/* Ajuste responsivo - esconder textos em telas médias */
@media (max-width: 1200px) {
    .header-text-minimal {
        display: none !important;
    }
    .btn-header-minimal {
        padding: 4px 8px !important;
        gap: 0 !important;
    }
}

