/* AOS Control Room — desktop-first (1366×768 up to wall screens). Not designed for phones. */
:root {
	--aoscr-bg: #111111;
	--aoscr-panel: #1a1a1a;
	--aoscr-ink: #f3f1ea;
	--aoscr-muted: #b8b4a8;
	--aoscr-line: #33302a;
	--aoscr-accent: #e8c547;
	--aoscr-ok: #7dce82;
	--aoscr-warn: #f0a202;
	--aoscr-bad: #e85d4c;
	--aoscr-new: #ff6b4a;
}
html.aoscr-html,
body.aoscr-body {
	background: var(--aoscr-bg);
	color: var(--aoscr-ink);
	margin: 0;
	min-width: 1200px;
}
body.aoscr-body #wpadminbar,
body.aoscr-body .site-header,
body.aoscr-body .site-footer,
body.aoscr-body header,
body.aoscr-body footer {
	display: none !important;
}
body.aoscr-body .site-content,
body.aoscr-body .entry-content,
body.aoscr-body article,
body.aoscr-body .wp-site-blocks {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	width: 100% !important;
}
.aoscr-app {
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	font-size: 18px;
	line-height: 1.35;
	min-height: 100vh;
	background: var(--aoscr-bg);
	color: var(--aoscr-ink);
	box-sizing: border-box;
}
@media (min-width: 1800px) {
	.aoscr-app { font-size: 20px; }
}
.aoscr-app *,
.aoscr-app *::before,
.aoscr-app *::after { box-sizing: border-box; }

/* Entry */
.aoscr-gate {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}
.aoscr-gate-card {
	width: 440px;
	background: var(--aoscr-panel);
	border: 1px solid var(--aoscr-line);
	padding: 40px 36px 32px;
}
.aoscr-gate h1 {
	margin: 0 0 8px;
	font-size: 2rem;
	font-weight: 650;
	letter-spacing: 0.02em;
}
.aoscr-gate p { color: var(--aoscr-muted); margin: 0 0 24px; }
.aoscr-gate label { display: block; margin-bottom: 8px; font-weight: 600; }
.aoscr-gate input[type="password"],
.aoscr-gate input[type="text"] {
	width: 100%;
	font-size: 1.4rem;
	letter-spacing: 0.2em;
	padding: 14px 16px;
	background: #0c0c0c;
	color: var(--aoscr-ink);
	border: 1px solid #555;
	margin-bottom: 16px;
}
.aoscr-btn {
	appearance: none;
	border: 0;
	background: var(--aoscr-accent);
	color: #111;
	font-weight: 700;
	font-size: 1.05rem;
	padding: 14px 22px;
	cursor: pointer;
}
.aoscr-btn:hover { filter: brightness(1.08); }
.aoscr-btn:disabled { opacity: 0.6; cursor: default; }
.aoscr-btn-ghost {
	background: transparent;
	color: var(--aoscr-ink);
	border: 1px solid #555;
}
.aoscr-error { color: var(--aoscr-bad); margin: 12px 0 0; min-height: 1.4em; }


/* Shell */
.aoscr-shell { display: flex; flex-direction: column; min-height: 100vh; }
.aoscr-top {
	display: flex;
	align-items: center;
	gap: clamp(8px, 0.8vw, 16px);
	padding: 10px clamp(12px, 1vw, 20px);
	border-bottom: 1px solid var(--aoscr-line);
	background: #161616;
	flex-shrink: 0;
}
.aoscr-brand { font-weight: 700; font-size: clamp(1rem, 0.85vw, 1.15rem); letter-spacing: 0.04em; white-space: nowrap; }
.aoscr-tabs { display: flex; gap: 4px; flex: 1; }
.aoscr-tab {
	background: transparent;
	color: var(--aoscr-muted);
	border: 0;
	border-bottom: 3px solid transparent;
	font-size: clamp(0.9rem, 0.86vw, 1.05rem);
	font-weight: 650;
	padding: 12px clamp(6px, 0.9vw, 18px);
	cursor: pointer;
}
.aoscr-tab[aria-selected="true"] {
	color: var(--aoscr-ink);
	border-bottom-color: var(--aoscr-accent);
}
.aoscr-clock {
	font-variant-numeric: tabular-nums;
	font-size: clamp(1rem, 0.85vw, 1.15rem);
	font-weight: 650;
	white-space: nowrap;
	color: var(--aoscr-accent);
}
.aoscr-actions { display: flex; gap: 8px; flex-shrink: 0; }
.aoscr-actions .aoscr-btn { padding: 8px clamp(8px, 0.73vw, 14px); font-size: clamp(0.85rem, 0.7vw, 0.95rem); white-space: nowrap; }
.aoscr-main { flex: 1; padding: 16px 20px 20px; overflow: auto; }
.aoscr-panel[hidden] { display: none !important; }

