@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #f28518;
  --primary-dark: #e07712;
  --primary-light: #ff6b35;
  --gradient-primary: linear-gradient(135deg, #f28518 0%, #ff6b35 100%);
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --text-primary: #1a202c;
  --text-secondary: #718096;
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  padding-top: 104px !important;
  min-height: 100vh;
}

.navbar {
  background: var(--gradient-primary) !important;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow-md);
  min-height: 56px !important;
  position: fixed;
  top: 0; left: 0; width: 100vw;
  z-index: 1000;
}
.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  color: #fff !important;
  text-decoration: none;
}
.nav-link {
  color: rgba(255,255,255,0.92) !important;
  font-weight: 500;
  border-radius: 6px;
  padding: 7px 18px !important;
  transition: background 0.2s;
}
.nav-link:hover {
  background: rgba(255,255,255,0.13);
  color: #fff !important;
}
.btn-light.text-orange {
  color: var(--primary-color) !important;
  font-weight: bold;
  border-radius: 7px;
  background: #fff !important;
  margin-left: 20px;
  padding: 7px 20px;
  border: none;
  box-shadow: 0 2px 8px #0001;
}
.btn-light.text-orange:hover {
  color: #fff !important;
  background: var(--primary-color) !important;
}

/* SUBNAVBAR */
.sub-navbar {
  position: fixed;
  top: 56px;
  left: 0;
  width: 100vw;
  height: 48px;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 2px #0001;
}
.breadcrumb {
  margin-bottom: 0;
  background: transparent;
  font-size: 1rem;
}

/* Linha laranja */
.divisor-laranja {
  height: 4px;
  width: 100vw;
  background: linear-gradient(135deg,#f28518 0%,#ff6b35 100%);
  margin: 0 -8px 24px -8px;
  border: none;
  padding: 0;
}

/* CONTAINER FULLWIDTH */
.container-main {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 auto !important;
  padding: 24px 0 0 0 !important;
  background: none;
  box-shadow: none;
  border: none;
}

/* TABELA E FORMATAÇÃO */
.table-responsive {
  width: 100vw !important;
  overflow-x: auto;
  margin: 0 !important;
  padding: 0 !important;
}
.table {
  margin: 0 !important;
  border-radius: 0 !important;
  background: #fff;
  width: 100vw !important;
  border-collapse: separate !important;
  border-spacing: 0;
}
.table th, .table td {
  vertical-align: middle !important;
  white-space: nowrap;
  border: 1px solid #f3f3f3 !important;
}
.table th {
  background: #ffe9bc !important;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}
.table td {
  background: #f9f9f9 !important;
  font-size: 1.01rem;
}
.table td:last-child {
  min-width: 110px !important;
  display: flex !important;
  gap: 2px;
  justify-content: center;
  align-items: center;
}

.btn-xs {
  padding: 2px 8px;
  font-size: 1em;
  margin: 0 1px;
  min-width: 30px;
}

.d-flex.mb-3 {
  margin-bottom: 20px !important;
  margin-left: 6px;
  gap: 10px;
}
.btn-warning.btn-sm, .btn-success.btn-sm {
  margin-right: 7px;
  font-size: 1.02em;
  padding: 7px 18px;
  border-radius: 7px !important;
  box-shadow: 0 1px 8px #0001;
  font-weight: 600;
}
.btn-warning.btn-sm {
  background: var(--primary-color) !important;
  color: #fff !important;
  border: none;
}
.btn-warning.btn-sm:hover {
  background: var(--primary-dark) !important;
}
.btn-success.btn-sm {
  background: #18d43c !important;
  color: #fff !important;
  border: none;
}
.btn-success.btn-sm:hover {
  background: #12b02c !important;
}

/* BUSCA */
#searchInput {
  border-radius: 8px !important;
  height: 44px;
  margin-bottom: 18px !important;
  margin-top: 3px;
  font-size: 1em;
  box-shadow: 0 1px 5px #0001;
  border: 1.5px solid #ffe2b5 !important;
  max-width: 100%;
}

/* CELULAR */
@media (max-width: 1200px) {
  .table th, .table td { font-size: 0.96em; }
  .btn-xs { font-size: 0.96em; }
}
@media (max-width: 991px) {
  .container-main, .table-responsive, .table {
    width: 100vw !important;
    min-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .table td, .table th {
    font-size: 0.91rem;
    padding: 7px !important;
  }
  .btn-xs { font-size: 0.92em; }
}
@media (max-width: 768px) {
  body { padding-top: 96px !important; }
  .navbar { min-height: 48px !important; }
  .sub-navbar { top: 48px; height: 48px; }
  .btn-xs { font-size: 0.9em; }
  #searchInput { font-size: 0.98em; }
}
@media (max-width: 650px) {
  .table th, .table td {
    font-size: 0.88em;
    padding: 5px 3px !important;
  }
  .btn-xs { font-size: 0.87em; }
}
@media (max-width: 500px) {
  .table th, .table td { font-size: 0.81em; }
  .btn-xs { font-size: 0.82em; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

.username { display: none; }
