:root {
    /*  Padrão  */
    --template1: #ff8400;
    /* Painel lateral */
    --template2: #df7300;
    /* cor hover */
    --template3: #ff8d13;
}
.field-icon {
  float: right;
  margin-left: -25px;
  margin-top: -25px;
  position: relative;
  z-index: 2;
  margin-right: 8px;
  cursor: pointer;
}
#mensagem-recuperar{
  color: var(--template1) !important;
  font-size: 13px;

}

.select2-selection__rendered {
    font-weight: 500;
    line-height: 36px !important;
    border-radius: 7px !important;
    border: 1px solid #c9c7c7;
}
.select2-container .select2-selection--single {
    height: 39px !important;
}
.select2-selection__arrow {
    height: 38px !important;
}


hr.separador {
  border: 1px dotted #666;
  border-radius: 5px;
}

.select2-selection__rendered {
    line-height: 35px !important;
}
.select2-container .select2-selection--single {
    height: 39px !important;
}
.select2-selection__arrow {
    height: 38px !important;
}
hr.separador {
  border: 1px dotted #666;
  border-radius: 5px;
}
.text-verde{
  color:#0e9e29;
}
.ocultar{
  display:none;
}
.textareag{
    width:1000px;
    height:550px;
}
.side-menu .slide .side-menu__item:hover {
    background-color: var(--template2);

}
.main-sidemenu {
    background-color: #2A2E3F;
}
.app-sidebar {
    background-color: #2A2E3F;
}

.slide-menu {
    border-left: 4px solid #de7b53;
    background-color: #2a2e3f !important;
    color: #ffffff;
}
.side-menu__item a{
    background-color: var(--template2);
    color: #ffffff;
}

.side-menu__item:hover .side-menu__icon,
.side-menu__item:hover .side-menu__label,
.side-menu__item:hover .angle {
    color: #ffffff !important;
    fill: #ffffff !important;

}
.slide-item.active,
.slide-item:hover,
.slide-item:focus {
    text-decoration: none;
    color: var(--template1) !important;

}
.app-sidebar .side-item.side-item-category {
    color: #7660a7;
}
.main-sidebar-header {
    background: #2A2E3F !important;
}
.main-header {
    background-color: #2A2E3F !important;
}
.slide-item .app-sidebar .slide-menu .slide-item:before:hover {
    color: var(--template1) !important;
}
.slide.is-expanded .slide-menu a:hover:before {
   color: var(--template1) !important;
}
.slide:hover .side-menu__label,
.slide:hover .angle {
    color: #fff !important;
    fill: #fff !important;
}
.header-icon-svgs {
    color: #ffffff;
    fill: #ffffff;
}
.font-size-11{
    font-size: 11px !important;
}



/* =====================================================
   TEMA MODERNO ZAPPEDIDO — VERDE E AZUL-MARINHO
   ===================================================== */

:root {
    --template1: #22c55e;
    --template2: #16a34a;
    --template3: #4ade80;

    --cor-sidebar: #172033;
    --cor-sidebar-hover: #24324a;
    --cor-fundo: #f4f7fb;
    --cor-card: #ffffff;
    --cor-texto: #172033;
    --cor-texto-suave: #64748b;
    --cor-borda: #e2e8f0;
    --cor-verde: #16a34a;
    --cor-vermelho: #ef4444;
    --cor-amarelo: #f59e0b;
}

/* Fundo geral do sistema */

body,
.main-body,
.main-content,
.main-content-body,
.page {
    background-color: var(--cor-fundo) !important;
    color: var(--cor-texto);
}

/* Menu lateral */

.main-sidemenu,
.app-sidebar,
.main-sidebar-header {
    background-color: var(--cor-sidebar) !important;
}

/* Barra superior */

.main-header,
.app-header {
    background-color: var(--cor-sidebar) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.10);
}

/* Itens do menu */

.side-menu .side-menu__item {
    border-radius: 9px;
    margin: 3px 10px;
    transition: all 0.20s ease;
}

