/* KPMG shared brand styles ===========================================*/
:root {
  --kpmg-blue: #00338D;
  --kpmg-blue-dark: #0b1f47;
  --kpmg-light: #f0f3fa;
  --kpmg-cyan: #1e49e2;
  --kpmg-accent: #00a3a1;
  --text: #1a1a2e;
  --text-soft: #5a607d;
  --border: #d6dbe7;
  --bg: #f5f6fa;
  --card-bg: #ffffff;
  --danger: #e74c3c;
  --warning: #f1c40f;
  --success: #2ecc71;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(11, 31, 71, 0.08);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.45;
}

a { color: var(--kpmg-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

button {
  font-family: inherit; font-size: inherit;
  cursor: pointer; border: 0; outline: 0;
}

.kpmg-topbar {
  background: var(--kpmg-blue);
  color: #fff;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.kpmg-topbar .brand {
  font-weight: 700; letter-spacing: 0.5px;
  font-size: 16px;
}
.kpmg-topbar .brand small {
  display:block; font-weight:400; font-size:11px; opacity:.85;
  margin-top:1px;
}
.kpmg-topbar .right { margin-left: auto; display:flex; gap:14px; align-items:center; font-size:13px; }
.kpmg-topbar .right a, .kpmg-topbar .right .led { color:#bcd0f5; }
.kpmg-topbar .right button {
  background:transparent; color:#bcd0f5; border:1px solid #4767a8;
  padding:5px 12px; border-radius:6px; font-size:12px;
}
.kpmg-topbar .right button:hover { background:#0b1f47; }

.led {
  display:inline-block; width:10px; height:10px; border-radius:50%;
  background:#bbb; margin-right:4px;
}
.led.ok    { background:#2ecc71; box-shadow:0 0 8px #2ecc71; }
.led.warn  { background:#f1c40f; box-shadow:0 0 8px #f1c40f; }
.led.bad   { background:#e74c3c; box-shadow:0 0 8px #e74c3c; }

.container { max-width: 1240px; margin: 0 auto; padding: 24px; }

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.btn {
  background: var(--kpmg-blue); color:#fff;
  padding: 9px 18px; border-radius: 7px; font-weight:600;
  display:inline-flex; align-items:center; gap:8px;
  transition: background .15s ease;
}
.btn:hover { background:#012670; }
.btn.secondary { background:#e8edf7; color: var(--kpmg-blue); }
.btn.secondary:hover { background:#d8e0ef; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background:#c0392b; }
.btn.ghost { background:transparent; color: var(--kpmg-blue); }
.btn.ghost:hover { background:#eef2fa; }
.btn:disabled { opacity:.55; cursor:not-allowed; }

label { display:block; font-size:13px; font-weight:600; margin: 12px 0 6px; color: var(--text-soft); }
input[type=text], input[type=email], input[type=number], input[type=password], textarea, select {
  width: 100%;
  background:#fff; border:1px solid var(--border); border-radius:8px;
  padding:10px 12px; font-size:14px; font-family:inherit;
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline:none; border-color: var(--kpmg-blue);
  box-shadow: 0 0 0 3px rgba(0,51,141,0.12);
}
textarea { resize: vertical; min-height: 80px; line-height:1.4; }
textarea.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size:13px; }

.muted { color: var(--text-soft); }
.small { font-size:12px; }
.flex { display:flex; gap:14px; align-items:center; }
.flex.between { justify-content: space-between; }
.flex.wrap { flex-wrap: wrap; }
.grid { display:grid; gap:14px; }

.tag {
  display:inline-block; padding:3px 10px; border-radius:99px;
  font-size:11px; font-weight:600; letter-spacing:.3px;
  background:#eef2fa; color: var(--kpmg-blue);
}
.tag.green  { background:#dff6e9; color:#1e7e44; }
.tag.yellow { background:#fff3cf; color:#7c5900; }
.tag.red    { background:#fde2e0; color:#a13226; }
.tag.gray   { background:#ececf2; color:#555; }
.tag.blue   { background:#dce6f9; color:#0b2c79; }

table.kpmg {
  width:100%; border-collapse:collapse; background:#fff;
  border-radius: var(--radius); overflow:hidden;
  box-shadow: var(--shadow);
}
table.kpmg th, table.kpmg td {
  text-align:left; padding:12px 14px; border-bottom: 1px solid #eef0f6;
  font-size: 13.5px;
}
table.kpmg thead { background: var(--kpmg-light); }
table.kpmg th { color: var(--kpmg-blue); font-weight:700; font-size:12.5px; letter-spacing:.3px; text-transform:uppercase;}
table.kpmg tr:last-child td { border-bottom: 0; }
table.kpmg tbody tr:hover { background:#fafbfe; }

.empty-state {
  text-align:center; padding:40px 20px; color: var(--text-soft);
}
.empty-state h3 { color: var(--text); margin: 8px 0; }

.toast {
  position: fixed; bottom: 30px; right: 30px;
  background: var(--kpmg-blue-dark); color:#fff;
  padding: 12px 18px; border-radius: 8px; box-shadow: var(--shadow);
  font-size: 13.5px; z-index: 10000;
  opacity: 0; transform: translateY(10px); transition: all .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.bad { background: var(--danger); }
.toast.ok  { background: var(--success); }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(11,31,71,0.55);
  display:none; align-items:center; justify-content:center;
  z-index: 9000;
}
.modal-backdrop.show { display:flex; }
.modal {
  background:#fff; border-radius: 12px; max-width: 720px; width: 92%;
  max-height: 86vh; overflow:auto; padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal h2 { margin-top: 0; color: var(--kpmg-blue); }

/* Spinner */
.spinner {
  display:inline-block; width:16px; height:16px;
  border:2px solid #d6dbe7; border-top-color: var(--kpmg-blue);
  border-radius:50%; animation: spin .8s linear infinite; vertical-align:middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
