/* Scoped administration additions. The game / landscape stylesheet is unchanged. */
.tenant-filter,.journal-filters{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 24px;padding:16px 20px;background:#fffdf8;border:1px solid #e6e0d4;border-radius:14px}
.tenant-filter label,.journal-filters label{display:grid;gap:7px;min-width:min(340px,100%);margin:0;font-size:12px;font-weight:700;color:#43564d}
.tenant-filter select,.journal-filters select{width:100%;min-height:44px;padding:10px 36px 10px 12px}
.tenant-filter>span,.journal-filters>span{display:flex;align-items:center;gap:9px;font-size:12px;color:#62746b}
.tenant-banner{display:flex;align-items:center;gap:14px;padding:17px 21px;border-radius:14px;background:#e9f3ed;border:1px solid #cadfd1;margin-bottom:24px;color:#154b3b}
.tenant-banner div{display:grid;gap:5px}.tenant-banner span{font-size:12px}
.tenant-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.tenant-kpis .kpi{min-width:0}.tenant-kpis .kpi>strong{font-size:clamp(20px,2.1vw,29px)}
.tenant-panel{margin:0 0 26px;overflow:hidden}.tenant-summary{min-width:1160px}.tenant-summary td{font-size:12px}.tenant-summary td:first-child{min-width:195px}.tenant-summary .person{align-items:flex-start}.tenant-summary .badge{margin-top:6px}
.tenant-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:145px;max-width:210px}.tenant-actions .btn{font-size:11px;white-space:nowrap;padding:7px 9px}
.reserve-banner{display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:25px;margin-bottom:24px;padding:25px 28px;border:1px solid #1f5847;border-radius:18px;background:linear-gradient(120deg,#063c2e,#0e4d3b);color:#f9f4e6;box-shadow:0 10px 28px #07342512}
.reserve-banner>div{min-width:0;display:grid;gap:7px}.reserve-banner span{font-size:12px;font-weight:600;color:#d6ddcd}.reserve-banner strong{font-size:28px;line-height:1.25;overflow-wrap:anywhere}.reserve-banner strong small{font-size:13px;font-weight:500;color:#d8dccb}.reserve-banner small{font-size:11px;color:#bdd1c4;line-height:1.5}.reserve-banner .reserve-actions{display:flex;flex-direction:column;gap:10px}
.permission-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:24px 0 16px}.permission-header h3{margin:0}.permission-header>div{display:flex;gap:8px;flex-wrap:wrap}
.permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:20px}.permission-grid fieldset{border:1px solid #d9e2d9;padding:14px 15px 9px;border-radius:12px;background:#f9fbf7;min-width:0}.permission-grid legend{font-size:12px;font-weight:800;color:#1f553f;padding:0 6px}
.permission-grid .permission-option{display:flex;align-items:flex-start;gap:10px;font-size:12px;font-weight:500;line-height:1.5;margin:0 0 12px;cursor:pointer}.permission-option input{width:17px!important;height:17px!important;min-height:17px;flex:0 0 17px;margin:2px 0 0;padding:0;accent-color:#156747}.permission-option span{flex:1}
.transfer-ref{max-width:260px;overflow-wrap:anywhere;font-size:10px!important;color:#7f8a82;line-height:1.4;padding-top:5px}.tenant-settings{max-width:720px}.history-participants{font-size:11px;margin-top:9px;max-width:310px}.history-participants summary{cursor:pointer;color:#41755c}.history-participants>div{padding:7px 0;border-bottom:1px solid #edece3}.history-participants small{display:block;color:#6e7d71;margin-top:3px}
.admin-shell .main-content{min-width:0}.admin-shell .panel{min-width:0}.admin-shell .table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.admin-shell .live-table-row .table-number{font-size:11px}
@media(max-width:1100px){.tenant-filter,.journal-filters{flex-wrap:wrap}.reserve-banner{grid-template-columns:1fr 1fr}.reserve-banner .reserve-actions{grid-column:1/-1;flex-direction:row;flex-wrap:wrap}.tenant-actions{min-width:125px}.tenant-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tenant-filter,.journal-filters{padding:14px;gap:10px}.tenant-filter label,.journal-filters label{min-width:100%}.tenant-filter>span,.journal-filters>span{font-size:11px}.tenant-kpis{gap:12px}.tenant-kpis .kpi{padding:16px 13px}.tenant-kpis .kpi>strong{font-size:20px}.tenant-kpis .kpi-top>span:first-child{font-size:11px}.tenant-kpis .kpi small{font-size:10px}.reserve-banner{gap:16px;padding:21px 17px}.reserve-banner strong{font-size:22px}.reserve-banner .reserve-actions{flex-direction:column}.permission-grid{grid-template-columns:1fr}.permission-header{align-items:flex-start;flex-direction:column}.permission-grid .permission-option{font-size:13px}.tenant-banner{padding:14px}.tenant-summary{min-width:1120px}.tenant-panel .panel-header{flex-direction:column;align-items:flex-start;gap:12px}.tenant-panel .panel-header p{line-height:1.6}}
/* Dedicated permission checkboxes must not inherit the general switch layout. */
.permission-grid .permission-option{flex-direction:row;min-height:28px}
.permission-grid .permission-option input[type=checkbox]{appearance:auto;-webkit-appearance:checkbox;min-width:17px!important;width:17px!important;height:17px!important;min-height:17px!important;flex:0 0 17px;border-radius:3px;box-shadow:none;background:initial;transform:none}
.permission-grid .permission-option input[type=checkbox]::before,.permission-grid .permission-option input[type=checkbox]::after{content:none;display:none}
.admin-shell .sidebar{overflow-y:auto;overscroll-behavior-y:contain}

/* Superadmin data controls */
.delete-tools{margin:0 0 20px}.delete-tools p{max-width:85ch}.delete-tools .tenant-actions{flex-wrap:wrap}
#delete-user-form label,#purge-journal-form label{overflow-wrap:anywhere}

/* Live supervision uses its own four-hand layout; no changes to the player's rack. */
.config-totals{flex-wrap:wrap;gap:8px}.reserve-actions{flex-wrap:wrap}
.admin-watch-body{min-width:0;min-height:0;display:grid;grid-template-rows:22px minmax(0,1fr) 22px;gap:6px;padding:4px 8px;background:radial-gradient(ellipse at top,#154937,#031f18);color:#f0e6c5}
.admin-watch-notice{display:flex;align-items:center;justify-content:center;gap:6px;font:12px/1.2 system-ui;color:#e7ce98}
.admin-watch-notice .icon{width:16px;height:16px}
.admin-watch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px;min-height:0}
.admin-hand{min-width:0;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:5px;padding:10px 14px;border:2px solid #897347;border-radius:12px;background:linear-gradient(135deg,#173f30,#06261d);box-shadow:inset 0 1px #d2bb7a3f}
.admin-hand.is-turn{border-color:#ff534e;box-shadow:0 0 12px #f33b3577,inset 0 0 20px #ac242a33;background:linear-gradient(135deg,#512422,#182b22)}
.admin-hand>header{display:flex;justify-content:space-between;align-items:center;gap:6px;min-width:0;font:14px/1.2 system-ui}
.admin-hand>header strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.admin-hand>header>span{white-space:nowrap;font-size:11px;color:#decda0}
.admin-hand.is-turn>header>span{background:#b51c27;color:white;padding:3px 8px;border-radius:6px;font-weight:700}
.admin-hand-points{display:flex;justify-content:space-between;gap:5px;font:11px/1.2 system-ui;color:#dbcaa4}
.admin-hand-tiles{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:4px;min-height:0;align-items:stretch;padding:4px;background:linear-gradient(#9e7443,#7e5b33);border:2px solid #ba9152;border-radius:5px}
body.pg-mode .admin-hand-tiles>.tile.small{width:100%;height:100%;min-height:0;max-height:105px;padding:1px 0;border-radius:4px;box-sizing:border-box;flex:initial;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0;overflow:hidden;container-type:size}
body.pg-mode .admin-hand-tiles>.tile.small b{font-size:clamp(16px,61cqh,50px);line-height:1}
body.pg-mode .admin-hand-tiles>.tile.small i{font:clamp(7px,19cqh,13px)/1 system-ui;margin:0;width:auto;height:auto;background:none}
body.pg-mode .admin-hand-tiles>.tile.small em{font:6px/1 system-ui;position:absolute;bottom:0}
.admin-hand footer{font:10px/1.2 system-ui;color:#c6c0a0}
.admin-watch-event{font:10px/1.2 system-ui;display:flex;justify-content:space-between;gap:8px;min-width:0;align-items:center}
.admin-watch-event span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.pg-mode .admin-watch-header .btn{min-height:36px;padding:5px 9px;font-size:11px;color:#f6e8c7;white-space:nowrap}
body.pg-mode .admin-watch-header .btn.danger-ghost{border:1px solid #db6660;color:#ffd5d2;background:#521e21}
@media(max-width:1000px){.admin-hand{padding:6px 8px;gap:3px}.admin-watch-grid{gap:6px}.admin-hand>header{font-size:12px}.admin-hand-points{font-size:9px}.admin-hand footer{font-size:8px}.admin-watch-body{padding:2px 4px;gap:4px;grid-template-rows:17px minmax(0,1fr) 17px}.admin-watch-notice{font-size:10px}.admin-hand-tiles{gap:3px;padding:2px}.admin-watch-event{font-size:8px}}
@media(max-height:380px){.admin-hand{padding:3px 6px;gap:2px}.admin-hand>header{font-size:11px}.admin-hand footer{display:none}.admin-hand{grid-template-rows:16px 13px minmax(0,1fr)}.admin-watch-body{grid-template-rows:14px minmax(0,1fr) 14px}.admin-watch-grid{gap:4px}.admin-watch-notice{font-size:9px}}

body.pg-mode .admin-watch-header .btn.outline{background:#173f30;border-color:#897347;color:#f6e8c7}
body.pg-mode .admin-watch-header .turn-timer b{width:auto;min-width:2.2ch;font-size:clamp(16px,2.5vw,24px);line-height:1}
body.pg-mode .admin-watch-header .pg-tools{gap:6px}
