/* LuccaEvents 0.5.3 - refined user administration */
#detail.users-admin-modal{
  width:min(1180px,calc(100vw - 48px));
  max-width:1180px;
  max-height:min(820px,calc(100vh - 48px));
  padding:0;
  border:0;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 28px 80px rgba(15,23,42,.28);
  background:#fff;
}
#detail.users-admin-modal::backdrop{background:rgba(15,23,42,.58);backdrop-filter:blur(3px)}
#detail.users-admin-modal>.close{
  position:absolute;z-index:5;top:18px;right:18px;width:42px;height:42px;
  display:grid;place-items:center;border:1px solid #e2e8f0;border-radius:50%;
  background:#fff;color:#0f172a;font-size:24px;line-height:1;box-shadow:0 4px 12px rgba(15,23,42,.08)
}
#detail.users-admin-modal>.close:hover{background:#f8fafc;border-color:#cbd5e1}
#detail.users-admin-modal #detail-content{padding:0;overflow:auto;max-height:min(820px,calc(100vh - 48px))}
.users-admin-shell{min-height:520px;background:#f8fafc}
.users-admin-hero{padding:28px 76px 22px 30px;background:#fff;border-bottom:1px solid #e2e8f0}
.users-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-end}
.users-head h2{margin:0;color:#0f172a;font-size:28px;line-height:1.15;letter-spacing:-.025em}
.users-head p{margin:7px 0 0;color:#64748b;font-size:14px}
.users-actions{display:grid;grid-template-columns:minmax(220px,1fr) 170px auto;gap:10px;align-items:center;min-width:min(620px,60vw)}
.users-actions input,.users-actions select{height:44px;padding:0 13px;border:1px solid #cbd5e1;border-radius:11px;background:#fff;color:#0f172a;font:inherit;outline:none}
.users-actions input:focus,.users-actions select:focus{border-color:#991b1b;box-shadow:0 0 0 3px rgba(153,27,27,.12)}
.users-actions button,.users-table button,.edit-actions button,.sessions button{height:42px;padding:0 16px;border:0;border-radius:10px;background:#991b1b;color:#fff;font-weight:700;cursor:pointer}
.users-actions button:hover,.users-table button:hover,.edit-actions button:hover,.sessions button:hover{background:#7f1d1d}
.users-table-wrap{margin:24px 28px 30px;overflow:auto;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 8px 28px rgba(15,23,42,.06)}
.users-table{width:100%;min-width:940px;border-collapse:separate;border-spacing:0}
.users-table th{padding:14px 16px;background:#f8fafc;border-bottom:1px solid #e2e8f0;color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.06em;text-align:left;white-space:nowrap}
.users-table td{padding:16px;border-bottom:1px solid #eef2f7;color:#1e293b;vertical-align:middle}
.users-table tbody tr:last-child td{border-bottom:0}
.users-table tbody tr:hover{background:#fffafa}
.users-table td strong{font-size:15px;color:#0f172a}
.users-table td:last-child{text-align:right}
.pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700}
.pill::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.pill.ok{background:#dcfce7;color:#166534}.pill.off{background:#f1f5f9;color:#64748b}
.users-empty{padding:48px;text-align:center;color:#64748b}
.user-edit-shell{padding:28px;background:#f8fafc;min-height:520px}
.user-edit-title{padding-right:54px;margin:0 0 22px;color:#0f172a;font-size:26px}
.tabs{display:grid;grid-template-columns:1fr 1fr .9fr;gap:14px}
.tabs section{padding:20px;border:1px solid #e2e8f0;border-radius:15px;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.04)}
.tabs h3{margin:0 0 14px;color:#0f172a;font-size:16px}
.tabs label{display:grid;gap:7px;margin:12px 0;color:#475569;font-size:13px;font-weight:700}
.tabs input:not([type=checkbox]),.tabs select{height:43px;padding:0 12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;font:inherit}
.edit-actions{display:flex;justify-content:flex-end;gap:10px;margin:18px 0}
.edit-actions button:first-child{background:#fff;color:#334155;border:1px solid #cbd5e1}
.sessions{display:grid;gap:8px}.sessions>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border:1px solid #e2e8f0;border-radius:11px;background:#fff;color:#475569;font-size:13px}
@media(max-width:900px){
 #detail.users-admin-modal{width:calc(100vw - 20px);max-height:calc(100vh - 20px);border-radius:16px}
 .users-admin-hero{padding:24px 64px 18px 18px}.users-head{display:grid;align-items:stretch}.users-actions{min-width:0;grid-template-columns:1fr 150px}.users-actions button{grid-column:1/-1}.users-table-wrap{margin:16px}
 .tabs{grid-template-columns:1fr}.user-edit-shell{padding:18px}
}
@media(max-width:620px){
 .users-actions{grid-template-columns:1fr}.users-actions button{grid-column:auto}
 .users-table{min-width:0}.users-table thead{display:none}.users-table tbody{display:grid;gap:10px;padding:10px}.users-table tr{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:13px;border:1px solid #e2e8f0;border-radius:12px}.users-table td{padding:3px;border:0}.users-table td:first-child,.users-table td:last-child{grid-column:1/-1}.users-table td:last-child button{width:100%}
}
