@charset "utf-8";
/* CSS Document */

/* Euroimmun - Área do Cliente (Theme v1) */
:root{
  --clover:#73C054;
  --clover-10:#EAF4E4;
  --forest:#218529;
  --ink:#0f172a;
  --muted:#64748b;
  --bg:#f6f7f8;
  --card:#ffffff;
  --border:#e5e7eb;
}

/* Base */
*{box-sizing:border-box;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}
html,body{margin:0;padding:0}
body{font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--bg)}
a{color:var(--forest);text-decoration:none}
.container{max-width:1080px;margin:0 auto;padding:22px}
/* Ajuste para header fixo - garantir que main não fique escondido */
main.container{
  padding-top:22px;
}
/* Página de Perfil - largura aumentada */
body.dashboard main.container:has(.profile-page),
body.dashboard main.container .profile-page ~ * {
  max-width: 800px !important;
  width: 100% !important;
}

/* Topbar (verde principal) - FIXO */
.topbar{
  background:#73C054;
  color:#fff;
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:1000;
  width:100%;
  box-shadow:0 2px 8px rgba(0,0,0,0.1);
  min-height:88px;
  display:flex;
  align-items:center;
}
.topbar .container{
  display:grid;
  grid-template-columns:220px 1fr;
  align-items:center;
  gap:40px;
  padding:14px 22px;
  max-width:1080px;
  margin:0 auto;
  width:100%;
}
.topbar .brand{
  flex-shrink:0;
  width:220px;
  display:flex;
  align-items:center;
  grid-column:1;
  position:relative;
}
.topbar .brand img,
.topbar .brand-logo{
  height:60px !important;
  max-height:60px !important;
  width:auto !important;
  display:block;
}
/* Estilos antigos do nav - mantidos para compatibilidade */
.topbar nav:not(.main-nav){
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  gap:0;
  justify-content:flex-end;
  grid-column:2;
  width:100%;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.topbar nav:not(.main-nav)::-webkit-scrollbar{
  display:none;
}
.topbar nav:not(.main-nav) a{
  color:#fff;
  margin-left:16px;
  opacity:.9;
  white-space:nowrap;
  flex-shrink:0;
  display:inline-block;
  line-height:1.5;
  font-size:16px;
}
.topbar nav:not(.main-nav) a:hover{
  opacity:1;
}
.topbar nav:not(.main-nav) a:first-child{
  margin-left:0;
}

/* ============================================
   NAVEGAÇÃO COM DROPDOWNS E MENU MOBILE
   ============================================ */

/* Botão hambúrguer mobile */
.mobile-menu-toggle {
  display: none;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: all 0.2s;
  grid-column: 2;
}

.mobile-menu-toggle:hover {
  background: rgba(255,255,255,0.3);
}

.hamburger-icon {
  font-size: 20px;
  line-height: 1;
}

/* Links de navegação */
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  justify-content: flex-end;
  grid-column: 2;
  width: 100%;
  min-width: 0;
}

.nav-link {
  color: #fff !important;
  margin-left: 16px;
  opacity: 0.9;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
  line-height: 1.5;
  font-size: 16px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link:first-child {
  margin-left: 0;
}

/* Garantir que TODOS os links dentro do topbar.site-header tenham cor branca */
/* EXCETO os links dentro dos dropdowns que devem ter cor verde escura */
.topbar.site-header nav a:not(.nav-dropdown-item),
.topbar.site-header .main-nav a:not(.nav-dropdown-item),
.topbar.site-header .nav-link:not(.nav-dropdown-item),
.topbar.site-header .main-nav .nav-link:not(.nav-dropdown-item) {
  color: #fff !important;
}

/* Garantir que links dentro do main-nav tenham cor branca */
/* EXCETO os links dentro dos dropdowns */
.main-nav .nav-link:not(.nav-dropdown-item),
.topbar .main-nav a:not(.nav-dropdown-item) {
  color: #fff !important;
}

/* Garantir que links dentro dos dropdowns tenham cor verde escura */
.nav-dropdown-menu .nav-dropdown-item,
.nav-dropdown-item {
  color: var(--forest) !important;
}

/* Dropdowns */
.nav-dropdown {
  position: relative;
  margin-left: 16px;
}

.nav-dropdown-toggle {
  background: transparent;
  border: none;
  color: #fff !important;
  opacity: 0.9;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  line-height: 1.5;
  transition: opacity 0.2s;
  font-family: inherit;
}

.nav-dropdown-toggle:hover {
  opacity: 1;
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s;
  display: inline-block;
}

.nav-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border: 1px solid rgba(115,192,84,0.2);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  padding: 4px 0;
}

