/* SchoolHub Portal - works with any theme; picks up SchoolHub theme colours when present. */
.shp-wrap { --shp-primary: var(--sh-primary, #1d4ed8); --shp-border: var(--sh-border, #e2e8f0); --shp-muted: var(--sh-muted, #64748b); --shp-card: var(--sh-card, #fff); margin: 24px 0; }
.shp-wrap h2 { margin: 0 0 12px; }
.shp-wrap h3 { margin: 28px 0 10px; }
.shp-meta { color: var(--shp-muted); font-size: .92rem; }
.shp-note { white-space: pre-wrap; color: var(--shp-muted); font-size: .9rem; }
.shp-desc { margin: 12px 0 8px; }
.shp-card { background: var(--shp-card); border: 1px solid var(--shp-border); border-radius: 12px; padding: 18px; margin: 12px 0; }
.shp-result { border-color: #86efac; background: #f0fdf4; }
.shp-new summary { cursor: pointer; font-weight: 600; color: var(--shp-primary); }
.shp-new form { margin-top: 14px; }
.shp-wrap label { display: block; font-weight: 600; font-size: .92rem; }
.shp-wrap input[type="text"], .shp-wrap input[type="date"], .shp-wrap input[type="number"], .shp-wrap textarea, .shp-wrap input[type="file"] { display: block; width: 100%; max-width: 100%; margin-top: 4px; padding: 9px 10px; border: 1px solid var(--shp-border); border-radius: 8px; font: inherit; font-weight: 400; background: #fff; }
.shp-row { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.shp-row small { color: var(--shp-muted); }
.shp-btn { display: inline-block; padding: 10px 18px; border: 0; border-radius: 10px; background: var(--shp-primary); color: #fff !important; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 1rem; }
.shp-btn:hover { filter: brightness(.92); }
.shp-btn-sm { padding: 6px 12px; font-size: .9rem; margin-top: 6px; }
.shp-btn-danger { background: #b91c1c; }
.shp-danger { margin-top: 36px; }
.shp-link { color: var(--shp-primary); font-weight: 600; }
.shp-table-wrap { overflow-x: auto; }
.shp-table { width: 100%; border-collapse: collapse; background: var(--shp-card); border: 1px solid var(--shp-border); border-radius: 12px; }
.shp-table th, .shp-table td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--shp-border); vertical-align: top; }
.shp-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--shp-muted); }
.shp-grade input[type="number"] { display: inline-block; width: 80px; }
.shp-grade textarea { margin-top: 6px; min-width: 180px; }
.shp-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; vertical-align: middle; }
.shp-badge-pending { background: #e2e8f0; color: #334155; }
.shp-badge-ok { background: #dbeafe; color: #1e3a8a; }
.shp-badge-warn { background: #fef3c7; color: #92400e; }
.shp-badge-bad { background: #fee2e2; color: #991b1b; }
.shp-badge-done { background: #dcfce7; color: #166534; }
.shp-notice { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-weight: 600; }
.shp-ok { background: #dcfce7; color: #166534; }
.shp-err { background: #fee2e2; color: #991b1b; }
