/* Wait Times Dashboard
 * All colours are CSS variables — override them in Divi (Theme Options > Custom CSS)
 * or a child theme to rebrand without touching the plugin.
 */
.awt {
	--awt-accent:      #2f5fa8;   /* ring / progress blue (matches screenshot) */
	--awt-tab-active:  #2c3e6b;   /* active tab navy */
	--awt-tab-bg:      #e9e9e9;   /* inactive tab grey */
	--awt-tab-text:    #1d2330;
	--awt-card-bg:     #ffffff;
	--awt-card-border: #e3e6ec;
	--awt-track:       #d7dbe2;   /* faint ring + ticks */
	--awt-tick:        #c4c9d2;
	--awt-text:        #1d2330;
	--awt-sub:         #3a4150;
	--awt-radius:      10px;

	font-family: inherit;
	color: var(--awt-text);
	max-width: 1200px;
	margin: 0 auto;
}

/* ---- Tabs ---------------------------------------------------------------- */
.awt-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	margin-bottom: 18px;
}
.awt-tab {
	appearance: none;
	border: 0;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	font-size: 1.05rem;
	padding: 14px 26px;
	background: var(--awt-tab-bg);
	color: var(--awt-tab-text);
	border-radius: 6px 6px 0 0;
	transition: background .18s ease, color .18s ease;
	flex: 0 1 auto;
}
.awt-tab:hover { background: #dcdfe5; }
.awt-tab.is-active {
	background: var(--awt-tab-active);
	color: #fff;
}

/* ---- Grid + cards -------------------------------------------------------- */
.awt-panel[hidden] { display: none; }
.awt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 22px;
}
.awt-card {
	background: var(--awt-card-bg);
	border: 1px solid var(--awt-card-border);
	border-radius: var(--awt-radius);
	padding: 22px 18px 26px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(20, 30, 55, .06);
	display: flex;
	flex-direction: column;
	align-items: center;
}
.awt-card-head { min-height: 64px; margin-bottom: 6px; }
.awt-card-title {
	font-weight: 700;
	font-size: 1.18rem;
	line-height: 1.25;
}
.awt-card-sub {
	font-size: 1rem;
	color: var(--awt-sub);
	margin-top: 4px;
}

/* ---- Gauge --------------------------------------------------------------- */
.awt-gauge {
	position: relative;
	width: 150px;
	height: 150px;
	margin-top: 6px;
}
.awt-ring { width: 100%; height: 100%; transform: rotate(0deg); }
.awt-ring-track {
	fill: none;
	stroke: var(--awt-track);
	stroke-width: 2;
}
.awt-ring-accent {
	fill: none;
	stroke: var(--awt-accent);
	stroke-width: 4;
	opacity: .9;
	/* Static full ring (decorative). To re-enable proportional fill, comment
	   out the two lines below and let awt.js set the dashoffset from data-pct. */
	stroke-dasharray: none;
	stroke-dashoffset: 0;
}
.awt-tick      { stroke: var(--awt-tick); stroke-width: 1; }
.awt-tick--major { stroke: var(--awt-tick); stroke-width: 1.4; }

.awt-gauge-inner {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
}
.awt-count {
	font-size: 2.9rem;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.awt-unit {
	font-size: .95rem;
	color: var(--awt-sub);
	margin-top: 2px;
}
.awt-status {
	font-size: .9rem;
	font-weight: 600;
	color: var(--awt-sub);
	padding: 0 16px;
	line-height: 1.25;
}

.awt-empty {
	padding: 24px;
	text-align: center;
	color: var(--awt-sub);
	border: 1px dashed var(--awt-card-border);
	border-radius: var(--awt-radius);
}

@media (max-width: 520px) {
	.awt-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
	.awt-gauge { width: 120px; height: 120px; }
	.awt-count { font-size: 2.2rem; }
	.awt-tab { padding: 11px 16px; font-size: .95rem; }
}

/* ---- CCG Destinations & Pathways table ---------------------------------- */
.awt-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--awt-card-border);
	border-radius: var(--awt-radius);
}
.awt-ptable {
	width: 100%;
	min-width: 560px;            /* forces horizontal scroll on narrow screens */
	border-collapse: collapse;
	font-size: 1rem;
	background: var(--awt-card-bg);
}
.awt-ptable thead th {
	background: var(--awt-tab-active);
	color: #fff;
	text-align: left;
	font-weight: 600;
	padding: 12px 16px;
	white-space: nowrap;
}
.awt-ptable tbody th,
.awt-ptable tbody td {
	padding: 12px 16px;
	border-top: 1px solid var(--awt-card-border);
	vertical-align: top;
	text-align: left;
}
.awt-pt-fed {
	font-weight: 700;
	background: #f3f5f9;
	border-left: 4px solid var(--awt-accent);
	white-space: nowrap;
}
.awt-pt-spec { font-weight: 600; color: var(--awt-sub); white-space: nowrap; }
.awt-pt-practice { color: var(--awt-text); }
.awt-ptable tbody tr:hover td,
.awt-ptable tbody tr:hover .awt-pt-spec { background: #f9fafc; }

.awt-pt-legend {
	margin: 12px 2px 0;
	font-size: .9rem;
	font-style: italic;
	color: var(--awt-sub);
	line-height: 1.45;
}
.awt-pt-star { color: var(--awt-accent); font-weight: 700; font-style: normal; }

@media (max-width: 520px) {
	.awt-ptable { font-size: .92rem; min-width: 520px; }
	.awt-ptable thead th,
	.awt-ptable tbody th,
	.awt-ptable tbody td { padding: 9px 11px; }
}
