/* =========================================================
   MarcenariaPro - CSS Principal
   ========================================================= */

:root {
  --primary: #B5651D;
  --primary-dark: #8B4513;
  --primary-light: #D2956A;
  --secondary: #2C3E50;
  --accent: #E67E22;
  --success: #27AE60;
  --warning: #F39C12;
  --danger: #E74C3C;
  --info: #3498DB;
  --bg: #F4F1EC;
  --bg-card: #FFFFFF;
  --bg-sidebar: #1A1A2E;
  --sidebar-text: #CBD5E1;
  --sidebar-active: #B5651D;
  --text: #2C3E50;
  --text-muted: #7F8C8D;
  --border: #E5DDD5;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 260px;
  --topbar-h: 64px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== LOGIN ===== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--secondary);
}
.login-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 40%, #0F3460 100%);
  overflow: hidden;
}
.login-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23B5651D' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.login-card {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  margin: 20px;
}
.login-logo {
  text-align: center;
  margin-bottom: 32px;
}
.login-logo i {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}
.login-logo h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--secondary);
}
.login-logo p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-group label i { margin-right: 6px; color: var(--primary); }
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus { border-color: var(--primary); }
.input-eye {
  position: relative;
}
.input-eye input { padding-right: 44px; }
.input-eye i {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted); cursor: pointer;
}
.login-error {
  background: #FEE2E2; color: var(--danger);
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 13px; margin-bottom: 14px;
}
.btn-login {
  width: 100%; padding: 14px;
  background: var(--primary);
  color: white;
  border: none; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn-login:hover { background: var(--primary-dark); }
.login-profiles-hint {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.login-profiles-hint p {
  font-size: 12px; color: var(--text-muted); margin-bottom: 10px;
}
.hint-badges {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
}
.hint-badges span {
  background: var(--bg); border: 1px solid var(--border);
  padding: 5px 10px; border-radius: 20px;
  font-size: 12px; cursor: pointer;
  transition: all 0.2s;
}
.hint-badges span:hover {
  background: var(--primary); color: white; border-color: var(--primary);
}

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

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  display: flex; flex-direction: column;
  position: fixed; left: 0; top: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s;
  overflow-y: auto;
}
.sidebar-header {
  padding: 20px 20px 16px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar-header i { font-size: 24px; color: var(--primary); }
.sidebar-brand {
  font-weight: 800; font-size: 18px; color: white;
  flex: 1;
}
.sidebar-close {
  display: none; background: none; border: none;
  color: var(--sidebar-text); font-size: 18px; cursor: pointer;
}
.sidebar-user {
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.user-avatar {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; font-size: 16px;
  flex-shrink: 0;
}
.user-name { color: white; font-weight: 600; font-size: 14px; }
.user-role { color: var(--sidebar-text); font-size: 12px; }
.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-section {
  padding: 8px 20px 4px;
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase; letter-spacing: 1px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px;
  color: var(--sidebar-text);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  text-decoration: none;
}
.nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: white;
}
.nav-item.active {
  background: rgba(181,101,29,0.15);
  color: var(--primary-light);
  border-left-color: var(--primary);
}
.nav-item i { width: 20px; text-align: center; }
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.btn-logout {
  width: 100%; padding: 10px;
  background: rgba(231,76,60,0.15);
  color: #E74C3C; border: 1px solid rgba(231,76,60,0.2);
  border-radius: var(--radius-sm);
  cursor: pointer; font-size: 14px; font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.btn-logout:hover { background: var(--danger); color: white; }

/* MAIN WRAPPER */
.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TOPBAR */
.topbar {
  height: var(--topbar-h);
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky; top: 0; z-index: 90;
  box-shadow: var(--shadow);
}
.hamburger {
  display: none; background: none; border: none;
  font-size: 20px; color: var(--text); cursor: pointer;
}
.topbar-title {
  font-size: 18px; font-weight: 700;
  color: var(--secondary); flex: 1;
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-clock {
  font-size: 15px; font-weight: 600;
  color: var(--text-muted);
  font-feature-settings: 'tnum';
}
.btn-ponto-rapido {
  display: flex; align-items: center; gap: 6px;
  background: var(--primary); color: white;
  border: none; border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer; font-size: 13px; font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}
.btn-ponto-rapido:hover { background: var(--primary-dark); }
.notif-bell {
  position: relative; cursor: pointer;
  padding: 8px;
  font-size: 18px; color: var(--text-muted);
  transition: color 0.2s;
}
.notif-bell:hover { color: var(--primary); }
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--danger); color: white;
  font-size: 10px; font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.notif-panel {
  position: fixed; top: var(--topbar-h); right: 16px;
  width: 340px; background: white;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  z-index: 200; border: 1px solid var(--border);
  overflow: hidden;
}
.notif-header {
  padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; border-bottom: 1px solid var(--border);
}
.notif-header button { background: none; border: none; cursor: pointer; color: var(--text-muted); }
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 12px; align-items: flex-start;
}
.notif-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.notif-text p { font-size: 13px; line-height: 1.4; }
.notif-text span { font-size: 11px; color: var(--text-muted); }

/* PAGE CONTENT */
.page-content {
  flex: 1; padding: 24px;
  overflow-y: auto;
}

/* SIDEBAR OVERLAY MOBILE */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 99;
}

/* ===== CARDS & GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: white; border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 16px;
  border-left: 4px solid transparent;
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card.primary { border-left-color: var(--primary); }
.stat-card.success { border-left-color: var(--success); }
.stat-card.warning { border-left-color: var(--warning); }
.stat-card.danger { border-left-color: var(--danger); }
.stat-card.info { border-left-color: var(--info); }
.stat-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.stat-card.primary .stat-icon { background: #FDF0E6; color: var(--primary); }
.stat-card.success .stat-icon { background: #EAFAF1; color: var(--success); }
.stat-card.warning .stat-icon { background: #FEF9E7; color: var(--warning); }
.stat-card.danger .stat-icon { background: #FDEDEC; color: var(--danger); }
.stat-card.info .stat-icon { background: #EBF5FB; color: var(--info); }
.stat-value { font-size: 24px; font-weight: 800; color: var(--secondary); }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* TABLE */
.table-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  margin-bottom: 24px;
}
.table-header {
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 12px;
}
.table-title { font-size: 16px; font-weight: 700; }
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; font-size: 14px; }
th {
  background: #F8F5F0; font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
td { border-bottom: 1px solid var(--border); }
tr:hover td { background: #FAFAFA; }
tr:last-child td { border-bottom: none; }

/* BADGE/STATUS */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.badge-success { background: #D5F5E3; color: #1E8449; }
.badge-warning { background: #FDEBD0; color: #784212; }
.badge-danger { background: #FADBD8; color: #922B21; }
.badge-info { background: #D6EAF8; color: #1A5276; }
.badge-primary { background: #FDF0E6; color: #784212; }
.badge-secondary { background: #EAF0FB; color: #2C3E50; }
.badge-purple { background: #F3EEFF; color: #6C3483; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  cursor: pointer; border: none;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  text-decoration: none;
}
.btn i { font-size: 12px; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #1E8449; }
.btn-warning { background: var(--warning); color: white; }
.btn-warning:hover { background: #D68910; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #C0392B; }
.btn-info { background: var(--info); color: white; }
.btn-info:hover { background: #2980B9; }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { padding: 7px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border); cursor: pointer; font-size: 14px; color: var(--text-muted); transition: all 0.2s; }
.btn-icon:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* SEARCH INPUT */
.search-box {
  display: flex; align-items: center;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px; gap: 8px;
}
.search-box i { color: var(--text-muted); font-size: 14px; }
.search-box input {
  background: none; border: none; outline: none;
  font-size: 14px; font-family: 'Inter', sans-serif;
  min-width: 180px; color: var(--text);
}

/* FORM ELEMENTS */
.form-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.form-col { flex: 1; min-width: 200px; }
.form-col label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-muted); margin-bottom: 6px;
}
.form-col input, .form-col select, .form-col textarea {
  width: 100%; padding: 10px 14px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: 'Inter', sans-serif;
  outline: none; transition: border-color 0.2s;
  color: var(--text);
  background: white;
}
.form-col input:focus, .form-col select:focus, .form-col textarea:focus {
  border-color: var(--primary);
}
.form-col textarea { resize: vertical; min-height: 80px; }
.form-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-card {
  background: white; border-radius: var(--radius);
  width: 100%; max-width: 640px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-card.wide { max-width: 900px; }
.modal-card.narrow { max-width: 420px; }
.modal-header {
  padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: white; z-index: 1;
}
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-header button { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-muted); }
.modal-body { padding: 20px; }

/* PONTO MODAL */
.ponto-modal { max-width: 380px; }
.ponto-clock {
  font-size: 48px; font-weight: 800;
  text-align: center; color: var(--secondary);
  padding: 20px 0 4px;
  font-feature-settings: 'tnum';
}
.ponto-date {
  text-align: center; color: var(--text-muted);
  font-size: 14px; margin-bottom: 16px;
}
.ponto-pin-area { padding: 16px 24px 20px; }
.ponto-pin-area p { text-align: center; font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.pin-display {
  display: flex; gap: 12px; justify-content: center;
  margin-bottom: 20px;
}
.pin-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  transition: all 0.15s;
}
.pin-dot.filled { background: var(--primary); border-color: var(--primary); }
.pin-keyboard {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-bottom: 16px;
}
.pin-keyboard button {
  padding: 14px; font-size: 20px; font-weight: 700;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
}
.pin-keyboard button:hover { background: var(--primary); color: white; border-color: var(--primary); }
.pin-clear { color: var(--danger) !important; }
.pin-back { font-size: 16px !important; }
.ponto-tipo {
  display: flex; gap: 6px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 12px;
}
.tipo-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  border: 2px solid var(--border);
  background: var(--bg); cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.tipo-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.ponto-feedback {
  padding: 10px; border-radius: var(--radius-sm);
  text-align: center; font-size: 14px; font-weight: 600;
  margin-bottom: 10px;
}
.ponto-feedback.success { background: #D5F5E3; color: var(--success); }
.ponto-feedback.error { background: #FADBD8; color: var(--danger); }
.btn-registrar-ponto {
  width: 100%; padding: 14px;
  background: var(--primary); color: white;
  border: none; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}
.btn-registrar-ponto:hover { background: var(--primary-dark); }

/* KANBAN */
.kanban-board {
  display: flex; gap: 16px; overflow-x: auto;
  padding-bottom: 12px;
}
.kanban-col {
  min-width: 260px; flex-shrink: 0;
  background: #F0EBE3;
  border-radius: var(--radius);
  overflow: hidden;
}
.kanban-col-header {
  padding: 12px 16px;
  font-weight: 700; font-size: 13px;
  display: flex; justify-content: space-between; align-items: center;
}
.kanban-col-body { padding: 8px; min-height: 100px; }
.kanban-card {
  background: white; border-radius: var(--radius-sm);
  padding: 12px; margin-bottom: 8px;
  box-shadow: var(--shadow); cursor: pointer;
  border-left: 3px solid transparent;
  transition: transform 0.2s;
}
.kanban-card:hover { transform: translateY(-1px); }
.kanban-card-title { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.kanban-card-sub { font-size: 12px; color: var(--text-muted); }
.kanban-card-footer {
  margin-top: 8px; display: flex;
  justify-content: space-between; align-items: center;
}

/* SECTION TITLE */
.section-title {
  font-size: 22px; font-weight: 800;
  color: var(--secondary); margin-bottom: 6px;
}
.section-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

/* CHARTS GRID */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px; margin-bottom: 24px;
}
.chart-card {
  background: white; border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.chart-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.chart-wrap { height: 260px; }

/* FINANCEIRO */
.fin-tab-bar {
  display: flex; gap: 4px;
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 4px; margin-bottom: 20px;
  flex-wrap: wrap;
}
.fin-tab {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  cursor: pointer; border: none;
  background: transparent; color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.fin-tab.active {
  background: white; color: var(--primary);
  box-shadow: var(--shadow);
}

/* CRM PIPELINE */
.crm-pipeline {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
}
.crm-stage {
  min-width: 220px; flex-shrink: 0;
  background: var(--bg); border-radius: var(--radius);
  overflow: hidden;
}
.crm-stage-header {
  padding: 10px 14px;
  font-weight: 700; font-size: 13px;
}
.crm-stage-body { padding: 8px; }
.crm-card {
  background: white; border-radius: var(--radius-sm);
  padding: 10px; margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  cursor: pointer;
}
.crm-card-name { font-weight: 600; font-size: 13px; }
.crm-card-val { color: var(--primary); font-weight: 700; font-size: 13px; }
.crm-card-date { font-size: 11px; color: var(--text-muted); }

/* TOAST */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--secondary); color: white;
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  animation: slideIn 0.3s ease;
  min-width: 250px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* TABS */
.tab-bar {
  display: flex; border-bottom: 2px solid var(--border);
  margin-bottom: 20px; gap: 4px;
}
.tab-btn {
  padding: 10px 18px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; border: none;
  background: transparent; color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

/* EMPTY STATE */
.empty-state {
  text-align: center; padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 48px; margin-bottom: 12px; display: block; opacity: 0.3; }
.empty-state p { font-size: 15px; }

/* PROGRESS BAR */
.progress-bar {
  height: 8px; background: var(--border);
  border-radius: 4px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 4px;
  background: var(--primary);
  transition: width 0.5s;
}

/* HIDDEN */
.hidden { display: none !important; }

/* SCROLL */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-close { display: block; }
  .sidebar-overlay.open { display: block; }
  .main-wrapper { margin-left: 0; }
  .hamburger { display: block; }
  .topbar-clock { display: none; }
  .page-content { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
  .modal-card { max-width: 100%; margin: 10px; }
  .kanban-board { overflow-x: scroll; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
}

/* ORC PDF Preview */
.orc-preview {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 24px;
  font-size: 13px; line-height: 1.6;
}
.orc-preview h2 { font-size: 20px; color: var(--primary); margin-bottom: 4px; }
.orc-preview .orc-header { display: flex; justify-content: space-between; margin-bottom: 20px; }
.orc-preview table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.orc-preview th { background: var(--bg); padding: 8px; font-size: 12px; }
.orc-preview td { padding: 8px; border-bottom: 1px solid var(--border); font-size: 13px; }
.orc-preview .total-line {
  display: flex; justify-content: space-between;
  padding: 8px 0; border-top: 1px solid var(--border);
  font-weight: 600;
}
.orc-preview .grand-total {
  font-size: 18px; font-weight: 800;
  color: var(--primary);
}

/* MOBILE APP STYLE */
.mobile-app-frame {
  max-width: 390px; margin: 0 auto;
  background: #F0F0F0; border-radius: 28px;
  overflow: hidden; box-shadow: var(--shadow-lg);
  min-height: 640px; position: relative;
}
.mobile-statusbar {
  background: var(--secondary); color: white;
  padding: 10px 20px 6px;
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 600;
}
.mobile-header {
  background: var(--primary); color: white;
  padding: 16px 20px;
}
.mobile-header h2 { font-size: 18px; font-weight: 700; }
.mobile-header p { font-size: 12px; opacity: 0.85; }
.mobile-body { padding: 16px; overflow-y: auto; max-height: 500px; }
.mobile-card {
  background: white; border-radius: 14px;
  padding: 14px; margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.mobile-bottom-nav {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: white; border-top: 1px solid var(--border);
  display: flex; justify-content: space-around;
  padding: 10px 0 14px;
}
.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; font-size: 11px; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  transition: color 0.2s;
}
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item i { font-size: 20px; }

/* WHATSAPP */
.whatsapp-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #25D366; color: white;
  padding: 7px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  border: none; font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}
.whatsapp-btn:hover { background: #128C7E; }

/* PROFILE BADGE */
.profile-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
}
.profile-admin { background: #F3EEFF; color: #6C3483; }
.profile-vendedor { background: #EAF5FB; color: #1A5276; }
.profile-producao { background: #EAFAF1; color: #1E8449; }
.profile-estoque { background: #FEF9E7; color: #784212; }
