/* =========================
   VARIÁVEIS
========================= */
:root {
  --sidebar-width: 240px;
  --header-height: 56px;
  --bottom-nav-height: 64px;

  --bg: #f8f9fa;
  --card: #ffffff;
  --text: #212529;
  --sdesk: #000000;
  --primary: #0d6efd;
  --success-color: #198754;
}

/* =========================
   RESET BÁSICO
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

/* =========================
   ESTRUTURA GERAL
========================= */
.app {
  display: flex;
  min-height: 100vh;
}

/* =========================
   SIDEBAR DESKTOP
========================= */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid rgba(0,0,0,0.08);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
}

.sidebar .logo {
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar nav a {
  display: flex;
  font-size: 1.2rem;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;

  color: #000000;      
  font-weight: 600;   
}

.sidebar nav a i {
  color: #000000;
}

.sidebar .logo img {
  width: auto;        
  max-height: 110px;  
  display: block;
  margin: 0 auto;    
  object-fit: contain;
}


.sidebar nav a:hover,
.sidebar nav a.active {
  background: rgba(13,110,253,0.08);
  color: var(--primary);
}

/* =========================
   MAIN (DESKTOP)
========================= */
.main {
  margin-left: var(--sidebar-width);
  width: 100%;
}

/* =========================
   HEADER DESKTOP
========================= */
.desktop-header {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 100;
}

/* =========================
   CONTEÚDO
========================= */
.content {
  padding: 20px;
  padding-top: calc(var(--header-height) + 20px);
}

/* =========================
   HEADER MOBILE (FIXO)
========================= */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  z-index: 200;
}

.mobile-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-right i {
  font-size: 18px;
  margin-left: 14px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =========================
   BOTTOM NAV MOBILE (SPOTIFY)
========================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 200;
}

.bottom-nav a {
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
}

.bottom-nav i {
  font-size: 20px;
  margin-bottom: 2px;
}

.bottom-nav a.active {
  color: var(--primary);
}

/* =========================
   AJUSTES MOBILE
========================= */
@media (max-width: 767px) {

  .sidebar {
    display: none;
  }

  .main {
    margin-left: 0;
  }

  .content {
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: calc(var(--bottom-nav-height) + 16px);
  }

  .desktop-header {
    display: none;
  }
}

/* ==========================
   CARTÕES DE MODELO
========================= */
.card-modelo {
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  height: 100%;
  border-left: 4px solid var(--success-color);
}

.card-modelo .codigo {
  font-weight: 700;
  font-size: 1.1rem;
}

.card-modelo .cliente {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background-color: #198754; 
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.card-modelo .linha {
  margin-top: 6px;
  font-size: 0.95rem;
}

/* =========================
   CARD MODELO
========================= */
.card-modelo .linha strong {
  color: #495057;
}

.card-modelo .linha {
  border-bottom: 1px dashed #e9ecef;
  padding-bottom: 4px;
}

/* =========================
   CHECKBOX PCP – DESKTOP
========================= */
@media (min-width: 768px) {
  #pcpTurnos input[type="checkbox"] {
    transform: scale(1.4); /* aumenta o tamanho */
    margin-right: 6px;
    cursor: pointer;
  }

/* =========================
   FULLSCREEN LAYOUT MODE
========================= */

body.fullscreen-mode .sidebar {
  display: none !important;
}

body.fullscreen-mode .main {
  margin-left: 0 !important;
}

body.fullscreen-mode .desktop-header {
  left: 0 !important;
}

body.fullscreen-mode .content {
  padding-left: 24px;
  padding-right: 24px;
}

/* segurança mobile */
@media (max-width: 767px) {
  body.fullscreen-mode .sidebar {
    display: none !important;
  }
}

  #pcpTurnos {
    font-size: 1.05rem; /* texto acompanha o checkbox */
  }
}

/* =========================
   KPIs – DASHBOARD
========================= */

.kpi-card h4 {
  font-size: 2.1rem;      /* destaque forte */
  font-weight: 600;      /* visual executivo */
  margin-top: 6px;
}

.kpi-card small {
  font-size: 0.90rem;
  color: #000000;        
  font-weight: 500;
}