.side-menu .slide .side-menu__item:hover,
.side-menu__item.active,
.slide.is-expanded > .side-menu__item {
    background-color: var(--cor-sidebar-hover) !important;
    color: #ffffff !important;
}

.side-menu__item:hover .side-menu__icon,
.side-menu__item:hover .side-menu__label,
.side-menu__item:hover .angle,
.side-menu__item.active .side-menu__icon,
.side-menu__item.active .side-menu__label {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* Submenus */

.slide-menu {
    background-color: #1d293d !important;
    border-left: 3px solid var(--template1) !important;
    border-radius: 0 0 8px 8px;
}

.slide-item.active,
.slide-item:hover,
.slide-item:focus {
    color: var(--template3) !important;
}

/* Cards do painel */

.card,
.custom-card,
.widget-card,
.card-dashboard {
    background-color: var(--cor-card) !important;
    border: 1px solid var(--cor-borda) !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.06) !important;
    transition: transform 0.20s ease, box-shadow 0.20s ease;
}

.card:hover,
.custom-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 25px rgba(15, 23, 42, 0.09) !important;
}

/* Textos */

.card-title,
.card-header,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--cor-texto) !important;
}

.text-muted,
small {
    color: var(--cor-texto-suave) !important;
}

/* Botões principais */

.btn-primary {
    background-color: var(--template1) !important;
    border-color: var(--template1) !important;
    color: #ffffff !important;
    border-radius: 8px;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--template2) !important;
    border-color: var(--template2) !important;
}

/* Cores de destaque */

.text-primary {
    color: var(--template2) !important;
}

.bg-primary {
    background-color: var(--template1) !important;
}

.border-primary {
    border-color: var(--template1) !important;
}

/* Ícones dos cards */

.bg-primary-transparent {
    background-color: #dcfce7 !important;
    color: #16a34a !important;
}

.bg-success-transparent {
    background-color: #d1fae5 !important;
    color: #059669 !important;
}

.bg-danger-transparent {
    background-color: #fee2e2 !important;
    color: #dc2626 !important;
}

.bg-warning-transparent {
    background-color: #fef3c7 !important;
    color: #d97706 !important;
}

/* Campos e seletores */

.form-control,
.form-select,
.select2-selection {
    border-color: var(--cor-borda) !important;
    border-radius: 9px !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--template1) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12) !important;
}

/* Tabelas */

.table thead th {
    background-color: var(--cor-sidebar) !important;
    color: #ffffff !important;
    border-color: #334155 !important;
}

.table tbody tr:hover {
    background-color: #f0fdf4 !important;
}

/* Barra de rolagem */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #eef2f7;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--template2);
}




/* =====================================================
   DASHBOARD HOME — CARDS MODERNOS
   ===================================================== */

/* Os quatro cards principais */
.mt-4.justify-content-between > .row:first-of-type .sales-card {
    position: relative;
    height: 145px !important;
    overflow: hidden;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07) !important;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

/* Efeito ao passar o mouse */
.mt-4.justify-content-between > .row:first-of-type .sales-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 34px rgba(15, 23, 42, 0.13) !important;
    border-color: #cbd5e1 !important;
}

/* Link ocupa todo o card */
.mt-4.justify-content-between > .row:first-of-type .sales-card > a {
    display: block;
    height: 100%;
    color: inherit !important;
    text-decoration: none !important;
}

/* Faixa colorida no topo */
.mt-4.justify-content-between > .row:first-of-type .sales-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 4px;
    border-radius: 0 0 6px 6px;
}

/* Card 1 — Clientes */
.mt-4.justify-content-between > .row:first-of-type > div:nth-child(1) .sales-card::before {
    background: #3b82f6;
}

/* Card 2 — Despesas */
.mt-4.justify-content-between > .row:first-of-type > div:nth-child(2) .sales-card::before {
    background: #ef4444;
}

/* Card 3 — Receber */
.mt-4.justify-content-between > .row:first-of-type > div:nth-child(3) .sales-card::before {
    background: #10b981;
}

