@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,300..900&display=swap');
/* RESET GERAL */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background-color: #f4f7f6;
    display: flex; /* Alinha sidebar e conteúdo lado a lado */
    min-height: 100vh;
}

/* SIDEBAR FIXA (Barra Azul) */
.sidebar {
    width: 280px !important;
    background-color: #004a99 !important;
    color: #fff;
    height: 100vh;
    position: fixed !important;
    left: 0;
    top: 0;
    padding: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.logo-area img {
    width: 100%;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: 0.3s;
}

.menu a:hover, .menu a.active {
    background: rgba(255,255,255,0.15);
}

.logout-link { margin-top: auto; color: #ffcccc !important; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; }

/* ÁREA DE CONTEÚDO PRINCIPAL */
.content {
    margin-left: 280px !important; /* AFASTAMENTO DA SIDEBAR */
    padding: 40px;
    width: calc(100% - 280px);
    flex: 1;
}

/* CARDS E FORMULÁRIOS */
.card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.form-row { display: flex; gap: 15px; align-items: flex-end; flex-wrap: wrap; }
.field { flex: 1; min-width: 180px; }
.field label { display: block; font-size: 13px; font-weight: bold; margin-bottom: 5px; color: #666; }

input, select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 15px; }

.btn-add { 
    background: #28a745; color: #fff; border: none; padding: 12px 25px; 
    border-radius: 6px; cursor: pointer; font-weight: bold; transition: 0.3s;
}
.btn-add:hover { background: #218838; }

/* TABELAS */
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { padding: 15px; border-bottom: 1px solid #eee; text-align: left; }
th { color: #999; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }

.text-green { color: #28a745; font-weight: bold; }
.text-red { color: #E31D2B; font-weight: bold; }
/* ════════════════════════════════════════════════════════════
   TEMA ENGETECH (mesmo da página inicial). O vermelho do
   CADPrint continua nos destaques; o resto segue a EngeTech.
   ════════════════════════════════════════════════════════════ */
body{font-family:'Archivo','Segoe UI',Tahoma,sans-serif;background-color:#f3f9f5;color:#2f4a44}
h1,h2,h3{color:#0f2e2a;font-stretch:110%}
.sidebar{background:linear-gradient(170deg,#0a3a4f 0%,#0b5866 55%,#0d6e5a 100%)!important;box-shadow:4px 0 20px rgba(6,44,58,.18)}
.logo-area img{border-radius:12px;box-shadow:0 6px 18px rgba(0,0,0,.18)}
.menu a{border-radius:10px;font-weight:500}
.menu a:hover,.menu a.active{background:rgba(255,255,255,.14);box-shadow:inset 3px 0 0 #E31D2B}
.sidebar::after{content:"Sistema EngeTech";display:block;margin-top:14px;padding:8px 0 0 38px;min-height:30px;font-size:12.5px;color:#bfe3e0;
  background:url('/logos/emblema-lg22.png') left 2px/30px 30px no-repeat;border-top:1px solid rgba(255,255,255,.1)}
.card{border:1px solid rgba(15,46,42,.08);border-radius:14px;box-shadow:0 6px 18px rgba(15,46,42,.05)}
input,select,textarea{border-color:rgba(15,46,42,.15);border-radius:10px;font-family:inherit}
input:focus,select:focus,textarea:focus{outline:2px solid rgba(11,127,153,.35);border-color:#0b7f99}
.btn-add{background:linear-gradient(135deg,#0e9f6e,#0b8a5f);border-radius:10px}
.btn-add:hover{background:#0b8a5f}
.text-green{color:#0b8a5f}
th{color:#5d7670}
/* celular: a barra lateral vira um topo e o conteúdo ocupa a largura toda */
@media (max-width:860px){
  body{display:block}
  .sidebar{position:relative!important;width:100%!important;height:auto;padding:14px 16px}
  .logo-area img{width:auto;max-height:56px;margin-bottom:10px}
  .menu{display:flex;flex-wrap:wrap;gap:6px}
  .menu a{margin:0;padding:9px 12px}
  .logout-link{margin-top:6px}
  .content{margin-left:0!important;width:100%;padding:20px 16px;overflow-x:hidden}
  table{display:block;overflow-x:auto;white-space:nowrap}
}
