:root {
  --bg: #f1f5f3;
  --bg2: #e8f1ed;
  --ink: #15221c;
  --muted: #5d6d64;
  --line: #cddad3;
  --panel: #ffffffcc;
  --shadow: 0 12px 30px rgba(18, 51, 39, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(950px 500px at 100% -10%, #d1e7da 0, transparent 60%),
    radial-gradient(800px 400px at -10% 100%, #d9e9f4 0, transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Plus Jakarta Sans", sans-serif;
}

.suite-layout {
  display: flex;
  min-height: 100vh;
}

.suite-sidebar {
  width: 300px;
  border-right: 1px solid #c8d7cf;
  background: linear-gradient(180deg, #f9fcfa, #eaf2ee);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.suite-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}

.chip {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(145deg, #0f766e, #145f86);
  color: #fff;
  font-weight: 700;
}

.suite-brand small {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 1px;
}

.suite-brand h1 {
  font-size: 1rem;
  margin: 0;
}

.module-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.95px;
  color: #5f7467;
  margin-top: 0.3rem;
}

.side-link {
  text-align: left;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  background: transparent;
  padding: 0.52rem 0.6rem;
  color: #1f3028;
  font-weight: 600;
}
.side-link i { margin-right: 0.45rem; }
.side-link:hover,
.side-link.active {
  background: #d9e9e1;
  border-color: #b9cdc2;
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid #c8d7cf;
  color: var(--muted);
}

.suite-main {
  flex: 1;
  padding: 1rem;
}

.suite-header {
  border: 1px solid #cad9d2;
  background: linear-gradient(135deg, #ffffff, #e8f0eb);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.suite-header h2 { margin: 0; }
.suite-header p { color: var(--muted); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.header-actions .input-group {
  width: 410px;
  max-width: 100%;
}

.view { display: none; }
.view.active {
  display: block;
  animation: fade .24s ease;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.kpi-box {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 0.75rem;
}
.kpi-box span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
.kpi-box strong {
  font-size: 1.45rem;
}
.kpi-box.warning strong { color: #bf3f2e; }
.kpi-box.success strong { color: #0a7a4f; }

.panel {
  border: 1px solid #cfddd6;
  border-radius: 1rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.panel-head {
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pipeline-grid {
  display: grid;
  gap: 0.8rem;
}
.pipe-row {
  display: grid;
  gap: 0.35rem;
}
.pipe-row label {
  color: #3a5448;
  font-weight: 600;
}

.alert-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
  display: grid;
  gap: 0.6rem;
}
.alert-list li {
  border: 1px solid #cadad3;
  background: #fff;
  border-radius: 0.7rem;
  padding: 0.55rem 0.65rem;
}

.table {
  --bs-table-bg: transparent;
}

.badge-status {
  font-size: 0.73rem;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.3rem 0.5rem;
}
.badge-open { background: #d8eef8; color: #0c4b75; }
.badge-overdue { background: #ffe0dd; color: #872113; }
.badge-closed { background: #d9f1df; color: #125a2f; }

.stack {
  display: grid;
  gap: 0.6rem;
}
.stack-card {
  border: 1px solid #cfddd6;
  background: #fff;
  border-radius: 0.7rem;
  padding: 0.58rem;
}

.doc-card {
  border: 1px solid #cfddd6;
  background: #fff;
  border-radius: 0.8rem;
  padding: 0.75rem;
}
.doc-tag {
  background: #d8ebf7;
  color: #0f4f77;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.report-card {
  border: 1px solid #cfddd6;
  border-radius: 0.9rem;
  background: #fff;
  padding: 0.85rem;
  height: 100%;
}

.list-group-item {
  background: transparent;
  border-color: #d7e2dc;
}

@media (max-width: 1100px) {
  .suite-layout { flex-direction: column; }
  .suite-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #c8d7cf;
  }
}
