:root {
  --ms-navy: #0f2742;
  --ms-blue: #0f4c81;
  --ms-gold: #c6a224;
  --ms-ink: #122033;
  --ms-muted: #6b7280;
  --ms-bg: #f5f7fb;
  --ms-card: #ffffff;
  --ms-border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 10px 25px rgba(15, 39, 66, 0.08);
}
* {
  box-sizing: border-box;
}
h3 {
  margin-top: 2px;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  color: var(--ms-ink);
  background: linear-gradient(180deg, #f8fafc 0%, var(--ms-bg) 100%);
}
.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}
@media (max-width: 980px) {
  .app {
    grid-template-columns: 1fr;
  }
}
.sidebar {
  background: linear-gradient(180deg, var(--ms-navy) 0%, #000000 100%);
  color: #e8eef7;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand h1 {
  font-size: 18px;
  margin: 0;
  font-weight: 700;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.2s;
}
.nav-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}
.nav-btn.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}
.nav-foot {
  margin-top: auto;
  font-size: 12px;
  opacity: 0.8;
}
.main {
  padding: 28px;
}
.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.title {
  font-size: 22px;
  font-weight: 800;
}
.grid {
  display: grid;
  gap: 18px;
}
.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 1180px) {
  .grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 780px) {
  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--ms-card);
  border: 1px solid var(--ms-border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.kpi {
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: space-between;
}
.kpi .value {
  font-size: 28px;
  font-weight: 800;
}
label {
  display: block;
  font-size: 12px;
  color: var(--ms-muted);
  margin-bottom: 6px;
}
input,
select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--ms-border);
  background: #fff;
  font-size: 14px;
  outline: none;
}
input:focus,
select:focus {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn.primary {
  background: linear-gradient(180deg, var(--ms-blue), #0b2f52);
  color: white;
  box-shadow: 0 8px 18px rgba(15, 76, 129, 0.28);
}
.btn.ghost {
  background: #fff;
  border: 1px solid var(--ms-border);
}
.btn.gold {
  background: linear-gradient(180deg, #f1d98a, var(--ms-gold));
  color: #1a1a1a;
  box-shadow: 0 8px 18px rgba(198, 162, 36, 0.25);
}
.progress {
  height: 10px;
  width: 100%;
  background: #eef2f7;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.progress > span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ms-blue), #1f7fd1);
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}
thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ms-muted);
  text-align: left;
  padding: 0 12px;
}
tbody td {
  background: #fff;
  padding: 12px;
  vertical-align: middle;
}
tbody td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
tbody td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}
.tag {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--ms-border);
  background: #fff;
}
.tag.green {
  border-color: #cce3d1;
  background: #ecfdf5;
}
.tag.amber {
  border-color: #f6e7bf;
  background: #fffbea;
}
.tag.red {
  border-color: #f5c2c7;
  background: #fff1f2;
}
.tag.gray {
  border-color: #e5e7eb;
  background: #f9fafb;
}
.footnote {
  font-size: 12px;
  color: var(--ms-muted);
}
#aplicar-filtro-cronograma {
  border: none;
  border-radius: 5px;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.header-filters {
  display: flex;
  align-items: center;
  gap: 15px;
}
.btn-aplicar {
  height: 30px;
  border: none;
  border-radius: 5px;
  padding: 10px 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--ms-border);
  margin-bottom: 20px;
}
.tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ms-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.tab-btn:hover {
  color: var(--ms-blue);
  background: rgba(15, 76, 129, 0.05);
  border-radius: 8px 8px 0 0;
}
.tab-btn.active {
  color: var(--ms-blue);
  border-bottom: 2px solid var(--ms-blue);
}
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}
.tab-content.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.chart-container {
  position: relative;
  height: 380px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding-top: 20px;
}
.chart-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.chart-bar {
  width: 40px;
  background: linear-gradient(180deg, var(--ms-blue), #1f7fd1);
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
  min-height: 4px;
}
.chart-label {
  margin-top: 8px;
  font-size: 11px;
  color: var(--ms-muted);
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.row > div:first-child {
  flex-grow: 1;
}
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--ms-card);
  border: 1px solid var(--ms-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: left;
}
.login-card h2 {
  text-align: center;
  color: var(--ms-ink);
  margin-top: 0;
}
.login-card .muted {
  text-align: center;
  
}
.btn-login{
  width: 100%;
  background-color: var(--ms-blue);
  color: white;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s linear;
}

.btn-login:hover{
  background-color: var(--ms-navy);
}
