/* GBP Watchdog — plain, readable dashboard styles.
   Brand colors come from config.php as --brand (buttons/links) and --brand-dark (top bar). */
:root { --brand: #0f5c63; --brand-dark: #0f2a3d; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #0f172a; background: #f1f5f9; }
a { color: var(--brand); }
main { max-width: 1040px; margin: 0 auto; padding: 16px; }
h1 { font-size: 24px; margin: 8px 0; }
h2 { font-size: 18px; margin: 28px 0 10px; }
h3 { font-size: 15px; margin: 18px 0 6px; }
code { background: #e2e8f0; padding: 1px 5px; border-radius: 4px; font-size: 13px; word-break: break-all; }

.top { background: var(--brand-dark); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.top a { color: #fff; text-decoration: none; }
.top nav a { margin-left: 14px; font-size: 14px; }
.brand { font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; gap: 8px; }
.brand img { height: 28px; width: auto; }
.brand .by { font-weight: 400; font-size: 13px; opacity: .8; }
.site-footer { max-width: 1040px; margin: 0 auto; padding: 10px 16px 30px; font-size: 13px; }
.site-footer a { color: #64748b; }
html.embedded .site-footer { display: none; }
html.embedded .top { padding: 8px 12px; }

.demo { background: #e0f2f1; border: 1px solid #99d5d0; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.flash { background: #e0e7ff; border: 1px solid #a5b4fc; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; word-break: break-word; }
.error { color: #6b21a8; }
.errors { background: #f3e8ff; border: 1px solid #d8b4fe; border-radius: 8px; padding: 4px 14px; margin: 12px 0; color: #581c87; }
.muted { color: #64748b; }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }

.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; margin: 14px 0; }
.card h2 { margin-top: 0; }
.notice-card { border-color: #c7d2fe; background: #eef2ff; }
.narrow { max-width: 400px; margin: 40px auto; }
.narrow-form { max-width: 360px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.cards .card { margin: 0; }
.stat .big { font-size: 26px; font-weight: 700; }
.pay-box { border: 1px dashed #94a3b8; border-radius: 8px; padding: 12px 14px; margin: 12px 0; background: #f8fafc; }

.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.stack { display: grid; gap: 12px; }
.inline { display: inline-flex; gap: 6px; align-items: center; }
.actions form { margin: 2px 0; }
.hp { position: absolute; left: -9999px; }

label { display: block; font-size: 14px; font-weight: 600; }
input, select { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; background: #fff; }
textarea.code { width: 100%; font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace; padding: 8px; border: 1px solid #cbd5e1; border-radius: 6px; background: #f8fafc; }
button, .btn { display: inline-block; background: var(--brand); color: #fff; border: 0; padding: 9px 16px; border-radius: 6px; font: inherit; cursor: pointer; text-decoration: none; }
button:hover, .btn:hover { filter: brightness(.9); }
button.secondary { background: #fff; color: #0f172a; border: 1px solid #cbd5e1; }
button.secondary:hover { background: #f1f5f9; filter: none; }
.small-btn { padding: 5px 10px; font-size: 13px; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
th { font-size: 13px; color: #475569; background: #f8fafc; }
tr:last-child td { border-bottom: 0; }

.badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: #e2e8f0; color: #334155; }
.badge.alert { background: #f3e8ff; color: #6b21a8; }
.badge.warning { background: #dbeafe; color: #1d4ed8; }
.badge.info { background: #e2e8f0; color: #475569; }
.badge.ok { background: #ccfbf1; color: #0f5c63; }

.review { background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #99d5d0; border-radius: 8px; padding: 10px 14px; margin: 10px 0; }
.review.low { border-left-color: #a855f7; }
.review p { margin: 6px 0 0; }
ul.plain { margin: 6px 0 0; padding-left: 18px; }
.danger-zone { margin-top: 30px; }
