/* Signava Expert — internal app pages (login, settings, users). Uses the site's fonts and colours. */
.app-section { padding: 48px 16px 72px; }
.app-wrap { max-width: 960px; margin: 0 auto; }
.app-narrow { max-width: 420px; margin: 0 auto; }
.app-h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 4px 0 24px; }
.app-h2 { font-size: 1.15rem; margin: 0 0 12px; }
.app-muted { color: var(--ink-soft, #5b6470); font-size: .9rem; }
.app-card { background: #fff; border: 1px solid #e3e1d9; border-radius: 10px; padding: 24px; margin-bottom: 20px; }
.app-card-highlight { border-color: #2f6b4f; box-shadow: 0 0 0 3px rgba(47, 107, 79, .12); }
.app-alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; }
.app-alert-success { background: #eaf4ee; color: #1f5139; }
.app-alert-error { background: #fdecea; color: #8a1c12; }
.app-form { display: grid; gap: 6px; max-width: 420px; margin-top: 8px; }
.app-form label { font-size: .9rem; margin-top: 8px; }
.app-form input, .app-form select {
  width: 100%; padding: 10px 12px; border: 1px solid #c9c6bc; border-radius: 6px; font: inherit; background: #fff; box-sizing: border-box;
}
.app-btn {
  margin-top: 14px; padding: 11px 16px; border: 0; border-radius: 6px; background: #1f3654; color: #fff;
  font: inherit; font-weight: 600; cursor: pointer;
}
.app-btn:hover { background: #172a42; }
.app-btn-secondary { background: #eef0f3; color: #1f3654; margin-top: 0; }
.app-btn-secondary:hover { background: #e1e5ea; }
.app-link-btn { background: none; border: 0; padding: 0; margin-top: 12px; color: #1f3654; text-decoration: underline; font: inherit; cursor: pointer; }
.app-inline { display: inline; }
.app-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #eee; }
.app-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 16px 0; font-size: 1.05rem; }
.app-codes li { background: #f6f5f1; border-radius: 6px; padding: 8px 10px; text-align: center; }
.app-key { font-size: 1.05rem; letter-spacing: .04em; word-break: break-all; }
.app-qr { margin: 16px 0; }
.app-qr svg { width: 200px; height: 200px; background: #fff; }
.app-dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 16px; margin: 0; }
.app-dl dt { color: var(--ink-soft, #5b6470); }
.app-dl dd { margin: 0; }
.app-table-wrap { overflow-x: auto; }
.app-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.app-table th, .app-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; white-space: nowrap; }
.app-table th { font-weight: 600; color: var(--ink-soft, #5b6470); }
.app-row-muted td { opacity: .55; }
details summary { cursor: pointer; color: #1f3654; margin-top: 4px; }
@media (max-width: 600px) {
  .app-card { padding: 18px; }
  .app-dl { grid-template-columns: 1fr; }
}
