/* ======================================================
   PAINEL GERAL
====================================================== */

#nm-painel {
    display: flex;
    gap: 0;
    min-height: 400px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #ffffff;
}

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

#nm-painel .nm-painel-sidebar {
    width: 240px;
    background: #0f172a;
    color: #e5e7eb;
    padding: 20px 16px;
    box-sizing: border-box;
}

#nm-painel .nm-painel-logo {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #ffffff;
}

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

#nm-painel .nm-painel-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ITEM PADRÃO (INATIVO) */
#nm-painel .nm-painel-menu .nm-menu-item {
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;

    color: rgba(255, 255, 255, 0.9) !important;

    transition: background 0.15s ease, color 0.15s ease;
}

/* LINK HERDA A COR DO ITEM */
#nm-painel .nm-painel-menu .nm-menu-item a {
    color: inherit !important;
    text-decoration: none;
    display: block;
    width: 100%;
}

/* HOVER */
#nm-painel .nm-painel-menu .nm-menu-item:hover {
    background: #1f2937;
    color: #ffffff !important;
}

/* ITEM ATIVO */
#nm-painel .nm-painel-menu .nm-menu-item.is-active {
    background: #38bdf8 !important;
    color: #0f172a !important;
    font-weight: 600;
}

/* ======================================================
   CONTEÚDO
====================================================== */

#nm-painel .nm-painel-content {
    flex: 1;
    padding: 20px 24px;
    box-sizing: border-box;
    background: #f9fafb;
    font-size: 14px;
}

#nm-painel .nm-painel-content h2 {
    margin-top: 0;
}

/* ======================================================
   RESPONSIVO
====================================================== */

@media (max-width: 768px) {

    #nm-painel {
        flex-direction: column;
    }

    #nm-painel .nm-painel-sidebar {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
    }

    #nm-painel .nm-painel-logo {
        margin-right: 16px;
        white-space: nowrap;
    }

    #nm-painel .nm-painel-menu {
        display: flex;
        gap: 4px;
    }

    #nm-painel .nm-painel-menu .nm-menu-item {
        white-space: nowrap;
        margin-bottom: 0;
    }
}

/* ======================================================
   DASHBOARD CARDS
====================================================== */

#nm-painel .nm-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

/* DASHBOARD CARDS  ESTILO PREMIUM (igual Garantias) */
#nm-painel .nm-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#nm-painel .nm-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}


#nm-painel .nm-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #374151;
}

#nm-painel .nm-card p {
    font-size: 26px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}



/* ================= AÇÕES DO CERTIFICADO ================= */

.certificado-actions {
    max-width: 760px;
    margin: 0 auto 16px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-certificado {
    padding: 10px 16px;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
}

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

.btn-certificado.btn-outline {
    background: #ffffff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.btn-certificado.btn-outline:hover {
    background: #eff6ff;
}

/* ================= DATAS ================= */

.certificado-datas {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px dashed #e5e7eb;
    padding-top: 24px;
    margin-top: 24px;
}

.certificado-datas span {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

.certificado-datas strong {
    font-size: 15px;
    color: #111827;
}

/* ================= IMPRESSÃO ================= */


/* ======================================================
   CERTIFICADO – CONTAINER
====================================================== */

.certificado-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    max-width: 900px;
    margin: 24px auto;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 40px rgba(0,0,0,.06);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.certificado-header {
    text-align: center;
    margin-bottom: 28px;
}

.certificado-tag {
    display: inline-block;
    background: #e0f2fe;
    color: #2563eb;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.certificado-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
}

.certificado-id {
    color: #6b7280;
    font-size: 13px;
    margin-top: 6px;
}

/* ======================================================
   SEES
====================================================== */

.certificado-section {
    margin-bottom: 16px;
}

.certificado-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
}

.certificado-cliente-nome {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-top: 6px;
    color: #111827;
}

/* ======================================================
   DADOS DO CLIENTE
====================================================== */

.certificado-cliente-dados {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 14px;
}

.certificado-cliente-dados span,
.certificado-col span,
.certificado-datas span {
    font-size: 13px;
    color: #6b7280;
}

.certificado-cliente-dados strong,
.certificado-col strong,
.certificado-datas strong {
    display: block;
    font-size: 15px;
    margin-top: 4px;
    color: #111827;
}

/* ======================================================
   DIVISORES
====================================================== */

.certificado-divider {
    border: none;
    border-top: 1px dashed #e5e7eb;
    margin: 16px 0;
}

.certificado-divider-vertical {
    width: 1px;
    background: repeating-linear-gradient(
        to bottom,
        #e5e7eb,
        #e5e7eb 4px,
        transparent 4px,
        transparent 8px
    );
}

/* ======================================================
   GRID VEÍCULO / SERVIÇO
====================================================== */

.certificado-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 32px;
    align-items: start;
    margin: 8px 0;
}

.certificado-col .mt {
    margin-top: 12px;
}

