:root{font-family:Segoe UI,system-ui,sans-serif;color:#19243a;background:#f4f6fa}*{box-sizing:border-box}body{margin:0}header{background:#17223b;color:white;padding:22px max(4vw,24px);display:flex;justify-content:space-between;align-items:center}h1{margin:0;color:#58c9c4}header p{margin:3px 0}a{color:#207f83}header a{color:#8ee6df}nav{position:sticky;top:0;background:white;padding:13px 4vw;display:flex;gap:8px;box-shadow:0 2px 8px #0012;z-index:2;overflow-x:auto}nav a{padding:8px 12px;border-radius:6px;color:#40506b;font-weight:600;text-decoration:none;white-space:nowrap}nav a:hover{background:#edf7f6;color:#166b70}nav a.active{background:#207f83;color:white}main{max-width:1200px;margin:25px auto;padding:0 20px}section,.card{background:white;border-radius:10px;padding:22px;margin:18px 0;box-shadow:0 2px 12px #0011}h2{margin-top:0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;align-items:end;margin-top:18px}label{font-size:13px;font-weight:600;display:grid;gap:5px}input,select,textarea,button{font:inherit;padding:9px;border:1px solid #b9c3d2;border-radius:5px}button{background:#207f83;color:white;border:0;font-weight:600;cursor:pointer}.link{padding:5px 9px}.wide{grid-column:1/-1}.check{display:flex;align-items:center}.check input{width:auto}textarea{min-height:75px}.policy-note{margin:0;padding:12px;border-left:4px solid #d69b27;background:#fff8e7;color:#5c4619}.table{overflow:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;padding:10px;border-bottom:1px solid #e5e8ee;white-space:nowrap}th{font-size:12px;text-transform:uppercase;color:#647087}.notice,.error{max-width:1200px;margin:18px auto;padding:16px;border-radius:7px}.notice{background:#d9f5ee}.error{background:#ffe1e1}.narrow{max-width:420px;margin:12vh auto}.narrow label{margin:15px 0}details{border-top:1px solid #e5e8ee;margin-top:16px;padding-top:14px}summary{font-weight:700;cursor:pointer}@media(max-width:700px){header{align-items:flex-start;gap:14px;flex-direction:column}nav{padding:10px 16px}main{margin-top:16px;padding:0 12px}section,.card{padding:16px}}
body{min-height:100vh;display:flex;flex-direction:column}main{width:100%;flex:1}.tenant-context{display:flex;align-items:baseline;gap:9px}.tenant-context span{color:#aebbd1;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.tenant-context strong{color:white;font-size:16px}.session-context{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.session-context span{background:#263758;border-radius:999px;color:#dce5f4;font-size:12px;padding:5px 9px}.session-context a{margin-left:8px}.danger-zone{border:1px solid #edb4b4;border-radius:8px;background:#fff5f5;margin-top:18px;padding:16px}.danger-zone p{margin:7px 0 12px}.danger{background:#a52828}.danger:hover{background:#811d1d}footer{display:flex;justify-content:space-between;gap:16px;width:100%;margin-top:auto;padding:18px max(4vw,24px);border-top:1px solid #dce2eb;background:#e9edf3;color:#526077;font-size:13px}@media(max-width:700px){.tenant-context{align-items:flex-start;flex-direction:column;gap:2px}.session-context{justify-content:flex-start}.session-context a{margin-left:0}footer{align-items:flex-start;flex-direction:column}}
.audit-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;align-items:end;margin:20px 0}.audit-filters label:first-of-type{grid-column:span 2}.filter-actions{display:flex;align-items:center;gap:12px}.event-type,.result{display:inline-block;border-radius:999px;font-size:12px;font-weight:700;padding:4px 8px}.event-type.authentication{background:#e6f5f4;color:#126267}.event-type.device{background:#e8eefb;color:#294d91}.event-type.management{background:#f1eafa;color:#674096}.result.success{background:#e4f5e9;color:#24633a}.result.failure{background:#fde7e5;color:#912e25}.audit-summary{display:block;max-width:420px;white-space:normal}.table td small{display:block;color:#6c7789;margin-top:3px}.pager{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px}.pager div{display:flex;gap:16px}.pager a{font-weight:700;text-decoration:none}@media(max-width:700px){.audit-filters label:first-of-type{grid-column:span 1}.pager{align-items:flex-start;flex-direction:column}}