/* Card 4 — Saldo */
.mt-4.justify-content-between > .row:first-of-type > div:nth-child(4) .sales-card::before {
    background: #06b6d4;
}

/* Título dos cards */
.mt-4.justify-content-between > .row:first-of-type .sales-card p.mb-1 {
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

/* Valores principais */
.mt-4.justify-content-between > .row:first-of-type .sales-card h4 {
    color: #0f172a;
    font-size: 25px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
}

/* Texto inferior */
.mt-4.justify-content-between > .row:first-of-type .sales-card .text-muted {
    color: #64748b !important;
    font-weight: 600;
}

/* Caixas dos ícones */
.mt-4.justify-content-between > .row:first-of-type .circle-icon {
    width: 58px !important;
    height: 58px !important;
    margin: 37px auto 0 !important;
    border-radius: 17px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.15);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

/* Movimento do ícone */
.mt-4.justify-content-between > .row:first-of-type .sales-card:hover .circle-icon {
    transform: scale(1.07) rotate(-3deg);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.20);
}

/* Tamanho dos ícones */
.mt-4.justify-content-between > .row:first-of-type .circle-icon i {
    font-size: 23px !important;
    line-height: 1;
}

/* Fundo do ícone — Clientes */
.mt-4.justify-content-between > .row:first-of-type > div:nth-child(1) .circle-icon {
    background: linear-gradient(135deg, #60a5fa, #2563eb) !important;
}

/* Fundo do ícone — Despesas */
.mt-4.justify-content-between > .row:first-of-type > div:nth-child(2) .circle-icon {
    background: linear-gradient(135deg, #fb7185, #dc2626) !important;
}

/* Fundo do ícone — Receber */
.mt-4.justify-content-between > .row:first-of-type > div:nth-child(3) .circle-icon {
    background: linear-gradient(135deg, #34d399, #059669) !important;
}

/* Fundo do ícone — Saldo */
.mt-4.justify-content-between > .row:first-of-type > div:nth-child(4) .circle-icon {
    background: linear-gradient(135deg, #22d3ee, #0891b2) !important;
}

/* Card do gráfico */
.card.custom-card.overflow-hidden {
    border-radius: 18px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07) !important;
}

/* Título do gráfico */
.card.custom-card .card-title {
    position: relative;
    padding-left: 15px;
    font-size: 17px !important;
}

/* Detalhe verde do título */
.card.custom-card .card-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    bottom: 1px;
    width: 4px;
    border-radius: 4px;
    background: #22c55e;
}

/* Barras de progresso */
.progress {
    background: #e8eef5 !important;
    border-radius: 10px !important;
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px !important;
}

/* Ajuste para celular */
@media screen and (max-width: 768px) {

    .mt-4.justify-content-between > .row:first-of-type .sales-card {
        height: 135px !important;
    }

    .mt-4.justify-content-between > .row:first-of-type .circle-icon {
        width: 50px !important;
        height: 50px !important;
        margin-top: 38px !important;
    }

    .mt-4.justify-content-between > .row:first-of-type .sales-card h4 {
        font-size: 21px !important;
    }
}



/* =====================================================
   MENU LATERAL COMPACTO
   Cole no final do custom.css
   ===================================================== */

/* Reduz o espaço geral do menu */
.app-sidebar .side-menu {
    padding: 6px 7px 12px !important;
}

/* Opções mais compactas */
.app-sidebar .side-menu__item {
    min-height: 38px !important;
    height: 38px !important;
    margin: 1px 5px !important;
    padding: 4px 10px !important;
    border-radius: 9px !important;
}

/* Ícones menores e sem caixas grandes */
.app-sidebar .side-menu__icon {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    margin-right: 9px !important;
    border-radius: 7px !important;
    font-size: 15px !important;
    background: transparent !important;
}

/* Textos um pouco menores */
.app-sidebar .side-menu__label {
    font-size: 14px !important;
    line-height: 1.1 !important;
    font-weight: 500 !important;
}

/* Setas laterais menores */
.app-sidebar .angle {
    font-size: 12px !important;
}

/* Movimento discreto ao passar o mouse */
.app-sidebar .side-menu__item:hover {
    transform: translateX(2px) !important;
    background: rgba(255, 255, 255, 0.07) !important;
}

/* Item selecionado */
.app-sidebar .side-menu__item.active,
.app-sidebar .slide.is-expanded > .side-menu__item {
    background: linear-gradient(
        90deg,
        rgba(34, 197, 94, 0.18),
        rgba(34, 197, 94, 0.05)
    ) !important;
}

/* Ícone selecionado sem caixa grande */
.app-sidebar .side-menu__item.active .side-menu__icon,
.app-sidebar .slide.is-expanded > .side-menu__item .side-menu__icon {
    background: transparent !important;
    color: #4ade80 !important;
    fill: #4ade80 !important;
    box-shadow: none !important;
}

/* Faixa verde mais fina */
.app-sidebar .side-menu__item.active::before,
.app-sidebar .slide.is-expanded > .side-menu__item::before {
    left: -5px !important;
    top: 6px !important;
    bottom: 6px !important;
    width: 3px !important;
}

/* Submenus compactos */
.app-sidebar .slide-menu {
    margin: 1px 8px 4px 20px !important;
    padding: 3px !important;
}

.app-sidebar .slide-item {
    padding: 5px 9px !important;
    margin: 1px 3px !important;
    font-size: 13px !important;
}

/* Reduz um pouco a área da logo */
.main-sidebar-header {
    min-height: 68px !important;
    height: 68px !important;
    padding: 6px 12px !important;
}

.main-sidebar-header img {
    max-height: 52px !important;
    object-fit: contain;
}


/* =====================================================
   CORES MAIS VIVAS — STATUS DOS PEDIDOS
   ===================================================== */

/* PREPARANDO — laranja mais forte */
.btn-warning-light,
.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #ea8a00) !important;
    border-color: #f59e0b !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25) !important;
}

/* PREPARANDO — passar o mouse */
.btn-warning-light:hover,
.btn-warning:hover {
    background: linear-gradient(135deg, #e99000, #d97706) !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
}

/* EM ROTA — verde mais forte */
.btn-success-light,
.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25) !important;
}