.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--forest) !important;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: rgba(115,192,84,0.1);
  color: var(--forest) !important;
}

.nav-dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.nav-dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

/* Overlay mobile */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

/* Compensar altura do header fixo no body */
body.dashboard{
  padding-top:88px;
}

/* Footer */
.footer{background:var(--forest);color:#fff;padding:18px 0;margin-top:32px}
.footer .container{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.footer small{opacity:.95}

/* Hero */
.hero{background:var(--card);border:1px solid var(--border);border-radius:18px;padding:20px;margin:18px 0 20px;box-shadow:0 10px 24px rgba(0,0,0,.06)}
.hero h1{font-size:24px;margin:0 0 6px}
.hero p{margin:0;color:var(--muted)}

/* Seções */
.section{padding:24px;border-radius:18px;border:1px solid var(--border);background:var(--card);margin:18px 0}
.section.alt{background:var(--clover-10)}
.section-title{margin:0 0 12px;font-size:20px;color:var(--forest);font-weight:700}
.section h3{margin:0;font-size:18px;color:var(--forest);font-weight:600}

/* Cards */
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:18px;box-shadow:0 8px 18px rgba(0,0,0,.05);transition:.15s box-shadow,.15s border-color;color:inherit}
.card:hover{box-shadow:0 14px 30px rgba(0,0,0,.08);border-color:var(--clover)}

/* Remover efeito hover do formulário de login */
.login-form .card:hover{transform:none}
.card h3{margin:0 0 6px;font-size:18px}
.card p{margin:0;color:var(--muted);font-size:14px}

.btn{display:inline-block;background:var(--forest);color:#fff;padding:10px 16px;border-radius:12px;margin-top:10px}

/* Responsivo */
@media (max-width: 900px){
  .grid{grid-template-columns:1fr}
  .hero h1{font-size:22px}
  .topbar{
    min-height:88px;
  }
  .topbar .container{
    grid-template-columns:1fr auto;
    gap:12px;
    padding:12px 16px;
    position: relative;
  }
  .topbar .brand{
    width:100%;
    grid-column:1;
  }
  .topbar .brand img,
  .topbar .brand-logo{
    height:50px !important;
    max-height:50px !important;
  }
  
  /* Mostrar botão hambúrguer em mobile */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Menu mobile */
  .main-nav {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    background: #73C054;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    box-shadow: 2px 4px 12px rgba(0,0,0,0.15);
    gap: 0;
  }
  
  .main-nav.active {
    transform: translateX(0);
  }
  
  .nav-link,
  .nav-dropdown-toggle {
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    text-align: left;
    display: block;
  }
  
  .nav-dropdown {
    margin: 0;
    width: 100%;
  }
  
  .nav-dropdown-menu {
    position: static;
    margin: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(0,0,0,0.1);
    transform: none;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
  }
  
  .nav-dropdown.active .nav-dropdown-menu {
    max-height: 500px;
    padding: 4px 0;
  }
  
  .nav-dropdown-item {
    padding: 10px 32px;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  
  .nav-dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
  }
  
  body.dashboard{
    padding-top:88px;
  }
}


/* === PATCH 2025-10-23 === */
:root{
  --brand:#73C054; /* topo e rodapé */
  --history-yellow:#FFEB0F;
  --ink:#111;
}

/* Topo */
.site-header{background:var(--brand);}
.site-header .brand-logo{height:60px !important; max-height:60px; width:auto}

/* Rodapé */

.site-footer a{color:#000}

/* Welcome "solta" */
.welcome-inline{
  display:flex; align-items:center; gap:.5rem;
  font-size:clamp(18px,2.2vw,22px); font-weight:600; color:#222;
  margin:16px 0 8px;
}
.welcome-inline .party{
  display:inline-flex; width:24px; height:24px; line-height:0;
}

/* Seções colapsáveis */
.section{border-top:1px solid #e6e6e6; padding:16px 0; background:var(--card)}
.section > .section-head{display:flex;align-items:center;gap:.5rem;cursor:pointer;user-select:none;padding:0 24px}
.section .chev{width:18px;height:18px;display:inline-block;transition:transform .25s ease;transform:rotate(-90deg)}
.section[aria-expanded="true"] .chev{transform:rotate(0deg)}
.section .section-body{display:none;padding:0 24px;margin-top:16px}
.section[aria-expanded="true"] .section-body{display:block;animation:fadeIn .22s ease}
@keyframes fadeIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

/* Grids de 4 colunas no desktop */
.grid-4{display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px}
@media (max-width:1024px){ .grid-4{grid-template-columns:repeat(2,1fr)} }
@media (max-width:640px){ .grid-4{grid-template-columns:1fr} }

/* Histórico de downloads - cards amarelos */
.history-card{
  background:linear-gradient(135deg, #f0fdf4, #dcfce7);
  color:#000; border-radius:14px; padding:14px 16px; box-shadow:0 1px 0 rgba(0,0,0,.06);
}
.history-card h4{margin:2px 0 6px; font-size:16px}
.history-card .metric{font-size:24px; font-weight:800; letter-spacing:.2px}
.history-card .sub{margin-top:4px; font-size:12px; opacity:.8}

/* Documentos & Material - cards menores (cabem 4 por linha) */
.docs-grid .doc-card{
  border-radius:14px; padding:16px; background:#fff; /* remover verde de fundo */
  box-shadow:0 1px 0 rgba(0,0,0,.06); display:flex; flex-direction:column; align-items:center; gap:8px;
}
.docs-grid .doc-ico{
  width:40px; height:40px;
}
.docs-grid .doc-title{
  font-size:14px; font-weight:700; text-align:center; color:#222; margin-top:4px;
}
.docs-actions-title {
  margin: 16px 0 8px;
  font-size: 16px;
  color: var(--forest);
}
.docs-actions {
  gap: 8px;
}

/* Oculta possíveis boas-vindas antigas em box */
.welcome-box{ display:none !important; }


/* === PATCH 2025-10-23b === */
:root{
  --brand:#73C054;
  --history-yellow:#FFEB0F;
}

.container{padding-left:16px;padding-right:16px}
.dashboard main.container{max-width:1050px;width:100%}

/* Header e Footer - mesma cor */
.site-header{background:var(--brand);}
.site-header .brand-logo{height:60px !important; max-height:60px; width:auto}
.site-footer{background:var(--brand); color:#fff;}
.site-footer a{color:#fff; text-decoration:underline}

/* Welcome solta */
.welcome-inline{display:flex;flex-direction:column;gap:8px;font-size:clamp(18px,2vw,22px);font-weight:600;color:#222;margin:16px 0 8px;padding:0 24px}
.welcome-inline > div{display:flex;align-items:center;gap:.5rem}
.welcome-inline .party-ico{width:24px;height:24px;}
.welcome-message{font-size:14px;font-weight:400;color:var(--muted);margin:0;line-height:1.5;text-align:left}

/* Grid 4 colunas desktop */
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
@media (max-width:1024px){.grid-4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.grid-4{grid-template-columns:1fr}}

/* Histórico de Downloads */
.history-card{background:linear-gradient(135deg,#f0fdf4,#dcfce7);color:var(--forest);border-radius:14px;padding:16px;box-shadow:0 1px 0 rgba(0,0,0,.06);text-align:center}
.history-card h4{margin:0 0 8px;font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.history-card .metric{font-size:24px;font-weight:800;letter-spacing:.2px;margin:8px 0}
.history-card .sub{margin-top:8px;font-size:12px;opacity:.9}

/* Cards de módulos do cliente */
.section-modules{margin-top:8px}
.client-modules-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:24px 0 32px}
.client-modules-grid--1{max-width:320px;margin:0 auto}
.client-modules-grid--2{max-width:680px;margin:0 auto}
.client-module-card{background:#fff;border:1px solid rgba(115,192,84,0.16);border-radius:16px;box-shadow:0 8px 24px rgba(115,192,84,0.08);display:flex;flex-direction:column;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}
.client-module-card:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(115,192,84,0.12)}
.client-module-header{background:linear-gradient(90deg,#73C054,#8cd067);color:#fff;padding:18px 22px;display:flex;align-items:center;gap:12px}
.client-module-icon{font-size:26px;line-height:1}
.client-module-header h3{margin:0;font-size:18px;font-weight:700}
.client-module-content{padding:20px 22px;display:flex;flex-direction:column;gap:16px}
.client-module-content p{margin:0;font-size:14px;color:#4b5563;line-height:1.5}
.client-module-actions{display:flex;flex-wrap:wrap;gap:12px}

/* Histórico de pedidos */
.orders-history-list{display:flex;flex-direction:column;gap:12px}
.order-history-item{background:#fff;border:1px solid var(--border);border-radius:14px;padding:16px 20px;display:flex;align-items:center;gap:16px;box-shadow:0 2px 8px rgba(0,0,0,0.04);transition:box-shadow .2s ease,transform .2s ease}
.order-history-item:hover{box-shadow:0 6px 18px rgba(0,0,0,0.09);transform:translateY(-2px)}
.order-history-main{flex:1;display:flex;flex-direction:column;gap:6px}
.order-history-title{font-size:16px;font-weight:700;color:#111}
.order-history-invoice{font-size:13px;font-weight:600;color:#6b7280;margin-left:6px}
.order-history-meta{display:flex;flex-wrap:wrap;gap:12px;font-size:13px;color:#6b7280}
.order-history-meta span{display:flex;align-items:center;gap:4px}
.order-history-status{display:flex;align-items:center}
.order-history-actions{display:flex;align-items:center}
.orders-history-cta{margin-top:24px;display:flex;justify-content:flex-end}
.orders-history-cta .btn{padding:10px 18px;border-radius:12px}

.orders-history-list .btn.btn-primary.btn-sm {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.orders-history-list .btn.btn-primary.btn-sm:hover {
  filter: brightness(0.95);
}

@media (max-width:640px){
  .order-history-item{flex-direction:column;align-items:flex-start;gap:12px}
  .order-history-status{width:100%}
  .order-history-actions{width:100%}
  .orders-history-cta{justify-content:center}
}

/* Último Pedido Card */
.last-order-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:24px;
  box-shadow:0 2px 8px rgba(0,0,0,0.05);
}

.last-order-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:24px;
  gap:20px;
}

.order-info-main{
  flex:1;
}

.order-number{
  font-size:18px;
  font-weight:600;
  color:#222;
  margin-bottom:8px;
}

.order-number strong{
  color:#73C054;
  font-size:20px;
}

.order-meta{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  font-size:13px;
  color:var(--muted);
}

.order-status-badge{
  flex-shrink:0;
}

/* Timeline Simplificada */
.last-order-timeline{
  margin:24px 0;
  padding:20px 0;
}

.timeline-simple{
  position:relative;
}

.timeline-line-simple{
  position:absolute;
  top:20px;
  left:0;
  right:0;
  height:4px;
  background:#e5e7eb;
  border-radius:2px;
  overflow:hidden;
}

.timeline-progress{
  height:100%;
  background:#4b5563;
  border-radius:2px;
  transition:width 0.3s ease;
}

.timeline-dots{
  position:relative;
  display:flex;
  justify-content:space-between;
  z-index:2;
}

.timeline-dot-simple{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  flex:1;
}

.timeline-dot-simple .dot{
  width:44px;
  height:44px;
  border-radius:50%;
  background:#e5e7eb;
  border:4px solid #fff;
  box-shadow:0 2px 8px rgba(0,0,0,0.1);
  position:relative;
  transition:all 0.3s ease;
}

.timeline-dot-simple.done .dot{
  background:#73C054;
  border-color:#73C054;
  transform:scale(1.1);
}

.timeline-dot-simple.current .dot{
  background:#ffeb0f;
  border-color:#ffeb0f;
  animation:pulse 2s infinite;
}

.timeline-dot-simple.current .dot::after{
  content:'';
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:44px;
  height:44px;
  border:3px solid #ffeb0f;
  border-radius:50%;
  animation:ripple 2s infinite;
}

.timeline-dot-simple span{
  font-size:12px;
  font-weight:600;
  color:#222;
  text-align:center;
  padding:4px 8px;
  border:2px solid #e5e7eb;
  border-radius:6px;
  background:#fff;
}

.timeline-dot-simple.done span{
  color:#222;
  border-color:#73C054;
  background:#dcfce7;
}

.timeline-dot-simple.current span{
  color:#222;
  border-color:#ffeb0f;
  background:#fffbeb;
}

@keyframes pulse{
  0%,100%{transform:scale(1.1)}
  50%{transform:scale(1.15)}
}

@keyframes ripple{
  0%{transform:translate(-50%,-50%) scale(1);opacity:1}
  100%{transform:translate(-50%,-50%) scale(2);opacity:0}
}

.last-order-actions{
  display:flex;
  gap:12px;
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid #f0f0f0;
}

.last-order-actions .btn{
  padding:12px 24px;
  border-radius:8px;
  font-weight:600;
  text-decoration:none;
  display:inline-block;
  transition:all 0.2s ease;
}

.last-order-actions .btn-primary{
  background:#73C054;
  color:#fff;
  border:none;
}

.last-order-actions .btn-primary:hover{
  background:#5fa044;
}

.last-order-actions .btn-secondary{
  background:#fff;
  color:#666;
  border:2px solid var(--border);
}

.last-order-actions .btn-secondary:hover{
  background:#f9fafb;
  border-color:#73C054;
  color:#73C054;
}

/* Status badges para último pedido */
.status-badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}
.status-badge.status-criado{
  background:#e0f2fe;
  color:#0369a1;
}
.status-badge.status-em_separacao,
.status-badge.status-em_separaçao,
.status-badge.status-em_separação{
  background:#fef9c3;
  color:#854d0e;
}
.status-badge.status-em_transito,
.status-badge.status-em_transporte{
  background:#e0f7fa;
  color:#0e7490;
}
.status-badge.status-entregue{
  background:#dcfce7;
  color:#166534;
}
.status-badge.status-em_andamento{
  background:#fef3c7;
  color:#92400e;
}

/* Status badge com contorno na home */
.last-order-header .status-badge{
  border:2px solid currentColor;
  padding:8px 14px;
}

/* Documentos & Material - fundo branco e cards organizados */
.docs-grid .doc-card{border-radius:14px;padding:14px;background:#fff;box-shadow:0 1px 0 rgba(0,0,0,.06);display:flex;flex-direction:column;align-items:center;gap:6px}
.docs-grid .doc-ico{width:36px;height:36px}
.docs-grid .doc-title{font-size:13px;font-weight:700;text-align:center;color:#222;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Badges e Botões */
.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 6px;
  color: #fff;
}

.badge-ifu { background-color: #3b82f6; }
.badge-fds { background-color: #10b981; }
.badge-outros { background-color: #f59e0b; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--forest);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Tabela de documentos */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.table th,
.table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  background-color: var(--clover-10);
  font-weight: 600;
  color: var(--forest);
}

.table tbody tr:hover {
  background-color: var(--clover-10);
}

/* Estado vazio */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.empty-state p {
  margin-bottom: 16px;
  font-size: 16px;
}

/* Card de suporte */
.support-card {
  text-align: center;
}

.support-card h3 {
  margin-bottom: 16px;
  font-size: 18px;
  color: var(--forest);
}

.support-recent {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.support-recent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.support-recent-header h4 {
  margin: 0;
  font-size: 16px;
  color: var(--forest);
}
.support-recent-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.support-recent-item {
  background: #fff;
  border: 1px solid rgba(115,192,84,0.15);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 18px rgba(115,192,84,0.06);
}
.support-recent-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.support-recent-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--forest);
}
.support-ticket-number {
  font-size: 15px;
}
.support-recent-subject {
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
}
.support-recent-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
}
.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(115,192,84,0.4);
  background: rgba(115,192,84,0.12);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.link-inline::after {
  content: '→';
  font-size: 13px;
  line-height: 1;
}
.link-inline:hover {
  background: rgba(115,192,84,0.22);
  border-color: rgba(115,192,84,0.6);
  color: #14532d;
}
.status-badge.status-open {
  background: rgba(34,197,94,0.15);
  color: #15803d;
}
.status-badge.status-in_progress {
  background: rgba(59,130,246,0.15);
  color: #1d4ed8;
}
.status-badge.status-waiting {
  background: rgba(250,204,21,0.18);
  color: #b45309;
}
.status-badge.status-resolved {
  background: rgba(45,212,191,0.18);
  color: #0f766e;
}
.status-badge.status-closed {
  background: rgba(148,163,184,0.18);
  color: #334155;
}
@media (max-width: 640px) {
  .support-recent-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .support-recent-meta {
    align-items: flex-start;
  }
}

.support-recent-empty {
  background: #f9fafb;
  border: 1px dashed rgba(115,192,84,0.25);
  border-radius: 12px;
  padding: 20px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

.docs-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.docs-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.docs-empty {
  background: #f9fafb;
  border: 1px dashed rgba(115,192,84,0.25);
  border-radius: 12px;
  padding: 20px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}
.orders-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.orders-recent {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.orders-recent .btn.btn-primary.btn-sm {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.orders-recent .btn.btn-primary.btn-sm:hover {
  filter: brightness(0.95);
}
.orders-empty {
  background: #f9fafb;
  border: 1px dashed rgba(115,192,84,0.25);
  border-radius: 12px;
  padding: 20px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

.docs-recent h4,
.financial-recent h4,
.orders-recent h4 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--forest);
}

.docs-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
