/* NAVTTC PMYSDP Portal — clean dashboard look */
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  margin: 0; background: #f4f6fb; color: #1f2937; line-height: 1.5;
}
.topbar {
  background: linear-gradient(90deg, #14532d 0%, #166534 60%, #047857 100%);
  color: white; padding: 14px 24px; box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.logo {
  width: 50px; height: 50px; background: white; color: #14532d;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; letter-spacing: -1px;
}
.title { font-size: 18px; font-weight: 700; }
.subtitle { font-size: 13px; opacity: .85; margin-top: 2px; }
nav { display: flex; flex-wrap: wrap; gap: 6px; }
nav a {
  color: white; text-decoration: none; padding: 6px 14px; border-radius: 6px;
  font-size: 14px; transition: background .15s;
}
nav a:hover { background: rgba(255,255,255,.18); }
main { max-width: 1280px; margin: 24px auto; padding: 0 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 24px; }
.card {
  background: white; padding: 20px; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
  margin-bottom: 18px; border: 1px solid #e5e7eb;
}
.card h2 { margin-top: 0; font-size: 17px; color: #14532d; }
.card h3 { color: #166534; font-size: 15px; margin: 18px 0 8px; }
.card.pos { border-left: 4px solid #16a34a; }
.card.neg { border-left: 4px solid #dc2626; }
.card.stat { text-align: center; padding: 16px; }
.card.stat .num { font-size: 32px; font-weight: 700; color: #14532d; }
.card.stat.good .num { color: #16a34a; }
.card.stat.warn .num { color: #d97706; }
.card.stat .lbl { font-size: 12px; color: #6b7280; text-transform: uppercase; letter-spacing: .5px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.stats > div { background: #f0fdf4; padding: 10px; border-radius: 8px; text-align: center; }
.stats > div b { display: block; font-size: 18px; color: #14532d; }
.stats > div span { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: .4px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.kv th, table.kv td { padding: 8px 10px; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
table.kv th { width: 50%; font-weight: 600; color: #4b5563; background: #f9fafb; }
table.tbl th, table.tbl td { padding: 8px 10px; border-bottom: 1px solid #e5e7eb; text-align: left; }
table.tbl thead th { background: #14532d; color: white; font-weight: 600; }
table.tbl tbody tr:hover { background: #f9fafb; }
table.tbl tfoot th, table.tbl tfoot td { background: #f0fdf4; font-weight: 700; }
table.tbl.compact th, table.tbl.compact td { padding: 5px 8px; font-size: 12px; }
table td.g { color: #16a34a; font-weight: 600; }
table td.w { color: #d97706; font-weight: 600; }
tr.row-warn { background: #fef2f2; }
tr.row-warn td { color: #991b1b; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
.saveinfo {
  display: flex; align-items: center; justify-content: space-between;
  background: #ecfdf5; border-color: #6ee7b7;
}
button {
  background: #14532d; color: white; padding: 8px 18px; border: 0;
  border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13px;
}
button:hover { background: #166534; }
[contenteditable="true"] { background: #fffbeb; cursor: text; }
[contenteditable="true"]:focus { background: #fef3c7; outline: 2px solid #f59e0b; }
.muted { color: #6b7280; font-size: 13px; }
code { background: #f3f4f6; padding: 2px 5px; border-radius: 3px; font-size: 12px; }
pre { font-family: ui-monospace, monospace; font-size: 12px; line-height: 1.5; }
footer { text-align: center; padding: 20px; color: #9ca3af; font-size: 12px; }
input[type="file"] {
  display: inline-block; padding: 8px; border: 1px dashed #94a3b8; border-radius: 6px;
  margin-right: 10px; background: #f8fafc;
}