/* EM ROTA — passar o mouse */
.btn-success-light:hover,
.btn-success:hover {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    border-color: #15803d !important;
    color: #ffffff !important;
}

/* Números dentro dos botões */
.btn-warning-light .badge,
.btn-warning .badge,
.btn-success-light .badge,
.btn-success .badge {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #334155 !important;
    font-weight: 700 !important;
}

/* Botão Pausar Delivery */
.btn-outline-warning {
    border-color: #f59e0b !important;
    color: #d97706 !important;
    background: #fffaf0 !important;
}

.btn-outline-warning:hover {
    background: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #ffffff !important;
}


/* =====================================================
   ÍCONES COLORIDOS DO MENU — SELETOR CORRETO
   ===================================================== */

/* Formato geral dos ícones */
.app-sidebar .side-menu > li > a > i:first-of-type {
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transition: transform 0.18s ease, filter 0.18s ease !important;
}

/* Dashboard — azul */
.app-sidebar .side-menu > li:nth-child(1) > a > i:first-of-type {
    color: #38bdf8 !important;
}

/* Pedidos — laranja */
.app-sidebar .side-menu > li:nth-child(2) > a > i:first-of-type {
    color: #f59e0b !important;
}

/* Pedidos Esteira — vermelho */
.app-sidebar .side-menu > li:nth-child(3) > a > i:first-of-type {
    color: #fb7185 !important;
}

/* Pedidos Locais — roxo */
.app-sidebar .side-menu > li:nth-child(4) > a > i:first-of-type {
    color: #a78bfa !important;
}

/* Pedido Mesas — dourado */
.app-sidebar .side-menu > li:nth-child(5) > a > i:first-of-type {
    color: #fbbf24 !important;
}