.aoscr-empty,
.aoscr-offline {
	padding: 48px 24px;
	text-align: center;
	color: var(--aoscr-muted);
	font-size: 1.25rem;
	border: 1px dashed var(--aoscr-line);
}

.aoscr-section h2 {
	margin: 0;
	padding: 10px 14px;
	font-size: 1rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--aoscr-line);
}
table.aoscr-table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}
table.aoscr-table th,
table.aoscr-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid var(--aoscr-line);
	vertical-align: top;
}
table.aoscr-table th { color: var(--aoscr-muted); font-weight: 650; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
table.aoscr-table tr:hover td { background: #222; }

.aoscr-pill {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
}
.aoscr-pill-new, .aoscr-pill-red, .aoscr-light-red { background: #5a1d16; color: #ffc4bc; }
.aoscr-pill-acknowledged, .aoscr-pill-amber, .aoscr-light-amber { background: #5a4308; color: #ffe08a; }
.aoscr-pill-resolved, .aoscr-pill-green, .aoscr-light-green, .aoscr-pill-ok { background: #1c4a22; color: #c3f0c6; }
.aoscr-pill-overdue, .aoscr-pill-problem { background: #5a1d16; color: #ffc4bc; }
.aoscr-pill-never { background: #333; color: #ddd; }

.aoscr-section { background: var(--aoscr-panel); border: 1px solid var(--aoscr-line); }
.aoscr-section + .aoscr-section { margin-top: 16px; }
.aoscr-note { padding: 10px 14px; color: var(--aoscr-muted); }

html.aoscr-fs, html.aoscr-fs body, html.aoscr-fs .aoscr-app { height: 100%; }

/* Mode badge */
.aoscr-mode {
	font-weight: 800;
	font-size: 0.9rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 4px;
	white-space: nowrap;
}
.aoscr-mode-view { background: #2b3a4a; color: #cfe3f7; }
.aoscr-mode-edit { background: var(--aoscr-new); color: #111; }
.aoscr-mode-preview { background: #b32d2e; color: #fff; white-space: nowrap; }

/* Timetables */
.aoscr-subbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.aoscr-subtools { display: flex; gap: 8px; }
.aoscr-subtools .aoscr-btn { padding: 10px 16px; font-size: 1rem; }
.aoscr-row-actions { white-space: nowrap; width: 1%; text-align: right; }
.aoscr-btn-small { padding: 6px 12px; font-size: 0.9rem; }
.aoscr-row-actions .aoscr-btn + .aoscr-btn { margin-left: 6px; }
.aoscr-btn-danger { background: var(--aoscr-bad); color: #fff; }
.aoscr-flash { padding: 10px 14px; margin-bottom: 12px; font-weight: 600; }
.aoscr-flash[hidden] { display: none; }
.aoscr-flash-ok { background: #1c4a22; color: #c3f0c6; }
.aoscr-flash-warn { background: #5a4308; color: #ffe08a; }
.aoscr-audit { margin-top: 24px; }
.aoscr-audit table.aoscr-table { font-size: 0.9rem; }
.aoscr-print-title, .aoscr-print-foot { display: none; }

/* Edit form */
.aoscr-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 4vh 20px;
	overflow: auto;
	z-index: 10000;
}
.aoscr-modal-card {
	width: min(980px, 100%);
	background: var(--aoscr-panel);
	border: 1px solid var(--aoscr-line);
	border-top: 4px solid var(--aoscr-accent);
	padding: 20px 24px;
}
.aoscr-modal-card h2 { margin: 0 0 14px; font-size: 1.4rem; }
.aoscr-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.aoscr-field { margin-bottom: 12px; }
.aoscr-field label > span, .aoscr-field-label { display: block; font-weight: 650; margin-bottom: 4px; color: var(--aoscr-muted); }
.aoscr-form input[type="text"], .aoscr-form input[type="time"], .aoscr-form input[type="datetime-local"],
.aoscr-form input:not([type]), .aoscr-form select, .aoscr-form textarea {
	width: 100%;
	font: inherit;
	padding: 9px 10px;
	background: #0c0c0c;
	color: var(--aoscr-ink);
	border: 1px solid #555;
	color-scheme: dark;
}
.aoscr-check { display: block; margin: 6px 0 12px; font-weight: 600; }
.aoscr-check input { width: 20px; height: 20px; vertical-align: -3px; }
.aoscr-field-note { color: var(--aoscr-muted); font-size: 0.9rem; margin: 4px 0 8px; }
.aoscr-form-buttons { display: flex; gap: 10px; margin-top: 8px; }
.aoscr-form-buttons .aoscr-btn-danger { margin-left: auto; }

/* Print: A4 portrait, black on white, timetable only. */
@page { size: A4 portrait; margin: 14mm 12mm 16mm; }
@media print {
	html.aoscr-html, body.aoscr-body, .aoscr-app {
		background: #fff !important;
		color: #000 !important;
		min-width: 0 !important;
		min-height: 0 !important;
		height: auto !important;
		font-size: 10.5pt;
	}
	.aoscr-top, .aoscr-subbar, .aoscr-flash, .aoscr-modal, .no-print, .aoscr-row-actions { display: none !important; }
	.aoscr-shell, .aoscr-main { display: block; padding: 0 !important; overflow: visible !important; min-height: 0 !important; }
	.aoscr-print-title { display: block; font-size: 16pt; margin: 0 0 4mm; color: #000; }
	.aoscr-print-foot { display: block; font-size: 9pt; color: #000; margin: -2mm 0 3mm; }
	.aoscr-section { background: #fff !important; border: 0 !important; }
	.aoscr-section h2 { color: #000; border-bottom: 0.3mm solid #000; padding: 1mm 0; font-size: 11pt; text-transform: none; letter-spacing: 0; break-after: avoid; page-break-after: avoid; }
	table.aoscr-table { width: 100%; table-layout: auto; }
	table.aoscr-table thead { display: table-header-group; }
	table.aoscr-table tr { break-inside: avoid; page-break-inside: avoid; }
	table.aoscr-table th, table.aoscr-table td { color: #000 !important; background: #fff !important; border-bottom: 0.2mm solid #999; padding: 1.2mm 1.5mm; font-size: 10pt; }
	table.aoscr-table th { font-size: 8.5pt; }

}

/* 1.2.0: embedded plugin screens (Responders, Volunteer hub) fill the tab area. */
.aoscr-main.aoscr-main-embed { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.aoscr-embed-frame { flex: 1; width: 100%; min-height: 0; border: 0; background: #fff; display: block; }
.aoscr-embed-frame[hidden], .aoscr-embed-blocked[hidden] { display: none !important; }

/* 1.2.0: Assets. */
.aoscr-asset-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.aoscr-asset-filters input, .aoscr-asset-filters select { font-size: 1rem; padding: 6px 8px; }
.aoscr-asset-filters input { min-width: 260px; }
.aoscr-sub { color: #aaa; font-size: 0.85em; }
.aoscr-pill-grey { background: #333; color: #ddd; }
.aoscr-asset-issue { margin-bottom: 4px; }
.aoscr-asset-table { table-layout: fixed; width: 100%; }
.aoscr-asset-table th:nth-child(1) { width: 18%; }
.aoscr-asset-table th:nth-child(2) { width: 5%; }
.aoscr-asset-table th:nth-child(3) { width: 15%; }
.aoscr-asset-table th:nth-child(4) { width: 15%; }
.aoscr-asset-table th:nth-child(5) { width: 10%; }
.aoscr-asset-table th:nth-child(6) { width: auto; }
.aoscr-asset-table th:nth-child(7) { width: 6%; }
.aoscr-asset-table th:nth-child(8) { width: 150px; }
.aoscr-asset-table td { overflow-wrap: anywhere; vertical-align: top; }
.aoscr-asset-table .aoscr-row-actions .aoscr-btn { display: block; width: 100%; margin: 0 0 4px; }
.aoscr-asset-hire[hidden] { display: none !important; }
@media print {
	.aoscr-assets { width: 100%; max-width: 186mm; }
	.aoscr-assets .aoscr-print-title, .aoscr-assets .aoscr-print-foot { display: block; }
	.aoscr-asset-table th:nth-child(8), .aoscr-asset-table td:nth-child(8) { display: none; }
	.aoscr-sub { color: #333 !important; }
	.aoscr-pill { border: 0.2mm solid #000; background: #fff !important; color: #000 !important; }
	.aoscr-asset-group { break-inside: auto; margin-top: 3mm; }
	.aoscr-main-embed .aoscr-embed-frame { display: none !important; }
}
#aoscr-embed-open[hidden] { display: none !important; }

/* 1.2.2: keep the admin-preview badge from pushing the top bar off a 1366 laptop. */
@media (max-width: 1600px) {
	.aoscr-mode-preview { white-space: normal; max-width: 7.5em; line-height: 1.15; text-align: center; padding-top: 3px; padding-bottom: 3px; }
}

/* 1.2.3: Timetables tab = the AOS Event Timetable admin screen (its own HTML, admin.css and admin.js).
   wp-admin's base styles are not on this page, so the few it relies on are reproduced here, scoped. */
.aoscr-et-host { background: #f0f0f1; color: #1d2327; font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; padding: 10px 20px 20px; border-radius: 4px; }
.aoscr-et-host .wrap { margin: 0; }
.aoscr-et-host a { color: #2271b1; }
.aoscr-et-host a.aos-et-block { color: #1d2327; }
.aoscr-et-host h1.wp-heading-inline { display: inline-block; font-size: 23px; font-weight: 400; margin: 0 10px 0 0; padding: 9px 0 4px; line-height: 1.3; color: #1d2327; }
.aoscr-et-host hr.wp-header-end { visibility: hidden; margin: -2px 0 0; border: 0; }
.aoscr-et-host .nav-tab-wrapper { border-bottom: 1px solid #c3c4c7; margin: 0; padding-top: 9px; line-height: inherit; font-size: inherit; }
.aoscr-et-host .nav-tab { float: left; border: 1px solid #c3c4c7; border-bottom: none; margin-left: .5em; padding: 5px 10px; font-size: 14px; line-height: 1.71428571; font-weight: 600; background: #dcdcde; color: #50575e; text-decoration: none; white-space: nowrap; }
.aoscr-et-host .nav-tab:first-child { margin-left: 0; }
.aoscr-et-host .nav-tab:hover { background: #fff; color: #3c434a; }
.aoscr-et-host .nav-tab-active, .aoscr-et-host .nav-tab-active:hover { border-bottom: 1px solid #f0f0f1; background: #f0f0f1; color: #000; margin-bottom: -1px; }
.aoscr-et-host .nav-tab-wrapper::after { content: ""; display: table; clear: both; }
.aoscr-et-host .nav-tab.aoscr-et-off { opacity: .45; cursor: not-allowed; }
.aoscr-et-host .notice { background: #fff; border: 1px solid #c3c4c7; border-left-width: 4px; box-shadow: 0 1px 1px rgba(0,0,0,.04); margin: 5px 0 15px; padding: 1px 12px; }
.aoscr-et-host .notice p { margin: .5em 0; padding: 2px; }
.aoscr-et-host .notice-success { border-left-color: #00a32a; }
.aoscr-et-host .notice-warning { border-left-color: #dba617; }
.aoscr-et-host .notice-error { border-left-color: #d63638; }
.aoscr-et-host .notice-info { border-left-color: #72aee6; }
.aoscr-et-host .notice[hidden] { display: none; }
.aoscr-et-host table.widefat { background: #fff; border: 1px solid #c3c4c7; border-spacing: 0; width: 100%; clear: both; margin: 0; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.aoscr-et-host .widefat th, .aoscr-et-host .widefat td { padding: 8px 10px; text-align: left; color: #50575e; font-size: 13px; line-height: 1.5; }
.aoscr-et-host .widefat thead th { border-bottom: 1px solid #c3c4c7; color: #1d2327; font-weight: 400; }
.aoscr-et-host .striped > tbody > :nth-child(odd) { background: #f6f7f7; }
.aoscr-et-host .row-title { font-size: 14px; font-weight: 600; }
.aoscr-et-host .form-table { border-collapse: collapse; margin-top: .5em; width: 100%; clear: both; }
.aoscr-et-host .form-table th { vertical-align: top; text-align: left; padding: 20px 10px 20px 0; width: 200px; line-height: 1.3; font-weight: 600; color: #1d2327; }
.aoscr-et-host .form-table td { margin-bottom: 9px; padding: 15px 10px; line-height: 1.3; vertical-align: middle; }
.aoscr-et-host input[type=text], .aoscr-et-host input[type=time], .aoscr-et-host select, .aoscr-et-host textarea { box-shadow: 0 0 0 transparent; border-radius: 4px; border: 1px solid #8c8f94; background: #fff; color: #2c3338; font-size: 14px; padding: 0 8px; min-height: 30px; line-height: 2; }
.aoscr-et-host select { padding-right: 24px; }
.aoscr-et-host textarea { line-height: 1.4; padding: 2px 6px; }
.aoscr-et-host .regular-text { width: 25em; }
.aoscr-et-host .large-text { width: 99%; }
.aoscr-et-host .description { color: #646970; font-size: 13px; font-style: normal; }
.aoscr-et-host p.submit { margin-top: 20px; padding-top: 10px; }
.aoscr-et-host .button-link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; font: inherit; }
.aoscr-et-host .button[disabled], .aoscr-et-host button[disabled] { opacity: .6; cursor: default; }
.aoscr-et-ro .aos-et-ghost { display: none !important; }
.aoscr-et-ro .aos-et-col .aos-et-col-body { cursor: default; }

/* 1.2.4 Volunteers tab: the AOS Volunteers plugin's "Print timetable" controls (its own admin.css look) and its '?' help tips. */
.aoscr-vp { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.aoscr-vp h2 { margin: 0; }
.aoscr-vp .aoscr-note { flex-basis: 100%; }
.aoscr-vp .aos-vol-print { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.aoscr-vp select { min-height: 36px; padding: 0 28px 0 8px; border: 1px solid #8c8f94; border-radius: 4px; background: #fff; color: #1d2327; font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.aoscr-vp .button[data-act="print-rota"] { background: #1e6b45; border: 1px solid #16573a; color: #fff; border-radius: 4px; min-height: 36px; padding: 0 14px; font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.aoscr-vp .button[data-act="print-rota"]::before { content: "\1F5A8"; font-size: 15px; line-height: 1; }
.aoscr-vp .button[data-act="print-rota"]:hover, .aoscr-vp .button[data-act="print-rota"]:focus { background: #16573a; color: #fff; }
.aos-vol-tip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 1.15em; height: 1.15em; margin: 0 0 0 4px; padding: 0; border: 1px solid #8c8f94; border-radius: 50%; background: #fff; color: #1d2327; font: 700 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; vertical-align: middle; cursor: help; }
.aos-vol-tip-text { display: none; position: absolute; z-index: 100; right: 0; top: calc(100% + 6px); width: 240px; padding: 8px 10px; border-radius: 4px; background: #1d2327; color: #fff; font: 400 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-align: left; white-space: normal; }
.aos-vol-tip:hover .aos-vol-tip-text, .aos-vol-tip:focus .aos-vol-tip-text, .aos-vol-tip.is-open .aos-vol-tip-text { display: block; }
