﻿:root {
  --bg: #f2efe8;
  --ink: #1a1f2e;
  --accent: #006d77;
  --accent-2: #e29578;
  --surface: #fffdf8;
  --muted: #5b6576;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 10%, #fff6dc 0%, var(--bg) 45%), linear-gradient(160deg, #f2efe8 0%, #dee9ef 100%);
}

.container {
  width: min(1100px, 92vw);
  margin: 24px auto 48px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.5vw, 40px);
}

p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid #d8d4c8;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 20px rgba(16, 28, 38, 0.07);
}

label {
  font-weight: 600;
  display: block;
  margin-top: 10px;
  margin-bottom: 6px;
}

input, select, button, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #bfc8d7;
  border-radius: 10px;
  font-size: 14px;
}

button {
  background: var(--accent);
  border: none;
  color: white;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
}

button.secondary {
  background: var(--accent-2);
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px dashed #c6d0df;
  padding: 12px;
  max-height: 380px;
  overflow: auto;
}

.kpis {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.kpi {
  flex: 1;
  min-width: 140px;
  background: #fff;
  border: 1px solid #dde4ee;
  border-radius: 12px;
  padding: 10px;
}

.small {
  font-size: 12px;
  color: var(--muted);
}

.file-list {
  min-height: 74px;
  padding: 10px;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}

.file-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #edf1f5;
}

.file-row:last-child {
  border-bottom: 0;
}

.report-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 12px;
}

.report-card {
  background: #ffffff;
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  padding: 10px;
}

.report-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.dashboard-card {
  background: #fff;
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  padding: 10px;
}

.dashboard-card h4 {
  margin: 0 0 10px;
}

.managers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.managers-table th,
.managers-table td {
  border-bottom: 1px solid #e8edf3;
  padding: 8px 6px;
  text-align: left;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.badge-green { background: #2a9d55; }
.badge-yellow { background: #c69214; }
.badge-red { background: #c54b4b; }

.trend-chart {
  width: 100%;
  height: auto;
  background: #fbfcfe;
  border: 1px solid #e3ebf3;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
