/*
 * SIGEF JBE - Camada Premium Enterprise
 * Aditiva e conservadora: moderniza sem apagar layout existente.
 */
:root{
  --jbe-premium-font:"Intro","Inter","Segoe UI",Tahoma,Arial,sans-serif;
  --jbe-premium-bg:#f4f8fd;
  --jbe-premium-panel:#ffffff;
  --jbe-premium-text:#0f172a;
  --jbe-premium-muted:#64748b;
  --jbe-premium-line:#dbe7f5;
  --jbe-premium-blue:#2563eb;
  --jbe-premium-blue-deep:#071b3a;
  --jbe-premium-green:#0f766e;
  --jbe-premium-radius:14px;
  --jbe-premium-shadow:0 8px 24px rgba(15,23,42,.055);
  --jbe-premium-shadow-hover:0 14px 34px rgba(15,23,42,.09);
}
html[data-jbe-theme="dark"]{
  --jbe-premium-bg:#0b1220;
  --jbe-premium-panel:#111827;
  --jbe-premium-text:#e5edf7;
  --jbe-premium-muted:#9caec6;
  --jbe-premium-line:#23324a;
}
body{
  background:var(--jbe-premium-bg) !important;
  color:var(--jbe-premium-text) !important;
  font-family:var(--jbe-premium-font) !important;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.card,.cardx,.panel,.box,.section-box,.filter-card,.table-card,.metric-card,.stat-card,.summary-card,.jbe-card,.content-card,.form-card{
  border:1px solid var(--jbe-premium-line) !important;
  border-radius:var(--jbe-premium-radius) !important;
  background:var(--jbe-premium-panel) !important;
  box-shadow:var(--jbe-premium-shadow) !important;
}
.card:hover,.cardx:hover,.metric-card:hover,.stat-card:hover,.summary-card:hover,.jbe-card:hover{
  box-shadow:var(--jbe-premium-shadow-hover) !important;
}
.table-responsive,.table-wrap,.sigef-table-wrap{
  border:1px solid var(--jbe-premium-line) !important;
  border-radius:var(--jbe-premium-radius) !important;
  background:var(--jbe-premium-panel) !important;
  overflow:auto !important;
}
table thead th,.table thead th{
  background:#f7fbff !important;
  color:var(--jbe-premium-muted) !important;
  border-color:var(--jbe-premium-line) !important;
  font-size:10.5px !important;
  letter-spacing:.02em !important;
  text-transform:uppercase !important;
  white-space:nowrap !important;
}
table td,.table td{
  border-color:#eef2f7 !important;
  color:var(--jbe-premium-text) !important;
  font-size:12px !important;
}
input,select,textarea,.form-control,.form-select{
  border-radius:10px !important;
  border:1px solid var(--jbe-premium-line) !important;
  background:var(--jbe-premium-panel) !important;
  color:var(--jbe-premium-text) !important;
}
input:focus,select:focus,textarea:focus,.form-control:focus,.form-select:focus{
  border-color:var(--jbe-premium-blue) !important;
  box-shadow:0 0 0 3px rgba(37,99,235,.10) !important;
}
.btn,.button,button[type="submit"],.btn-primary,.btn-secondary,.btn-light,.btn-soft{
  border-radius:10px !important;
  box-shadow:none !important;
}
.sidebar,.menu-lateral,.left-panel{
  background:linear-gradient(180deg,var(--jbe-premium-blue-deep),#092a61 62%,#063f73) !important;
}
@media(max-width:768px){
  .table-responsive table,.table-wrap table,.sigef-table-wrap table{min-width:760px;}
  .card,.cardx,.panel,.box,.section-box{border-radius:12px !important;}
  .btn,.button,button[type="submit"]{min-height:38px;}
}
