/* ===================== */
/* RESET */
/* ===================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* ===================== */
/* VARIÁVEIS */
/* ===================== */

:root{
    --primary:#2563eb;
    --primary-dark:#1d4ed8;

    --success:#16a34a;
    --danger:#ef4444;

    --sidebar:#0f172a;

    --background:#eef2f7;

    --card:#ffffff;

    --text:#0f172a;

    --text-light:#64748b;

    --border:#dbe2ea;
}

/* ===================== */
/* BODY */
/* ===================== */

body{
    font-family:
    Arial,
    Helvetica,
    sans-serif;

    background:var(--background);

    color:var(--text);
    -webkit-font-smoothing:antialiased;
}

/* ===================== */
/* APP */
/* ===================== */

.app{
    display:flex;
}

/* ===================== */
/* SIDEBAR */
/* ===================== */

.sidebar{
    width:250px;
    height:100vh;

    background:
    linear-gradient(
        180deg,
        #0f172a 0%,
        #111827 100%
    );

    position:fixed;

    left:0;
    top:0;

    padding:24px 16px;

    border-right:
    1px solid rgba(255,255,255,0.05);

    box-shadow:
    4px 0 20px rgba(0,0,0,0.12);

    overflow-y:auto;
}

/* ===================== */
/* LOGO */
/* ===================== */

.logo-container{
    display:flex;
    justify-content:center;
    margin-bottom:30px;
}

.logo-nav{
    width:180px;
    height:auto;
}

/* ===================== */
/* MENU */
/* ===================== */

.sidebar a{
    display:flex;
    align-items:center;
    color:#cbd5e1;
    text-decoration:none;
    margin-bottom:8px;
    padding:14px 16px;
    border-radius:16px;
    transition:.25s ease;
    font-size:14px;
    font-weight:600;
}

.sidebar a:hover{
    background:
    linear-gradient(
        90deg,
        rgba(37,99,235,.95),
        rgba(29,78,216,.95)
    );

    color:white;
    transform:translateX(4px);
}

.sidebar a.active{
    background:
    linear-gradient(
        90deg,
        #2563eb,
        #1d4ed8
    );

    color:white;

    box-shadow:
    0 8px 18px rgba(37,99,235,.25);
}

/* ===================== */
/* MAIN */
/* ===================== */

.main{
    margin-left:250px;
    width:calc(100% - 250px);
    padding:35px;
}

/* ===================== */
/* CARD */
/* ===================== */

.card{
    background:var(--card);
    border-radius:28px;
    padding:30px;
    width:100%;
    max-width:1150px;
    margin:0 auto;

    box-shadow:
    0 10px 30px rgba(0,0,0,.06);
}

/* ===================== */
/* PAGE HEADER */
/* ===================== */

.page-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:30px;
    flex-wrap:nowrap; /* Impede quebras de cabeçalhos no desktop */
}

.page-subtitle{
    margin-top:6px;
    color:#64748b;
    font-size:14px;
}

/* ===================== */
/* TÍTULOS */
/* ===================== */

h1{
    font-size:30px;
    color:#0f172a;
    font-weight:800;
}

/* ===================== */
/* INPUTS */
/* ===================== */

input,
select,
textarea{
    width:100%;
    height:52px;
    border:1px solid #cbd5e1;
    border-radius:16px;
    padding:0 16px;
    background:#f8fafc;
    outline:none;
    font-size:15px;
    transition:.2s;
}

textarea{
    min-height:100px;
    padding-top:14px;
    resize:none;
}

input::placeholder,
textarea::placeholder{
    color:#94a3b8;
}

input:focus,
select:focus,
textarea:focus{
    border-color:#2563eb;
    background:white;

    box-shadow:
    0 0 0 4px rgba(37,99,235,.10);
}

/* ===================== */
/* FORMULÁRIOS E AÇÕES */
/* ===================== */

.form-container{
    max-width:950px;
    margin:auto;
}

.form-title{
    margin-bottom:30px;
}

.form-title h1{
    font-size:34px;
    margin-bottom:8px;
}

.form-title p{
    color:#64748b;
    font-size:15px;
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:22px;
}