/* PDV — ciano */
.app-sidebar .side-menu > li:nth-child(6) > a > i:first-of-type {
    color: #22d3ee !important;
}

/* Caixas — verde */
.app-sidebar .side-menu > li:nth-child(7) > a > i:first-of-type {
    color: #34d399 !important;
}

/* Pessoas — azul-claro */
.app-sidebar .side-menu > li:nth-child(8) > a > i:first-of-type {
    color: #60a5fa !important;
}

/* Cadastros — violeta */
.app-sidebar .side-menu > li:nth-child(9) > a > i:first-of-type {
    color: #c084fc !important;
}

/* Produtos — laranja-claro */
.app-sidebar .side-menu > li:nth-child(10) > a > i:first-of-type {
    color: #fb923c !important;
}

/* Financeiro — verde-esmeralda */
.app-sidebar .side-menu > li:nth-child(11) > a > i:first-of-type {
    color: #10b981 !important;
}

/* Relatórios — coral */
.app-sidebar .side-menu > li:nth-child(12) > a > i:first-of-type {
    color: #f87171 !important;
}

/* Tarefas / Agenda — azul */
.app-sidebar .side-menu > li:nth-child(13) > a > i:first-of-type {
    color: #3b82f6 !important;
}

/* Anotações — amarelo */
.app-sidebar .side-menu > li:nth-child(14) > a > i:first-of-type {
    color: #facc15 !important;
}

/* Minhas Comissões — verde-água */
.app-sidebar .side-menu > li:nth-child(15) > a > i:first-of-type {
    color: #2dd4bf !important;
}

/* Marketing — rosa */
.app-sidebar .side-menu > li:nth-child(16) > a > i:first-of-type {
    color: #f472b6 !important;
}

/* Setas dos menus continuam discretas */
.app-sidebar .side-menu > li > a > i.angle {
    color: #94a3b8 !important;
}

/* Realce suave ao passar o mouse */
.app-sidebar .side-menu > li > a:hover > i:first-of-type {
    transform: scale(1.14) !important;
    filter: brightness(1.2) saturate(1.15);
}

/* =====================================================
   SUBMENU COMPACTO E MODERNO
   ===================================================== */

.app-sidebar .slide-menu {
    margin: 2px 8px 5px 25px !important;
    padding: 4px 0 5px 10px !important;

    background: rgba(255, 255, 255, 0.025) !important;

    border: none !important;
    border-left: 2px solid rgba(52, 211, 153, 0.65) !important;

    border-radius: 0 8px 8px 0 !important;
    box-shadow: none !important;
}

/* Itens internos */
.app-sidebar .slide-menu .slide-item {
    position: relative;
    display: block;

    margin: 1px 4px !important;
    padding: 6px 9px 6px 16px !important;

    border: none !important;
    border-radius: 7px !important;

    background: transparent !important;
    color: #d6dfec !important;

    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;

    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        padding-left 0.18s ease;
}

/* Pequeno marcador */
.app-sidebar .slide-menu .slide-item::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;

    width: 4px;
    height: 4px;

    border-radius: 50%;
    background: #64748b;

    transform: translateY(-50%);
}

/* Passar o mouse */
.app-sidebar .slide-menu .slide-item:hover {
    padding-left: 19px !important;
    background: rgba(52, 211, 153, 0.09) !important;
    color: #5eead4 !important;
}

.app-sidebar .slide-menu .slide-item:hover::before {
    background: #34d399;
}

/* Subitem selecionado */
.app-sidebar .slide-menu .slide-item.active {
    background: rgba(52, 211, 153, 0.13) !important;
    color: #6ee7b7 !important;
    font-weight: 600 !important;
}

.app-sidebar .slide-menu .slide-item.active::before {
    background: #34d399;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
}


/* MANTÉM OCULTOS OS BOTÕES QUE O PHP MANDAR OCULTAR */
.pedidos-premium .pedido-acoes .ocultar,
.pedidos-premium .pedido-acoes .btn.ocultar {
    display: none !important;
}