/* Admin content styles. Shared header, navigation, palette, and grid live in dipinio-theme.css. */
[hidden] { display: none !important; }
body { line-height: 1.5; }
button { cursor: pointer; border: 1px solid var(--line); border-radius: 8px 6px 9px 7px; padding: 8px 13px; background: var(--surface); }
button:hover { background: var(--green-soft); }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 900; line-height: 1.2; letter-spacing: -.6px; }
h1 { font-size: 37px; margin: 0 0 7px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
.topbar { display: flex; align-items: center; justify-content: space-between; }
.topbar a.nav-link { display: inline-flex; align-items: center; text-decoration: none; }
.admin-main { padding-top: 0; }
.admin-main > #message:not(:empty) { margin-top: 20px; }
.muted { font-size: 13px; color: var(--muted); }
.login-card { max-width: 460px; margin: 6vh auto; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px 11px 20px 13px; box-shadow: var(--shadow); }
.login-card h1 { margin: 8px 0 14px; }
form { display: grid; gap: 15px; }
label { display: grid; gap: 6px; font-weight: 800; font-size: 13px; }
input, select { width: 100%; min-width: 0; padding: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px 6px 9px 7px; color: var(--ink); }
.primary { padding: 12px; }
.settings-layout { display: grid; }
.settings-nav { display: flex; flex-direction: column; align-items: start; gap: 6px; }
.settings-tab { width: 100%; text-align: left; border: 0; background: transparent; font-weight: 700; }
.settings-content { min-width: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.section-heading button { min-height: 36px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 16px; margin: 12px 0 24px; }
.card { padding: 20px; border: 1px solid var(--line); border-radius: 14px 9px 15px 10px; background: var(--surface); box-shadow: 2px 3px 0 rgba(32,48,47,.06); }
.card > span { color: var(--muted); font: 500 10px/1.4 var(--mono); letter-spacing: .5px; }
.card strong { display: block; font-size: 28px; font-weight: 900; margin-top: 10px; }
.card small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.server-log-message { max-height: 220px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 11px/1.5 var(--mono); }
.card:nth-child(3n+1) { background: var(--green-soft); }
.card:nth-child(3n+2) { background: var(--blue-soft); }
.notes-summary .cards { grid-template-columns: repeat(4,minmax(0,1fr)); }
.table-wrap { overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px 8px 13px 9px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--blue-soft); white-space: nowrap; font-weight: 800; }
td { overflow-wrap: anywhere; }
.cell-label { display: none; }
.cell-value { min-width: 0; overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
.toolbar { display: flex; gap: 10px; margin-bottom: 20px; }
.toolbar input { max-width: 400px; }
.payment-filters { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 18px; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px 8px 13px 9px; }
.payment-user-search, .payment-filter-actions { grid-column: 1 / -1; }
.payment-filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pager { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.notice, #message:not(:empty) { background: var(--yellow-soft); border: 1px solid #e0c665; padding: 12px; border-radius: 10px 7px 11px 8px; margin: 0 0 20px; font-size: 13px; }
.danger { background: var(--coral-soft); }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.back-to-users { min-height: 44px; margin-bottom: 12px; font-weight: 800; }
.user-detail-title { overflow-wrap: anywhere; scroll-margin-top: 110px; }
.user-section { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 12px; }
.detail-grid p { margin: 8px 0; }
.detail-grid b { display: block; }
.fine-print { font-size: 12px; color: var(--muted); }
.badge { display: inline-block; border: 1px solid var(--line); border-radius: 20px; padding: 2px 8px; background: var(--paper); }
@media(max-width:700px) {
  .notes-summary .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .settings-nav { flex-wrap: wrap; }
  .section-heading h1 { font-size: 29px; }
  .toolbar { flex-wrap: wrap; }
  .login-card { margin: 3vh auto; padding: 24px; }
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  .table-wrap table { display: block; min-width: 0; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .table-wrap tbody { display: grid; gap: 12px; }
  .table-wrap tbody tr { display: block; min-width: 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px 8px 13px 9px; }
  .table-wrap td { display: grid; grid-template-columns: minmax(84px,30%) minmax(0,1fr); gap: 12px; padding: 7px 0; border: 0; align-items: start; }
  .cell-label { display: block; color: var(--muted); font: 500 10px/1.5 var(--mono); padding-top: 2px; }
  .cell-value { line-height: 1.5; }
  .table-wrap td:first-child .cell-value { font-weight: 800; }
  .table-wrap td.cell-action { display: block; padding-top: 12px; }
  .cell-action .cell-label { display: none; }
  .cell-action button { width: 100%; min-height: 44px; }
  .toolbar input { max-width: none; min-width: 0; flex: 1 1 200px; }
}
@media(max-width:420px) { .payment-filters { grid-template-columns: minmax(0,1fr); padding: 14px; } }