.form-group{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.form-group.full{
    grid-column:1/-1;
}

.form-group label{
    font-size:14px;
    font-weight:700;
    color:#0f172a;
}

/* AJUSTADO: Alinha os botões de envio e dá o espaçamento do card de cima */
.form-submit,
.form-actions {
    margin-top: 32px !important; 
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.form-submit .btn{
    min-width:220px;
    height:52px;
    font-size:15px;
}

/* ===================== */
/* BOTÕES */
/* ===================== */

.btn{
    border:none;
    cursor:pointer;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 24px;
    border-radius:16px;
    font-size:14px;
    font-weight:700;
    transition:.2s;
}

.btn:hover{
    transform:translateY(-2px);
}

/* PRIMARY */

.btn-primary{
    background:
    linear-gradient(
        90deg,
        #2563eb,
        #1d4ed8
    );

    color:white;

    box-shadow:
    0 10px 25px rgba(37,99,235,.25);
}

/* SUCCESS */

.btn-success{
    background:#16a34a;
    color:white;
}

/* EDIT */

.btn-edit{
    background:#f59e0b;
    color:white;
}

/* DELETE */

.btn-delete{
    background:#ef4444;
    color:white;
}

/* CORRIGIDO: Botão Voltar (Secondary) com cor neutra e sem roxo */
.btn-secondary{
    background: #f1f5f9 !important;      /* Fundo cinza bem claro e limpo */
    color: #475569 !important;           /* Texto cinza escuro profissional */
    border: 1px solid #cbd5e1 !important; /* Borda fina para dar profundidade */
    text-decoration: none;
    font-weight: 700;
}

.btn-secondary:hover{
    background: #e2e8f0 !important;      /* Escurece sutilmente no hover */
    color: #0f172a !important;
    transform: translateY(-2px);
}

/* VOLTAR CUSTOMIZADO VAZADO */
.btn-voltar {
    background-color: transparent !important;
    color: #3b82f6 !important;              
    border: 2px solid #3b82f6 !important;    
    border-radius: 16px;
}

.btn-voltar:hover {
    background: #eff6ff !important;
    transform: translateY(-2px);
}

/* ===================== */
/* FILTROS */
/* ===================== */

.filtros{
    display:flex;
    flex-direction:column;
    gap:18px;
    margin-bottom:25px;
}

.acoes-filtro{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

/* ===================== */
/* TABELAS */
/* ===================== */

.table-container{
    width:100%;
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
}

table td,
table th{
    vertical-align:middle;
}

th{
    text-align:left;
    font-size:14px;
    font-weight:700;
    color:#64748b;
    padding:18px 14px;
    border-bottom:1px solid #e2e8f0;
}

td{
    padding:18px 14px;
    border-bottom:1px solid #f1f5f9;
    vertical-align:middle;
    font-size:15px;
}

/* HOVER TABELAS */

tbody tr{
    transition:.2s;
}

tbody tr:hover{
    background:#f8fbff;
    transform:scale(1.002);
}

/* ===================== */
/* STATUS BADGES */
/* ===================== */

.status{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    line-height:1;
    min-width:110px;
    text-align:center;
}

/* STATUS GERAIS */

.status-agendado{
    background:#dbeafe;
    color:#1d4ed8;
}

.status-concluido{
    background:#dcfce7;
    color:#166534;
}

.status-cancelado{
    background:#fee2e2;
    color:#dc2626;
}

.status-pendente{
    background:#fef3c7;
    color:#92400e;
}

.status-pago{
    background:#dcfce7;
    color:#166534;
}

.status-sem{
    background:#e2e8f0;
    color:#475569;
}

/* Classe para o Status Ativo via CSS */
.status-ativo {
    background-color: #dcfce7 !important;
    color: #166534 !important;
}

/* Classe para o Status Orçamento via CSS */
.status-orcamento{
    background:#ede9fe !important;
    color:#7c3aed !important;
}

.status-andamento{
    background:#cffafe;
    color:#0891b2;
}

.status-finalizado{
    background:#dcfce7;
    color:#166534;
}

.status-inativo{
    background:#e2e8f0;
    color:#475569;
}

.status-falta{
    background: #fef3c7;
    color: #92400e;
}

/* BADGE HISTÓRICO */

.status-historico{
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

/* ===================== */
/* EMPTY TABLE */
/* ===================== */

.empty-table{
    text-align:center;
    color:#94a3b8;
    padding:35px !important;
    font-size:15px;
}

/* ===================== */
/* COLUNAS CENTRALIZADAS */
/* ===================== */

.col-center{
    text-align:center !important;
    vertical-align:middle;
}

td.col-center{
    text-align:center;
    vertical-align:middle;
}

td.col-center .status{
    margin:auto;
}

td.col-center .acoes{
    justify-content:center;
}

/* ===================== */
/* COLUNA AÇÕES */
/* ===================== */

th.col-acoes, .col-acoes{
    text-align:center !important;
    vertical-align:middle;
    width: 320px;
    min-width:300px;
}

td.col-acoes{
    text-align:center;
    vertical-align:middle;
}

/* BOTÕES TABELA */

.acoes{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.acoes .btn{
    min-width:85px;
    height:42px;
    padding:0 16px;
    border-radius:14px;
    font-size:14px;
    white-space:nowrap;
}

/* ===================== */
/* TOTAL PACOTES */
/* ===================== */

.total-container-pacote{
    background-color:#f4f8ff;
    border:1px solid #d1e3ff;
    border-radius:20px;
    padding:20px;
    margin-top:30px;
}

.total-label-pacote{
    font-size:14px;
    font-weight:700;
    color:#2563eb;
    margin-bottom:12px;
}

.total-bar-pacote{
    background-color:#ffffff;
    border:1px solid #bfd3ff;
    border-radius:18px;
    height:55px;
    display:flex;
    align-items:center;
    padding:0 25px;
}

.total-bar-pacote input{
    width:100%;
    background:transparent !important;
    border:none !important;
    outline:none !important;
    box-shadow:none !important;
    font-size:22px !important;
    font-weight:800 !important;
    color:#2563eb !important;
    text-align:right !important;
    padding:0 !important;
}

/* ===================== */
/* ALERTAS */
/* ===================== */

.alert{
    width:100%;
    padding:14px;
    border-radius:12px;
    margin-bottom:15px;
    font-size:14px;
    font-weight:600;
}

.alert.error{
    background:#ffe5e5;
    color:#d90000;
    border:1px solid #ffb5b5;
}

.alert.success{
    background:#dcfce7;
    color:#166534;
}

/* ===================== */
/* RELATÓRIOS */
/* ===================== */

.relatorio-card{
    background:white;
    border-radius:20px;
    padding:25px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.relatorio-tabela{
    width:100%;
    border-collapse:collapse;
}

.relatorio-tabela th{
    background:#f8fafc;
    color:#64748b;
    font-size:14px;
    font-weight:700;
    padding:18px 14px;
}

.relatorio-tabela td{
    font-size:15px;
    color:#0f172a;
    padding:18px 14px;
    border-bottom:1px solid #f1f5f9;
}

/* ===================== */
/* RESUMO FINANCEIRO */
/* ===================== */

.resumo-financeiro{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin:30px 0;
}

.resumo-card{
    background:#f8fafc;
    border-radius:20px;
    padding:24px;
    border:1px solid #e2e8f0;
    transition:.2s;
}

.resumo-card:hover{
    transform:translateY(-2px);
}

.resumo-card .titulo{
    font-size:14px;
    font-weight:700;
    margin-bottom:12px;
    color:#64748b;
}

.resumo-card .valor{
    font-size:32px;
    font-weight:800;
}

.resumo-card.recebido{
    background:#ecfdf5;
    border-color:#bbf7d0;
}

.resumo-card.recebido .valor{
    color:#15803d;
}

.resumo-card.pendente{
    background:#fffbeb;
    border-color:#fde68a;
}

.resumo-card.pendente .valor{
    color:#b45309;
}

/* ===================== */
/* TOPO RELATÓRIO */
/* ===================== */

.relatorio-topo{
    display:flex;
    align-items:end;
    gap:16px;
    flex-wrap:wrap;
    margin:25px 0 30px;
}

.relatorio-topo .form-group{
    flex:1;
    min-width:260px;
}

.acoes-relatorio{
    display:flex;
    gap:12px;
    align-items:center;
}

.acoes-relatorio .btn{
    height:50px;
    padding:0 22px;
    white-space:nowrap;
}

/* =========================================
   SERVIÇOS AGENDAMENTO ORIGINAL
========================================= */

.lista-servicos{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-top:25px;
}

.servico-item{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:18px;
    transition:.2s;
}

.servico-item:hover{
    border-color:#2563eb;
    transform:translateY(-2px);
}

.servico-topo{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:14px;
    gap:12px;
}

.servico-nome{
    font-weight:700;
    color:#0f172a;
    font-size:15px;
}

.servico-valor{
    color:#2563eb;
    font-weight:800;
    white-space:nowrap;
}

.servico-item input{
    height:46px;
    text-align:center;
    font-weight:700;
}

/* CHECKBOXES */

.checkboxes{
    display:flex;
    gap:30px;
    margin-top:10px;
    margin-bottom:10px;
    flex-wrap:wrap;
}

.checkbox-item{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:600;
    color:#334155;
}

.checkbox-item input{
    width:20px;
    height:20px;
}

/* TOTAL AGENDAMENTO */

.total-agendamento-box{
    background:#eff6ff;
    border:1px solid #bfdbfe;
    border-radius:22px;
    padding:24px;
    margin-top:30px;
}

.total-agendamento-label{
    color:#2563eb;
    font-weight:700;
    margin-bottom:10px;
}

.total-agendamento-valor{
    font-size:36px;
    font-weight:800;
    color:#1d4ed8;
}

/* =========================================
   AGENDAMENTO NOVO VISUAL
========================================= */

.form-space{
    margin-top:20px;
}

.options-grid{
    display:flex;
    gap:20px;
    margin-top:25px;
    margin-bottom:25px;
    flex-wrap:wrap;
}

.check-card{
    background:#f8fafc;
    border:1px solid #dbe2ea;
    border-radius:18px;
    padding:18px 22px;
    display:flex;
    align-items:center;
    gap:12px;
    min-width:220px;
    cursor:pointer;
    transition:.2s;
}

.check-card:hover{
    border-color:#2563eb;
    background:#eff6ff;
}

.check-card input{
    width:20px;
    height:20px;
}

.check-card span{
    font-weight:700;
    color:#0f172a;
}

.extra-box{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:20px;
    padding:20px;
    margin-bottom:25px;
}

.section-title{
    font-size:26px;
    font-weight:800;
    color:#0f172a;
    margin-top:35px;
    margin-bottom:20px;
}

/* GRID / CARDS SERVIÇOS CONFIG */

.servicos-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-top:20px;
}

.servico-card{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:22px;
    padding:20px;
    transition:.2s;
}

.servico-card:hover{
    transform:translateY(-2px);
    border-color:#2563eb;
}

.servico-card.ativo{
    border-color:#2563eb;
    background:#eff6ff;
}

.servico-info{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:14px;
    gap:10px;
}

.servico-info strong{
    font-size:15px;
    color:#0f172a;
}

.servico-info span{
    color:#2563eb;
    font-weight:800;
    white-space:nowrap;
}

.servico-qtd{
    height:48px !important;
    text-align:center;
    font-size:18px;
    font-weight:700;
}

/* TOTAL GERAL CONTRASTADO */

.total-bar-container, .total-box{
    background:#eff6ff;
    border:1px solid #bfdbfe;
    border-radius:24px;
    padding:24px;
    margin-top:35px;
}

.total-label, .total-box label{
    display:block;
    color:#2563eb;
    font-size:15px;
    font-weight:700;
    margin-bottom:14px;
}

.total-field-wrapper input, .total-box input{
    width:100%;
    background:white !important;
    border:1px solid #bfdbfe !important;
    height:64px !important;
    border-radius:18px !important;
    font-size:34px !important;
    font-weight:800 !important;
    color:#1d4ed8 !important;
    text-align:right;
    padding:0 22px !important;
    box-shadow:none !important;
    outline:none !important;
}

.form-actions-space{
    margin-top:30px;
}

/* SWITCHES */

.top-config{
    margin-top:24px;
    margin-bottom:24px;
}

.switch{
    display:flex;
    align-items:center;
    gap:14px;
    background:#f8fafc;
    border:1px solid #dbe2ea;
    border-radius:18px;
    padding:16px 20px;
    width:max-content;
    cursor:pointer;
    transition:.2s;
}

.switch:hover{
    border-color:#2563eb;
    background:#eff6ff;
}

.switch input{
    width:22px;
    height:22px;
    accent-color:#2563eb;
    cursor:pointer;
}

.switch span{
    font-size:15px;
    font-weight:700;
    color:#0f172a;
}

#boxTransporte{
    margin-bottom:24px;
}

/* INPUT COMPACTO GLOBAL QTD */

.qtd{
    height:48px !important;
    text-align:center;
    font-size:18px;
    font-weight:700;
}

/* FIX CHECKBOXES */

input[type="checkbox"]{
    width:22px !important;
    height:22px !important;
    min-width:22px;
    cursor:pointer;
    accent-color:#2563eb;
}

.servico-check-wrap{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:12px;
}

.servico-check-wrap input{
    width:18px !important;
    height:18px !important;
    min-width:18px;
    cursor:pointer;
}

.servico-check-wrap span{
    font-size:13px;
    color:#475569;
    font-weight:600;
}

/* CÉLULAS DE OBSERVAÇÃO */

.obs-cell{
    max-width:220px;
    white-space:normal;
    line-height:1.5;
    color:#334155;
    padding-right:25px;
    word-break:break-word;
}

/* =========================================
   DETALHES AGENDAMENTO MODERNO
========================================= */

.detalhes-modern{
    max-width:1200px;
}

.detalhes-topo{
    margin-bottom:35px;
}

.detalhes-topo h1{
    font-size:34px;
    font-weight:800;
    margin-bottom:8px;
}

.info-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-bottom:35px;
}

.info-box{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:22px;
    padding:22px;
    transition:.2s;
}

.info-box:hover{
    transform:translateY(-2px);
    border-color:#2563eb;
}

.info-box.destaque{
    background:#eff6ff;
    border-color:#bfdbfe;
}

.info-box small{
    display:block;
    color:#64748b;
    font-size:13px;
    font-weight:700;
    margin-bottom:10px;
}

.info-box h2{
    font-size:38px;
    font-weight:800;
    color:#0f172a;
    margin-bottom:16px;
}

.info-box strong{
    font-size:28px;
    color:#0f172a;
}

.info-box p{
    color:#334155;
    line-height:1.6;
    font-size:15px;
}

.temperamento-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 18px;
    border-radius:999px;
    background:#ede9fe;
    color:#7c3aed;
    font-size:14px;
    font-weight:700;
}

.servicos-container{
    margin-top:10px;
}

.titulo-servicos{
    font-size:30px;
    font-weight:800;
    margin-bottom:22px;
    color:#0f172a;
}

.tabela-servicos{
    width:100%;
    border-collapse:collapse;
    overflow:hidden;
    border-radius:20px;
    background:white;
}

.tabela-servicos th{
    background:#f8fafc;
    color:#64748b;
    font-size:14px;
    font-weight:700;
    padding:20px;
    border-bottom:1px solid #e2e8f0;
}

.tabela-servicos td{
    padding:22px 20px;
    border-bottom:1px solid #f1f5f9;
    vertical-align:middle;
}

.servico-detalhe{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.servico-detalhe strong{
    font-size:16px;
    color:#0f172a;
}

.servico-detalhe small{
    color:#64748b;
    font-size:13px;
}

.valor-servico{
    color:#2563eb;
    font-size:18px;
    font-weight:800;
}

.observacao-box{
    grid-column:span 2;
}

/* =========================================
   LOGIN
========================================= */

.login-body{
    background:#eef2f7;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}

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

.login-box{
    width:100%;
    max-width:450px;
    background:white;
    border-radius:28px;
    padding:40px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.logo-login-container{
    display:flex;
    justify-content:center;
    margin-bottom:25px;
}

.logo-login-img{
    width:180px;
    height:auto;
    object-fit:contain;
}

.login-box h2{
    text-align:center;
    margin-bottom:25px;
    font-size:30px;
    font-weight:800;
    color:#0f172a;
}

.login-box form{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.login-box input{
    width:100%;
    height:52px;
    border:1px solid #cbd5e1;
    border-radius:16px;
    padding:0 16px;
    background:#f8fafc;
    font-size:15px;
    outline:none;
}

.login-box input:focus{
    border-color:#2563eb;
    background:white;
    box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

.login-btn{
    width:100%;
    height:52px;
    margin-top:10px;
    font-size:16px;
}

.login-links{
    margin-top:20px;
    display:flex;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
}

.login-links a{
    color:#2563eb;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
}

.login-links a:hover{
    text-decoration:underline;
}

.erro{
    margin-top:15px;
    color:#dc2626;
    text-align:center;
    font-size:14px;
    font-weight:600;
}

/* =========================================
   RECUPERAR SENHA
========================================= */

.recovery-container{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
    background:#eef2f7;
}

.recovery-card{
    width:100%;
    max-width:500px;
    background:white;
    border-radius:32px;
    padding:50px 40px;
    box-shadow: 0 15px 40px rgba(15,23,42,.08);
    text-align:center;
}

.recovery-logo{
    margin-bottom:20px;
}

.recovery-logo img{
    width:150px;
    height:auto;
    object-fit:contain;
}

.recovery-card h1{
    font-size:42px;
    font-weight:800;
    color:#0f172a;
    margin-bottom:15px;
    line-height:1.1;
}

.recovery-card p{
    color:#64748b;
    font-size:16px;
    line-height:1.6;
    margin-bottom:35px;
}

.input-icon{
    margin-bottom:22px;
}

.input-icon input{
    width:100%;
    height:60px;
    border:1px solid #cbd5e1;
    border-radius:18px;
    padding:0 20px;
    font-size:16px;
    background:#f8fafc;
    transition:.2s;
}

.input-icon input:focus{
    border-color:#2563eb;
    background:white;
    box-shadow: 0 0 0 4px rgba(37,99,235,.10);
    outline:none;
}

.btn-recovery{
    width:100%;
    height:60px;
    border:none;
    border-radius:18px;
    background:#2563eb;
    color:white;
    font-size:18px;
    font-weight:700;
    cursor:pointer;
    transition:.2s;
    box-shadow: 0 10px 25px rgba(37,99,235,.25);
}

.btn-recovery:hover{
    transform:translateY(-2px);
    background:#1d4ed8;
}

.link-back{
    display:inline-block;
    margin-top:28px;
    color:#2563eb;
    text-decoration:none;
    font-weight:600;
    font-size:15px;
}

.link-back:hover{
    text-decoration:underline;
}

/* =========================================
   HISTÓRICO PET
========================================= */

.historico-container{
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px;
}

.historico-card{
    width: 100%;
    max-width: 1000px;
    background: white;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.historico-topo{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.historico-topo h1{
    font-size: 42px;
    color: #0f172a;
}

.pet-badge{
    background: #2563eb;
    color: white;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
}

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

.historico-item{
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.historico-item .label{
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.historico-item strong{
    color: #0f172a;
    font-size: 20px;
}

/* TABELA HISTÓRICO */

.historico-tabela{
    margin-top: 40px;
}

.historico-tabela h2{
    margin-bottom: 20px;
    color: #0f172a;
    font-size: 28px;
}

.historico-tabela table{
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.historico-tabela th{
    background: #f1f5f9;
    padding: 18px;
    text-align: left;
    color: #334155;
    font-size: 15px;
}

.historico-tabela td{
    padding: 18px;
    border-top: 1px solid #e2e8f0;
}

/* =========================================
   ESTILOS DA LISTA DE SERVIÇOS COMPACTA
========================================= */

.secao-servicos-titulo {
    margin-top: 40px; 
    margin-bottom: 20px; 
    font-weight: 800; 
    color: #0f172a;
}

.lista-servicos-compacta {
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    border-radius: 20px; 
    overflow: hidden; 
    max-width: 1000px; 
    margin: 0 auto;
}

.servico-linha {
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 16px 24px; 
    transition: background-color 0.2s ease;
}

.servico-linha + .servico-linha {
    border-top: 1px solid #f1f5f9;
}

.servico-detalhe-info {
    flex: 2;
}

.servico-nome-texto {
    font-size: 16px; 
    color: #0f172a; 
    display: block;
}

.servico-preco-unitario {
    font-size: 14px; 
    color: #64748b; 
    font-weight: 600;
}

.servico-controles {
    display: flex; 
    align-items: center; 
    gap: 12px; 
    flex: 1; 
    justify-content: center;
}

.servico-subtotal-box {
    flex: 1; 
    text-align: right; 
    min-width: 120px;
}

.subtotal-texto {
    font-size: 15px; 
    font-weight: 800; 
    color: #2563eb;
}

.lista-vazia {
    padding: 30px; 
    text-align: center; 
    color: #94a3b8;
}

.btn-qtd-compacto {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: white;
    font-size: 16px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.btn-qtd-compacto:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.servico-linha input.qtd {
    width: 40px; 
    text-align: center; 
    font-size: 16px; 
    font-weight: 800; 
    border: none; 
    background: transparent; 
    padding: 0; 
    color: #0f172a;
}

.servico-linha.linha-ativa {
    background-color: #f8faff;
}

.servico-linha.linha-ativa .btn-qtd-compacto {
    border-color: #bfdbfe;
    color: #2563eb;
}

.servico-linha.linha-ativa .btn-qtd-compacto:hover {
    background-color: #eff6ff;
}

.servico-linha input[type=number]::-webkit-inner-spin-button, 
.servico-linha input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

.servico-linha input[type=number] {
    -moz-appearance: textfield;
}

/* ==========================================
   REGRAS DE RESPONSIVIDADE (CELULARES)
========================================== */

@media(max-width:900px){
    .sidebar{
        width:100%;
        height:auto;
        position:relative;
    }

    .main{
        margin-left:0;
        width:100%;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

    .page-header{
        flex-direction:column;
        align-items:flex-start;
    }

    .acoes{
        justify-content:flex-start;
        flex-wrap:wrap;
    }

    th.col-acoes{
        min-width:300px;
    }

    .form-actions .btn,
    .acoes-filtro .btn{
        width:100%;
    }
}

@media (max-width: 768px) {
    .wrapper, .main-container, .container, body {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .sidebar, aside, nav#sidebar {
        width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        position: relative !important;
        padding: 10px !important;
        box-sizing: border-box;
        display: flex !important;
        flex-direction: row !important; 
        flex-wrap: wrap !important;    
        justify-content: center !important;
        gap: 10px !important;
    }

    .sidebar .logo, .sidebar img, div[class*="logo"] img {
        max-width: 80px !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    .sidebar ul, .sidebar nav, .sidebar .menu-links {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .sidebar ul li, .sidebar a, .sidebar .menu-item {
        padding: 6px 12px !important;
        font-size: 13px !important; 
        margin: 0 !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
    }

    .content, .main-content, main, #content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important; 
        padding: 15px !important;
        box-sizing: border-box;
    }

    .card, .filter-card, .form-container, div[class*="-card"] {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    .resumo-financeiro{
        grid-template-columns:1fr;
    }

    .resumo-card .valor{
        font-size:26px;
    }

    .relatorio-topo{
        flex-direction:column;
        align-items:stretch;
    }

    .acoes-relatorio{
        width:100%;
    }

    .acoes-relatorio .btn{
        flex:1;
    }

    .lista-servicos, .servicos-grid{
        grid-template-columns: 1fr;
    }

    .options-grid{
        flex-direction:column;
    }
}

@media(max-width:500px){
    .login-box{
        padding:28px;
    }

    .logo-login-img{
        width:140px;
    }

    .login-links{
        flex-direction:column;
        align-items:center;
    }
}

@media(max-width:600px){
    .recovery-card{
        padding:40px 25px;
    }

    .recovery-card h1{
        font-size:34px;
    }

    .recovery-logo img{
        width:120px;
    }
}
/* =========================================
   ESTILOS DO OLHO DE VISUALIZAR SENHA
========================================= */

.password-container {
    position: relative;
    width: 100%;
}

/* Dá um espaço para o texto digitado não passar por baixo do ícone */
.password-container input {
    padding-right: 48px !important; 
}

/* Posiciona o botão do olho perfeitamente centralizado à direita */
.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: color 0.2s ease;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    height: auto !important;
    width: auto !important;
}

.toggle-password:hover {
    color: #2563eb;
}

/* Oculta o segundo ícone (olho fechado) por padrão */
.toggle-password .eye-closed {
    display: none;
}
/* ==========================================================================
   TELA DE RECUPERAÇÃO DE SENHA (ESQUECI / RESET)
   ========================================================================== */

.recovery-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f1f5f9;
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 20px;
}

.recovery-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.recovery-logo img {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}

.recovery-card h1 {
    font-size: 24px;
    color: #0f172a;
    margin-bottom: 8px;
    font-weight: 700;
}

.recovery-card p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.5;
}

.input-icon {
    margin-bottom: 16px;
}

.input-icon input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.input-icon input:focus {
    border-color: #2563eb;
    outline: none;
}

.btn-recovery {
    width: 100%;
    background: #2563eb;
    color: #ffffff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-recovery:hover {
    background: #1d4ed8;
}

/* CONTAINER DO BOTÃO DO OLHO (RESET.PHP) */
.password-container {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.password-container input {
    width: 100%;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ESTILIZAÇÃO DOS ALERTAS DA RECUPERAÇÃO */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    margin-top: 24px;
    text-align: left;
}

.alert.success {
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.alert.error {
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.link-back {
    display: inline-block;
    margin-top: 24px;
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.link-back:hover {
    text-decoration: underline;
}