/* ======================================================
   DATAS
====================================================== */

.certificado-datas {
    display: flex;
    justify-content: space-between;
    margin: 8px 0 20px;
}

/* ======================================================
   FOOTER
====================================================== */

.certificado-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
}

.certificado-validade {
    color: #166534;
    font-weight: 600;
}

.certificado-emissor {
    color: #374151;
    font-size: 13px;
}

/* ======================================================
   RESPONSIVO
====================================================== */

@media (max-width: 768px) {

    .certificado-wrapper {
        padding: 24px;
    }

    .certificado-cliente-dados {
        grid-template-columns: 1fr;
        gap: 12px;
    }

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

    .certificado-divider-vertical {
        display: none;
    }

    .certificado-datas {
        flex-direction: column;
        gap: 12px;
    }

    .certificado-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}



/* ======================================================
   FIX DEFINITIVO  HR DO CERTIFICADO
====================================================== */

.certificado-wrapper hr.certificado-divider {
    margin: 16px 0 !important;
    height: 0;
    border: none;
    border-top: 1px dashed #e5e7eb;
}
/* OVERLAY */
#nm-reset-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;               /* começa fechado */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* MODAL */
#nm-reset-modal {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    text-align: center;
}

/* INPUT */
#nm-reset-modal input {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* BOTÕES */
#nm-reset-modal button {
    margin-top: 12px;
}

/* FECHAR */
#nm-close-reset {
    background: none;
    border: none;
    color: #666;
    margin-top: 16px;
    cursor: pointer;
}

/* MENSAGEM */
.nm-reset-msg {
    margin-top: 12px;
    font-size: 14px;
}

/* FORM RESET */
.nm-reset-form {
    max-width: 420px;
    margin: 80px auto;
    display: flex;
    flex-direction: column;
    gap: 36px; /* mais respiro entre inputs */
    align-items: center; /* centraliza filhos */
}
.nm-field {
    width: 100%;
}

.nm-field input {
    width: 100%;
    max-width: 380px; /* 🔥 controla comprimento visual */
    margin: 0 auto;
}

.nm-password-field input {
    width: 100%;
    height: 48px;
    padding: 0 52px 0 14px;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #cfd8ff;
    background: transparent;
    outline: none;

    /* 🔥 força exibição real da senha */
    -webkit-text-security: none !important;
    letter-spacing: normal !important;
}

.nm-toggle-pass {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;

    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f6d94b;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
    line-height: 1;
}



/* BOTÃO SALVAR */
.nm-reset-form button[type="submit"] {
    margin-top: 32px; /* 🔥 mais espao dos inputs */
    padding: 14px 32px;
    border-radius: 12px;
    background: #f6d94b;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

/* FORM LOGIN */
.nm-login-form {
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* LINHA DO INPUT */
.nm-field-row {
    width: 100%;
}

/* INPUT */
.nm-field-row input {
    width: 100%;
    height: 48px;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #cfd8ff;
    background: transparent;
    outline: none;
}

/* BOTÃO */
.nm-login-btn {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    background: #f6d94b;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

/* LINK ESQUECI */
.nm-forgot {
    display: block;
    margin-top: 18px;
    text-align: center;
    color: #f6d94b;
    text-decoration: none;
}

/* ================================
   FIX DEFINITIVO  INPUT SENHA
================================ */

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

.nm-password-field input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 12px !important;
    font-size: 16px;
    line-height: 48px;
    border: none;
    border-bottom: 2px solid #cfd8ff;
    background: transparent;
    box-sizing: border-box;
}

/* BOTO OLHO */
.nm-password-field .nm-toggle-pass,
.nm-password-field .nm-toggle-password {
    all: unset;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f6d94b;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* REMOVE MASCARA DE SENHA FORÇADA PELO TEMA */
input[type="text"],
input[type="password"] {
    -webkit-text-security: none !important;
    text-security: none !important;
}

.nm-password-field input {
    -webkit-text-security: none !important;
    text-security: none !important;
}
/* TOPBAR DO PAINEL */
.nm-painel-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    padding: 14px 20px;
    margin: -20px -24px 24px; /* cola no topo do conteúdo */

    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

/* BLOCO DO USUÁRIO */
.nm-painel-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* NOME */
.nm-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

/* SAIR */
.nm-user-logout {
    font-size: 14px;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
}

.nm-user-logout:hover {
    text-decoration: underline;
}

/* Lista de serviços (separar itens) */
.nm-servicos-list{
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.nm-servicos-list li{
  padding: 8px 0;
  border-top: 1px dashed rgba(0,0,0,0.10);
  line-height: 1.25;
}

.nm-servicos-list li:first-child{
  border-top: none;
  padding-top: 0;
}

.nm-servicos-list li::before{
  content: "• ";
  font-weight: 700;
  margin-right: 4px;
}

.nm-servicos-empty{
  margin-top: 8px;
  opacity: .75;
}
