/* FSSL Results — shared styles (Bootstrap 4.6 base) */

:root {
	--brand: #13315c;
	--brand-2: #1d4f91;
	--accent: #2563eb;
	--accent-soft: #e8f0fe;
	--bg: #f3f5f9;
	--surface: #ffffff;
	--border: #e2e7ef;
	--text: #1c2534;
	--muted: #677489;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
	--shell: 1680px;
}

html, body { height: 100%; }

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Sinhala", Arial, sans-serif;
	font-size: .9375rem;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

/* ---------- Top navigation ---------- */
.app-nav {
	background: var(--brand);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
	padding-top: .35rem;
	padding-bottom: .35rem;
}
.app-nav .navbar-brand {
	display: flex;
	align-items: center;
	gap: .55rem;
	font-weight: 700;
	letter-spacing: .2px;
	font-size: 1.05rem;
}
.app-nav .brand-mark {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: rgba(255, 255, 255, .14);
	font-size: .95rem;
}
.app-nav .brand-sub {
	display: block;
	font-size: .7rem;
	font-weight: 400;
	opacity: .75;
	line-height: 1;
}
.app-nav .nav-link {
	color: rgba(255, 255, 255, .8) !important;
	border-radius: 7px;
	padding: .45rem .7rem !important;
	font-size: .9rem;
	white-space: nowrap;
}
.app-nav .nav-link i { width: 1.1em; text-align: center; opacity: .85; margin-right: .2rem; }
.app-nav .nav-link:hover { color: #fff !important; background: rgba(255, 255, 255, .1); }
.app-nav .nav-link.active { color: #fff !important; background: rgba(255, 255, 255, .18); }
.app-nav .navbar-nav { gap: .15rem; }
.app-nav .navbar-toggler { border-color: rgba(255, 255, 255, .25); }
.app-nav .user-chip {
	display: flex;
	align-items: center;
	gap: .5rem;
}
.app-nav .user-avatar {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	color: var(--brand);
	font-weight: 700;
	font-size: .8rem;
}
.app-nav .dropdown-menu { border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: var(--radius); }

@media (max-width: 1199.98px) {
	.app-nav .navbar-collapse { padding: .5rem 0; }
	.app-nav .user-menu { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: .5rem; padding-top: .5rem; }
}

/* ---------- Page shell ---------- */
.app-main { flex: 1 0 auto; }

.app-shell {
	width: 100%;
	max-width: var(--shell);
	margin: 0 auto;
	padding: 1.5rem clamp(1rem, 2.5vw, 2.25rem) 2.5rem;
}

/* Content width helpers — tables use the full shell, forms stay readable */
.page-narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.page-medium { max-width: 1080px; margin-left: auto; margin-right: auto; }

.page-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: .75rem 1rem;
	margin-bottom: 1.25rem;
}
.page-head h1 {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
	letter-spacing: -.2px;
}
.page-head .page-sub { color: var(--muted); margin: .25rem 0 0; }
.page-head .page-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.breadcrumb-lite {
	font-size: .8rem;
	color: var(--muted);
	margin-bottom: .35rem;
}
.breadcrumb-lite a { color: var(--muted); }

.section-title {
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: var(--muted);
	margin: 1.75rem 0 .75rem;
}
.section-title:first-child { margin-top: 0; }

/* ---------- Surfaces ---------- */
.card {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.card-header {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	font-weight: 600;
}
.panel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.5rem;
}
@media (max-width: 575.98px) {
	.panel { padding: 1rem; }
}

.toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem 1rem;
	margin-bottom: 1rem;
}
.toolbar .form-inline { gap: .5rem; }
.toolbar .form-inline .form-control { margin: 0 !important; }
.toolbar .form-inline .btn { margin: 0 !important; }
@media (max-width: 575.98px) {
	.toolbar, .toolbar .form-inline { flex-direction: column; align-items: stretch; }
	.toolbar .form-inline .form-control { width: 100%; }
}

