/* Admin panel: the cabinet styles (profile.css) plus tables and forms. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code { padding: var(--sp-25) var(--sp-50); background: var(--s3); border-radius: var(--r-lg); font-size: 14px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-200); margin-bottom: var(--sp-700); }
.kpis .panel { padding: var(--sp-300); }
.kpis dl { margin: 0; }
.kpis div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--sp-75); }
.kpis dd { margin: 0; font-size: 30px; line-height: 36px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpis dt { font-size: 14px; line-height: 20px; color: var(--muted); }

.adm { margin-bottom: var(--sp-800); scroll-margin-top: var(--sp-900); }
.adm .sec-head { margin-bottom: var(--sp-200); }
.adm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-200); margin-bottom: var(--sp-200); }
.adm-head .sec-head { margin-bottom: 0; }
.list-head { margin-top: var(--sp-600); }
.note { margin-top: var(--sp-100); max-width: 760px; }

input, select, textarea { font: 400 14px/20px Manrope, sans-serif; color: var(--text); background: var(--s2); border: 1px solid var(--s3); border-radius: var(--r-lg); padding: var(--sp-75) var(--sp-100); transition: border-color 300ms var(--ease); }
input:hover, select:hover, textarea:hover { border-color: var(--s4); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input[type="file"] { padding: var(--sp-75); font-size: 12px; line-height: 16px; }
input::file-selector-button { margin-right: var(--sp-75); padding: var(--sp-50) var(--sp-75); border: 0; border-radius: var(--r-lg); background: var(--s3); color: var(--text); font: 600 12px/16px Manrope, sans-serif; cursor: pointer; }
.search { display: flex; flex-direction: column; gap: var(--sp-50); width: min(100%, 320px); }
.search input { width: 100%; }

.table-wrap { background: var(--s1); border: 1px solid var(--s3); border-radius: var(--r-2xl); overflow-x: auto; }
.table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.table th { padding: var(--sp-100) var(--sp-200); background: var(--s2); color: var(--muted); font-size: 12px; line-height: 16px; font-weight: 600; text-align: left; white-space: nowrap; }
.table td { padding: var(--sp-200); border-top: 1px solid var(--s3); vertical-align: top; }
.table small { display: block; margin-top: var(--sp-25); font-size: 12px; line-height: 16px; color: var(--muted); }
.table b { font-weight: 600; }
.table-empty { padding: var(--sp-400); text-align: center; }

.user { display: flex; align-items: center; gap: var(--sp-100); min-width: 200px; }
.user .avatar { width: 36px; height: 36px; font-size: 14px; line-height: 20px; }
.user div strong, .user div span { display: block; }
.user strong { font-weight: 600; }
.user div span { max-width: 200px; margin-top: var(--sp-25); overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 12px; line-height: 16px; }

.roles { display: flex; flex-wrap: wrap; gap: var(--sp-50); min-height: 24px; }
.role { padding: var(--sp-25) var(--sp-75); background: var(--s3); border-radius: var(--r-lg); font-size: 12px; line-height: 16px; font-weight: 700; color: var(--accent); }
.role.owner { background: var(--text); color: var(--bg); }
.role-none { color: var(--muted); font-size: 12px; line-height: 16px; }
.role-edit { display: flex; gap: var(--sp-50); min-width: 260px; margin-top: var(--sp-75); }
.role-edit input { flex: 1; min-width: 0; }
.role-status { display: block; min-height: 16px; margin-top: var(--sp-50); font-size: 12px; line-height: 16px; color: var(--muted); }
.role-status.is-success { color: var(--good); } .role-status.is-error { color: #ff6369; }

.issue { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-200); align-items: end; padding: var(--sp-300); }
.issue label { display: flex; flex-direction: column; gap: var(--sp-50); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.issue input, .issue select { width: 100%; color: var(--text); }
.issue .btn:disabled { opacity: 0.5; }
.result { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-100); margin-top: var(--sp-200); padding: var(--sp-300); border-color: var(--accent); }
.result b.is-error { color: #ff6369; }
.result textarea { width: 100%; font: 400 12px/16px ui-monospace, Consolas, monospace; resize: vertical; }

.tag-revoked { color: #ff6369; }
.row-action { white-space: nowrap; }
.row-action.danger { color: #ff6369; }

@media (max-width: 960px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .issue { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .kpis dd { font-size: 24px; line-height: 32px; }
  .issue { grid-template-columns: 1fr; padding: var(--sp-200); }
  .adm { margin-bottom: var(--sp-700); }
}