/* ---------- Dashboard tiles ---------- */
.tile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 1rem;
}
.tile {
	display: flex;
	gap: .9rem;
	align-items: flex-start;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.1rem 1.15rem;
	color: var(--text);
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tile:hover, .tile:focus {
	color: var(--text);
	text-decoration: none;
	border-color: var(--accent);
	box-shadow: 0 4px 14px rgba(37, 99, 235, .12);
	transform: translateY(-1px);
}
.tile-icon {
	flex: 0 0 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 9px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 1.1rem;
}
.tile-icon.is-green { background: #e6f6ec; color: #15803d; }
.tile-icon.is-amber { background: #fdf3e1; color: #b45309; }
.tile-icon.is-slate { background: #eef1f5; color: #475569; }
.tile-icon.is-red { background: #fdecec; color: #b91c1c; }
.tile-title { font-weight: 600; margin: 0 0 .15rem; font-size: .98rem; }
.tile-text { color: var(--muted); margin: 0; font-size: .85rem; line-height: 1.4; }

/* ---------- Stat boxes ---------- */
.stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: .75rem;
	margin-bottom: 1rem;
}
.stat {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: .6rem .8rem;
	min-width: 0;
}
.stat small { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .4px; }
.stat strong { display: block; font-size: 1rem; overflow-wrap: anywhere; }

/* ---------- Tables ---------- */
.table-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}
.table-card .table-responsive { margin: 0; }
.table-card .table { margin-bottom: 0; }
.table-card .table td, .table-card .table th { border-left: 0; border-right: 0; }
.table-card .table-bordered { border: 0; }
.table-scroll { max-height: 65vh; overflow: auto; }

.table { color: var(--text); }
.table td, .table th { vertical-align: middle; }
.table thead th,
.table .thead-dark th {
	background: #f1f4f9;
	color: #4a5568;
	border-color: var(--border);
	border-bottom-width: 1px;
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	white-space: nowrap;
	position: sticky;
	top: 0;
	z-index: 2;
}
.table-hover tbody tr:hover { background: #f7f9fc; }
.table-striped tbody tr:nth-of-type(odd) { background: #fafbfd; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions form { display: inline; }
.table .empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.table tr.group-row th {
	background: #f7f9fc;
	color: var(--brand-2);
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .5px;
	position: static;
}

/* ---------- Forms & buttons ---------- */
.form-control, .custom-select, .form-select {
	border-color: #d3dae5;
	border-radius: 7px;
}
.form-control:focus, .form-select:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .15);
}
.input-group .toggle-password {
	border-color: #d3dae5;
	color: var(--muted);
	background: #fff;
	border-top-right-radius: 7px;
	border-bottom-right-radius: 7px;
	transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.input-group .toggle-password:hover,
.input-group .toggle-password:focus {
	background-color: #f1f5f9;
	color: var(--text);
	border-color: #cbd5e1;
	box-shadow: none;
}
/* Bootstrap 5 class used in a few older views */
.form-select {
	display: block;
	width: 100%;
	height: calc(1.5em + .75rem + 2px);
	padding: .375rem .75rem;
	font-size: 1rem;
	color: #495057;
	background-color: #fff;
	border: 1px solid #d3dae5;
}
label { font-weight: 600; font-size: .875rem; color: #374151; margin-bottom: .3rem; }
.form-check-label, .check-inline { font-weight: 400; }
.form-text { font-size: .8rem; }
.form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	justify-content: flex-end;
	border-top: 1px solid var(--border);
	margin-top: 1.25rem;
	padding-top: 1rem;
}
@media (max-width: 575.98px) {
	.form-actions { flex-direction: column-reverse; }
	.form-actions .btn { width: 100%; }
}

.btn { border-radius: 7px; font-weight: 500; }
.btn i { margin-right: .25rem; }
.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover, .btn-primary:focus { background: #1d4ed8; border-color: #1d4ed8; }
.btn-icon i { margin-right: 0; }

.badge { font-weight: 600; padding: .35em .6em; border-radius: 6px; }
.badge-soft-success { background: #e6f6ec; color: #15803d; }
.badge-soft-warning { background: #fdf3e1; color: #b45309; }
.badge-soft-secondary { background: #eef1f5; color: #475569; }
.badge-soft-info { background: #e8f0fe; color: #1d4ed8; }
.badge-soft-danger { background: #fdecec; color: #b91c1c; }

.alert { border-radius: 8px; }

/* ---------- Upload details grid ---------- */
.excel-table-wrapper {
	overflow: auto;
	max-height: 70vh;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.excel-table { border-collapse: separate; border-spacing: 0; min-width: 100%; width: max-content; font-size: .85rem; }
.excel-table th, .excel-table td {
	padding: 6px 10px;
	text-align: center;
	border-right: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	white-space: nowrap;
	background: var(--surface);
}
.excel-table thead th { background: #f1f4f9; color: #4a5568; font-weight: 700; position: sticky; top: 0; z-index: 2; }
.excel-table th:first-child, .excel-table td:first-child { position: sticky; left: 0; z-index: 1; font-weight: 600; background: #f7f9fc; }
.excel-table thead th:first-child { z-index: 3; }
.excel-table tbody tr:hover td { background: #eef4ff; }
.grade-Aplus, .grade-A { background: #dcf3e3 !important; color: #14532d; font-weight: 700; }
.grade-Aminus { background: #e9f7ee !important; color: #14532d; }
.grade-Bplus, .grade-B { background: #e0f0fb !important; color: #0c4a6e; }
.grade-Bminus { background: #eef6fc !important; color: #0c4a6e; }
.grade-Cplus, .grade-C { background: #fdf5d8 !important; color: #78350f; }
.grade-Cminus { background: #fdf8e6 !important; color: #78350f; }
.grade-Dplus, .grade-D { background: #fdebd3 !important; color: #7c2d12; }
.grade-Dminus { background: #fdf1e2 !important; color: #7c2d12; }
.grade-E { background: #fbe1e1 !important; color: #7f1d1d; font-weight: 700; }

/* ---------- Footer ---------- */
.app-footer {
	flex-shrink: 0;
	border-top: 1px solid var(--border);
	background: var(--surface);
	color: var(--muted);
	font-size: .8rem;
	padding: .9rem 0;
}
.app-footer .app-shell { padding-top: 0; padding-bottom: 0; }

/* ---------- Public (student) pages ---------- */
.public-body {
	background: #0f2742 center / cover no-repeat fixed;
	position: relative;
}
.public-body::before {
	content: "";
	position: fixed;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 25, 47, .78), rgba(10, 25, 47, .55));
	z-index: 0;
}
.public-body > * { position: relative; z-index: 1; }
.public-top {
	color: #fff;
	padding: 1rem 0;
}
.public-top a { color: #fff; text-decoration: none; }
.public-top .navbar-brand { color: #fff; }
.public-main { flex: 1 0 auto; display: flex; align-items: flex-start; }
.public-main .app-shell { padding-top: clamp(1rem, 6vh, 4rem); }
.public-card {
	background: var(--surface);
	border-radius: 14px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
	padding: clamp(1.25rem, 3vw, 2.25rem);
	margin: 0 auto;
}
.public-card h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: .35rem; }
.public-card .lead-muted { color: var(--muted); margin-bottom: 1.5rem; }
.public-footer {
	flex-shrink: 0;
	color: rgba(255, 255, 255, .7);
	font-size: .8rem;
	padding: 1rem 0;
	text-align: center;
}
.seg-tabs {
	display: flex;
	background: #eef1f6;
	border-radius: 9px;
	padding: 4px;
	margin-bottom: 1.5rem;
}
.seg-tabs a {
	flex: 1;
	text-align: center;
	padding: .55rem .5rem;
	border-radius: 7px;
	color: var(--muted);
	font-weight: 600;
	font-size: .9rem;
}
.seg-tabs a:hover { text-decoration: none; color: var(--text); }
.seg-tabs a.active { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.id-input { font-size: 1.2rem; letter-spacing: 1px; text-transform: uppercase; height: calc(1.5em + 1.2rem + 2px); }

.result-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: .75rem;
	margin-bottom: 1.25rem;
}
.result-meta .sid { font-size: 1.15rem; font-weight: 700; letter-spacing: .5px; }
.grade-pill {
	display: inline-block;
	min-width: 2.6rem;
	text-align: center;
	padding: .2rem .55rem;
	border-radius: 6px;
	font-weight: 700;
}
.results-table td:first-child { min-width: 160px; }
.results-table.is-ca td:first-child, .results-table.is-ca th:first-child {
	position: sticky;
	left: 0;
	background: #fff;
	z-index: 1;
}
.results-table.is-ca thead th:first-child { z-index: 3; background: #f1f4f9; }

/* ---------- Login ---------- */
.login-wrap {
	flex: 1 0 auto;
	display: grid;
	place-items: center;
	padding: 2rem 1rem;
}
.login-card { width: 100%; max-width: 400px; }

@media print {
	.app-nav, .app-footer, .public-top, .public-footer, .no-print { display: none !important; }
	.public-body { background: #fff !important; }
	.public-body::before { display: none; }
	.public-card { box-shadow: none; padding: 0; }
	.table thead th { position: static; }
}
.d-inline-grid { display: inline-grid !important; }

/* ---------- Subject assignments ---------- */
.assign-layout { display: block; }
.assign-layout.has-side { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.assign-side {
	position: sticky; top: 1rem;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
	padding: .5rem; max-height: calc(100vh - 2rem); overflow-y: auto;
}
.assign-side-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: .4rem .6rem; }
.dep-link { display: block; padding: .5rem .6rem; border-radius: 8px; color: var(--text); line-height: 1.25; }
.dep-link:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.dep-link.active { background: var(--accent-soft); color: var(--brand-2); font-weight: 600; }
.dep-link.is-empty { color: var(--muted); }
.dep-link .dep-name { display: block; font-size: .87rem; }
.dep-link .dep-count { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; }
.dep-link .dep-count em { font-style: normal; color: #b45309; }

.assign-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .75rem; }
.assign-sem select { min-width: 230px; }
.assign-search { position: relative; flex: 1 1 260px; }
.assign-search i { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; }
.assign-search input { padding-left: 2.1rem; }
.assign-group { align-items: center; }
.assign-group-label { font-size: .8rem; color: var(--muted); margin-right: .5rem; align-self: center; }
.assign-group .btn:nth-child(2) { border-top-left-radius: .2rem; border-bottom-left-radius: .2rem; }

.assign-chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .9rem; }
.chip {
	border: 1px solid var(--border); background: var(--surface); color: var(--text);
	border-radius: 999px; padding: .25rem .75rem; font-size: .82rem; cursor: pointer;
}
.chip b { font-weight: 700; margin-left: .15rem; }
.chip:hover { border-color: #c5cedb; }
.chip.active.chip-dark { background: #1c2534; border-color: #1c2534; color: #fff; }
.chip.active.chip-warning { background: #fdf3e1; border-color: #f0b35a; color: #92400e; }
.chip.active.chip-success { background: #e6f6ec; border-color: #6cc48d; color: #15803d; }
.chip.active.chip-danger { background: #fdecec; border-color: #ee8f8f; color: #b91c1c; }

.assign-group-card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
	margin-bottom: .9rem; overflow: hidden;
}
.agc-head { display: flex; align-items: center; gap: .75rem; padding: .6rem .9rem; background: #f8fafc; border-bottom: 1px solid var(--border); }
.assign-group-card.collapsed .agc-head { border-bottom: 0; }
.assign-group-card.collapsed .agc-body { display: none; }
.agc-check { display: flex; width: 20px; justify-content: center; }
.agc-toggle {
	flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .6rem;
	background: none; border: 0; padding: 0; text-align: left; color: var(--text); cursor: pointer;
}
.agc-caret { font-size: .75rem; color: var(--muted); transition: transform .15s; align-self: center; }
.assign-group-card.collapsed .agc-caret { transform: rotate(-90deg); }
.agc-title { font-weight: 700; font-size: 1rem; }
.agc-sub { color: var(--muted); font-size: .85rem; }
.agc-count { color: var(--muted); font-size: .8rem; }
.text-warning-dark { color: #b45309; }
.agc-progress { display: flex; gap: 1rem; }
.agc-bar { width: 110px; font-size: .72rem; color: var(--muted); }
.agc-bar .bar { height: 6px; background: #e9edf3; border-radius: 3px; overflow: hidden; margin-top: 2px; }
.agc-bar .bar i { display: block; height: 100%; background: #f0a53a; }
.agc-bar .bar i.full { background: #22a45d; }
.agc-add { white-space: nowrap; }

.assign-table { table-layout: fixed; }
.assign-table thead th {
	font-size: .7rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted);
	background: #fff; border-top: 0; padding: .45rem .75rem; position: static;
}
.assign-table td { vertical-align: middle; padding: .55rem .75rem; }
.assign-table td:first-child, .assign-table th:first-child { padding-left: .9rem; padding-right: 0; }
.assign-table tr.is-selected td { background: var(--accent-soft); }
.assign-table .code { font-size: .95rem; }
.perm {
	display: inline-block; font-size: .72rem; font-weight: 600; padding: .1rem .45rem; border-radius: 4px;
	background: #f1f3f6; color: #9aa4b2; text-decoration: line-through;
}
.perm.on { background: var(--accent-soft); color: var(--brand-2); text-decoration: none; }
.state { font-size: .82rem; font-weight: 600; white-space: nowrap; }
.state.done { color: #15803d; }
.state.pending { color: #b45309; }
.assign-table .btn-icon { width: 30px; height: 30px; padding: 0; }

.bulk-bar { position: fixed; left: 0; right: 0; bottom: 1rem; z-index: 1030; display: flex; justify-content: center; pointer-events: none; padding: 0 1rem; }
.bulk-bar[hidden] { display: none; }
.bulk-inner {
	pointer-events: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
	background: var(--brand); color: #fff; border-radius: 12px; padding: .55rem .8rem; box-shadow: 0 8px 24px rgba(16, 24, 40, .25);
}
.bulk-count { margin-right: .4rem; }
body.has-bulk-bar .app-main, body.has-bulk-bar main { padding-bottom: 5rem; }

@media (max-width: 991.98px) {
	.assign-layout.has-side { grid-template-columns: minmax(0, 1fr); }
	.assign-side { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: .25rem; }
	.assign-side-title { width: 100%; }
	.dep-link { flex: 0 0 auto; border: 1px solid var(--border); }
	.agc-progress { display: none; }
	.assign-table { table-layout: auto; min-width: 760px; }
	.agc-body { overflow-x: auto; }
}

/* ---- Publishing ---- */
.pub-summary { margin-bottom: 1.25rem; }
.pub-summary-main { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.25rem 2rem; }
.pub-sem { flex: 1 1 320px; display: flex; flex-direction: column; }
.pub-sem select { max-width: 520px; }
.pub-sem-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.pub-meter { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #e9edf3; margin-top: 1rem; }
.pub-meter i { display: block; height: 100%; }
.pub-meter .visible, .dot.visible { background: #22a45d; }
.pub-meter .scheduled, .dot.scheduled { background: #3b82f6; }
.pub-meter .awaiting, .dot.awaiting { background: #f0a53a; }
.pub-meter .hidden, .dot.hidden { background: #c3cad6; }
.pub-legend { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .82rem; margin-top: .45rem; }
.pub-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .2rem; }
.pub-state { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; padding: .15rem .5rem; border-radius: 999px; white-space: nowrap; }
.pub-state.lg { font-size: .9rem; padding: .25rem .7rem; }
.pub-state.visible { background: #e6f6ec; color: #15803d; }
.pub-state.hidden { background: #eef1f5; color: #5b6576; }
.pub-state.awaiting { background: #fdf3e1; color: #92400e; }
.pub-state.scheduled { background: #e8f0fe; color: #1d4ed8; }
.pub-state.returned { background: #fdecec; color: #b91c1c; }
a.pub-state:hover { text-decoration: none; filter: brightness(.97); }
.pub-note { font-size: .75rem; color: var(--muted); margin-top: .15rem; max-width: 260px; }
.dep-link .dep-bar { display: block; height: 3px; background: #e9edf3; border-radius: 2px; margin-top: .3rem; overflow: hidden; }
.dep-link .dep-bar i { display: block; height: 100%; background: #22a45d; }
.agc-actions { display: flex; gap: .35rem; margin-left: auto; white-space: nowrap; }
.chip.active.chip-info { background: #e8f0fe; border-color: #93b4f5; color: #1d4ed8; }
.pub-table .dropdown-menu { font-size: .88rem; }
@media (max-width: 767.98px) {
	.pub-sem-actions { margin-left: 0; }
	.agc-actions .btn { padding: .2rem .45rem; }
}
@media (max-width: 767.98px) {
	.agc-head { flex-wrap: wrap; }
	.agc-toggle { flex: 1 1 100%; min-width: 0; }
	.agc-actions { margin-left: 2rem; }
	.pub-sem { flex-basis: 100%; min-width: 0; }
	.pub-sem select { max-width: 100%; }
}
