/*
 * VYBE Digital Repository — library staff portal.
 * VYBE Technologies, Coimbatore. Navy / blue / orange from the VYBE identity.
 */
.vdr-app, .vdr-login, .vdr-loginbox {
	--vdr-navy: #0b1a3a;
	--vdr-navy-2: #13254d;
	--vdr-blue: #2563eb;
	--vdr-blue-dark: #1d4ed8;
	--vdr-orange: #f26b1d;
	--vdr-bg: #f3f5f9;
	--vdr-card: #ffffff;
	--vdr-line: #e2e7ef;
	--vdr-ink: #172033;
	--vdr-muted: #5d6879;
	--vdr-ok: #15803d;
	--vdr-warn: #a16207;
	--vdr-bad: #b42318;
	--vdr-radius: 12px;
	--ndr-ink: var(--vdr-ink); --ndr-muted: var(--vdr-muted); --ndr-line: var(--vdr-line); --ndr-panel: #f2f5f8;
	--ndr-accent: var(--vdr-blue); --ndr-accent-dark: var(--vdr-blue-dark); --ndr-open: #1a7f4b; --ndr-campus: #1f5f8c;
	--ndr-members: #5a3f8c; --ndr-embargo: #8a6a12; --ndr-closed: #9a3b2e; --ndr-spine: #5b6675;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Tamil", "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
	color: var(--vdr-ink);
	line-height: 1.5;
	font-size: 15px;
}
.vdr-app *, .vdr-app *::before, .vdr-app *::after, .vdr-login *, .vdr-login *::before, .vdr-login *::after { box-sizing: border-box; }
.vdr-app [hidden], .vdr-login [hidden] { display: none !important; }
.vdr-app a { color: var(--vdr-blue); text-underline-offset: .15em; }
.vdr-app a:hover { color: var(--vdr-blue-dark); }
.vdr-app :focus-visible, .vdr-login :focus-visible { outline: 2px solid var(--vdr-blue); outline-offset: 2px; border-radius: 4px; }
.vdr-app h1, .vdr-app h2, .vdr-app h3 { color: var(--vdr-ink); font-family: inherit; letter-spacing: -.01em; }
.vdr-app h2 { font-size: 1.05rem; margin: 0 0 .8rem; line-height: 1.3; }
.vdr-app h3 { font-size: .95rem; margin: 1rem 0 .4rem; }
.vdr-app p { margin: 0 0 .7rem; }
.vdr-app .ndr-i { flex: none; }
.vdr-app small { display: block; color: var(--vdr-muted); font-size: .8rem; }
.vdr-app .ndr-sr, .vdr-login .ndr-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

body.vdr-portal-body { margin: 0; background: var(--vdr-bg, #f3f5f9); }

/* ------------------------------------------------------------ buttons */
.vdr-btn, .vdr-app button.vdr-btn, .vdr-login button.vdr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
	padding: .6rem 1.05rem; border: 1px solid var(--vdr-blue); border-radius: 8px;
	background: var(--vdr-blue); color: #fff !important; font: inherit; font-weight: 600; font-size: .92rem; line-height: 1.2;
	text-decoration: none !important; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s;
}
.vdr-btn:hover { background: var(--vdr-blue-dark); border-color: var(--vdr-blue-dark); }
.vdr-btn .ndr-i { width: 16px; height: 16px; }
.vdr-btn--quiet, .vdr-app button.vdr-btn--quiet { background: #fff; color: var(--vdr-ink) !important; border-color: #cfd6e2; }
.vdr-btn--quiet:hover { background: #f4f7fb; border-color: var(--vdr-blue); }
.vdr-btn--danger, .vdr-app button.vdr-btn--danger { background: #fff; color: var(--vdr-bad) !important; border-color: #f0c4bf; }
.vdr-btn--danger:hover { background: #fdf2f1; border-color: var(--vdr-bad); }
.vdr-btn--block { width: 100%; padding: .75rem 1rem; font-size: 1rem; }
.vdr-btn[disabled] { opacity: .5; cursor: not-allowed; }
.vdr-iconbtn { border: 1px solid var(--vdr-line); background: #fff; border-radius: 6px; width: 1.9rem; height: 1.9rem; cursor: pointer; font-size: 1rem; line-height: 1; margin-right: .2rem; }
.vdr-check, .vdr-radio { display: flex !important; align-items: center; gap: .5rem; font-weight: 500 !important; font-size: .92rem; margin: .3rem 0; cursor: pointer; }
.vdr-check input, .vdr-radio input { width: 1rem; height: 1rem; margin: 0; flex: none; }

/* ------------------------------------------------------------ alerts */
.vdr-alert { padding: .8rem 1rem; border-radius: 10px; margin: 0 0 1.1rem; border: 1px solid; font-size: .93rem; }
.vdr-alert ul { margin: .3rem 0 0 1.2rem; }
.vdr-alert--ok { background: #ecfdf3; border-color: #abefc6; color: #05603a; }
.vdr-alert--bad { background: #fef3f2; border-color: #fecdca; color: #912018; }
.vdr-alert--warn { background: #fffaeb; border-color: #fedf89; color: #93370d; }

/* ------------------------------------------------------------ sign in */
.vdr-login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2.5rem 1rem; background: radial-gradient(1200px 600px at 10% -10%, #dfe7f7 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #fde5d6 0%, transparent 55%), var(--vdr-bg); }
.vdr-app--embedded ~ .vdr-login, .entry-content .vdr-login { min-height: 0; border-radius: 16px; }
.vdr-login__card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--vdr-line); border-radius: 18px; padding: 2rem 2rem 1.5rem; box-shadow: 0 24px 60px -30px rgba(11, 26, 58, .35); }
.vdr-login__brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; margin-bottom: 1.3rem; }
.vdr-login__lib { margin: .4rem 0 0; font-weight: 700; font-size: 1.05rem; }
.vdr-login__inst { margin: 0; color: var(--vdr-muted); font-size: .88rem; }
.vdr-login h1 { font-size: 1.45rem; margin: 0 0 .3rem; text-align: center; letter-spacing: -.02em; }
.vdr-login__sub { text-align: center; color: var(--vdr-muted); margin: 0 0 1.4rem; font-size: .93rem; }
.vdr-login__form p { margin: 0 0 1rem; }
.vdr-login__form label:not(.vdr-check), .vdr-loginbox label:not(.vdr-check) { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.vdr-login input[type=text], .vdr-login input:not([type]), .vdr-login input[type=password], .vdr-loginbox input:not([type=checkbox]):not([type=hidden]) {
	width: 100%; padding: .7rem .8rem; border: 1px solid #c7cfdb; border-radius: 9px; font: inherit; font-size: 1rem; background: #fff; color: var(--vdr-ink);
}
.vdr-login input:focus, .vdr-loginbox input:focus { border-color: var(--vdr-blue); outline: 3px solid rgba(37, 99, 235, .18); outline-offset: 0; }
.vdr-pw { position: relative; display: block; }
.vdr-pw input { padding-right: 4.2rem !important; }
.vdr-pw__toggle { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); border: 0; background: #eef2f8; color: var(--vdr-ink); border-radius: 6px; padding: .3rem .55rem; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.vdr-login__links { text-align: center; margin: .2rem 0 0; font-size: .9rem; }
.vdr-login__foot { margin: 1.3rem 0 .4rem; color: var(--vdr-muted); font-size: .9rem; text-align: center; }
.vdr-login__btns { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.vdr-login .vdr-alert { margin-bottom: 1rem; }
.vdr-loginbox { max-width: 360px; padding: 1.2rem; border: 1px solid #e2e7ef; border-radius: 12px; background: #fff; }
.vdr-loginbox h2 { margin-top: 0; }
.vdr-loginbox p { margin: 0 0 .8rem; }

/* Logo */
.vdr-logo { display: block; max-width: 220px; height: auto; object-fit: contain; }
.vdr-logo--icon { border-radius: 12px; }
.vdr-logo--initials { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--vdr-navy), var(--vdr-blue)); color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; }

/* Credit */
.vdr-credit { margin: .6rem 0 0; font-size: .78rem; }
.vdr-credit a { display: inline-flex; align-items: center; gap: .4rem; color: var(--vdr-muted, #5d6879) !important; text-decoration: none; }
.vdr-credit a:hover { color: var(--vdr-ink, #172033) !important; }

/* ------------------------------------------------------------ app layout */
.vdr-app { display: grid; grid-template-columns: 264px minmax(0, 1fr); background: var(--vdr-bg); }
/* The sidebar column stays navy however long the page is. */
.vdr-app--full { min-height: 100vh; background: linear-gradient(to right, var(--vdr-navy) 264px, var(--vdr-bg) 264px); }
/* Inside a theme page: break out of narrow content columns so the dashboard has room. */
.vdr-app--embedded { border: 1px solid var(--vdr-line); border-radius: 16px; overflow: hidden; grid-template-columns: 232px minmax(0, 1fr); position: relative; left: 50%; width: min(1240px, calc(100vw - 2rem)); max-width: none !important; transform: translateX(-50%); margin-block: 1rem; }
.vdr-side { background: var(--vdr-navy); color: #c9d3e6; display: flex; flex-direction: column; min-width: 0; }
.vdr-app--full .vdr-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.vdr-side__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 1.1rem 1rem 1rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.vdr-side__brand { display: flex; align-items: center; gap: .7rem; color: #fff !important; text-decoration: none !important; min-width: 0; }
.vdr-side__brand .vdr-logo { max-width: 42px; max-height: 42px; border-radius: 9px; background: #fff; padding: 3px; }
.vdr-side__brand .vdr-logo--initials { width: 40px; height: 40px; font-size: .95rem; border-radius: 10px; padding: 0; background: linear-gradient(135deg, #1e3a8a, var(--vdr-blue)); }
.vdr-side__brand strong { display: block; font-size: .95rem; line-height: 1.25; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.vdr-side__brand small { display: block; color: #93a3c2; font-size: .75rem; }
.vdr-side__toggle { display: none; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; border-radius: 8px; padding: .4rem; cursor: pointer; }
.vdr-nav { display: flex; flex-direction: column; gap: 2px; padding: .8rem .6rem; }
.vdr-nav a { display: flex; align-items: center; gap: .7rem; padding: .62rem .75rem; border-radius: 9px; color: #c9d3e6 !important; text-decoration: none !important; font-size: .92rem; font-weight: 500; position: relative; }
.vdr-nav a .ndr-i { width: 18px; height: 18px; opacity: .85; }
.vdr-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff !important; }
.vdr-nav a.is-current { background: rgba(255, 255, 255, .1); color: #fff !important; font-weight: 600; }
.vdr-nav a.is-current::before { content: ""; position: absolute; left: -.6rem; top: .55rem; bottom: .55rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--vdr-orange); }
.vdr-nav span { flex: 1; }
.vdr-nav hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .08); margin: .6rem .4rem; }
.vdr-badge { font-style: normal; background: var(--vdr-orange); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .08rem .45rem; min-width: 1.4rem; text-align: center; }
.vdr-side__foot { margin-top: auto; padding: 1rem 1.1rem 1.2rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }
.vdr-user { display: flex; align-items: center; gap: .6rem; }
.vdr-user__av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #233a6b; color: #fff; font-weight: 700; font-size: .85rem; flex: none; }
.vdr-user strong { display: block; color: #fff; font-size: .88rem; }
.vdr-user small { color: #93a3c2; }
.vdr-user__links { margin: .6rem 0 .8rem; }
.vdr-side__foot a { color: #c9d3e6 !important; }
.vdr-side__foot a:hover { color: #fff !important; }
.vdr-support { display: flex; gap: .5rem; padding: .6rem .7rem; border-radius: 9px; background: rgba(255, 255, 255, .05); line-height: 1.45; margin: 0 0 .5rem; }
.vdr-support .ndr-i { width: 16px; height: 16px; margin-top: 2px; color: var(--vdr-orange); }
.vdr-side .vdr-credit a { color: #8796b4 !important; }

.vdr-main { padding: 1.6rem 2rem 3rem; min-width: 0; }
.vdr-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem 1.5rem; margin: 0 0 1.4rem; }
.vdr-top__kicker { margin: 0 0 .15rem; color: var(--vdr-muted); font-size: .85rem; font-weight: 500; }
.vdr-top h1 { margin: 0; font-size: 1.65rem; line-height: 1.2; letter-spacing: -.02em; }
.vdr-top__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.vdr-lede { color: var(--vdr-muted); max-width: 75ch; }

/* Cards */
.vdr-card { background: var(--vdr-card); border: 1px solid var(--vdr-line); border-radius: var(--vdr-radius); padding: 1.2rem 1.3rem; margin: 0 0 1.2rem; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); min-width: 0; }
.vdr-card--flush { padding: 0; overflow: hidden; }
.vdr-card--flush > .vdr-empty, .vdr-pad { padding: 1rem 1.3rem; margin: 0; }
.vdr-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.vdr-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 1.2rem; }
.vdr-empty { color: var(--vdr-muted); display: flex; align-items: center; gap: .5rem; }
.vdr-empty .ndr-i { color: var(--vdr-ok); }
.vdr-empty--big { font-size: 1.05rem; padding: 1.5rem 0; justify-content: center; }
.vdr-count { margin: 0; padding: .8rem 1.1rem; border-bottom: 1px solid var(--vdr-line); color: var(--vdr-muted); font-size: .88rem; }

/* Stat cards */
.vdr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 1rem; margin: 0 0 1.3rem; }
.vdr-stat { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon n" "icon l" "note note"; column-gap: .85rem; align-items: center; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--vdr-line); border-radius: var(--vdr-radius); text-decoration: none !important; color: var(--vdr-ink) !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: border-color .15s, box-shadow .15s; }
a.vdr-stat:hover { border-color: #b7c4d9; box-shadow: 0 6px 18px -10px rgba(11, 26, 58, .35); }
.vdr-stat__icon { grid-area: icon; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #eef3fd; color: var(--vdr-blue); }
.vdr-stat__icon .ndr-i { width: 20px; height: 20px; }
.vdr-stat__n { grid-area: n; font-size: 1.6rem; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.vdr-stat__l { grid-area: l; color: var(--vdr-muted); font-size: .85rem; }
.vdr-stat__note { grid-area: note; font-size: .78rem; color: var(--vdr-muted); margin-top: .5rem; padding-top: .45rem; border-top: 1px dashed var(--vdr-line); }
.vdr-stat.is-hot { border-color: #f9c5a3; background: linear-gradient(180deg, #fff 0%, #fff8f3 100%); }
.vdr-stat.is-hot .vdr-stat__icon { background: #fde8da; color: #c2410c; }

/* Bar chart */
.vdr-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: .4rem; height: 190px; padding-top: .3rem; }
.vdr-bars__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.vdr-bars__bar { width: 70%; max-width: 30px; background: linear-gradient(180deg, var(--vdr-blue) 0%, #3b82f6 100%); border-radius: 5px 5px 2px 2px; min-height: 0; }
.vdr-bars__col:last-child .vdr-bars__bar { background: linear-gradient(180deg, var(--vdr-orange), #f78a4a); }
.vdr-bars__n { font-size: .7rem; color: var(--vdr-muted); margin-bottom: .25rem; font-variant-numeric: tabular-nums; }
.vdr-bars__m { font-size: .72rem; color: var(--vdr-muted); margin-top: .35rem; }
.vdr-bars-empty { margin: -.4rem 0 0; font-size: .85rem; color: var(--vdr-muted); text-align: center; }

/* Lists */
.vdr-todo { margin: 0 0 .5rem; padding: 0; list-style: none; }
.vdr-todo li { padding: .55rem 0 .55rem 1.1rem; border-bottom: 1px solid var(--vdr-line); position: relative; }
.vdr-todo li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 7px; height: 7px; border-radius: 50%; background: var(--vdr-orange); }
.vdr-quick { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.vdr-quick a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .7rem; border: 1px solid var(--vdr-line); border-radius: 8px; text-decoration: none; font-size: .88rem; color: var(--vdr-ink) !important; }
.vdr-quick a:hover { border-color: var(--vdr-blue); }
.vdr-quick .ndr-i { width: 16px; height: 16px; color: var(--vdr-blue); }
ol.vdr-toplist { margin: 0; padding: 0; counter-reset: t; display: block; }
ol.vdr-toplist li { counter-increment: t; display: flex; gap: .8rem; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--vdr-line); }
ol.vdr-toplist li::before { content: counter(t); font-weight: 700; color: var(--vdr-orange); width: 1.2rem; }
ol.vdr-toplist li a { flex: 1; }
ol.vdr-toplist li span { color: var(--vdr-muted); font-size: .85rem; white-space: nowrap; }

/* Tables */
.vdr-table-wrap { overflow-x: auto; position: relative; } /* keeps screen-reader-only labels inside the scroll box */
.vdr-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.vdr-table th, .vdr-table td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--vdr-line); vertical-align: top; }
.vdr-table thead th { background: #f7f9fc; color: var(--vdr-muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.vdr-table tbody tr:hover td { background: #fafbfd; }
.vdr-table tfoot th, .vdr-table tfoot td { font-weight: 700; border-top: 2px solid var(--vdr-line); }
.vdr-t-title a { font-weight: 600; color: var(--vdr-ink); text-decoration: none; }
.vdr-t-title a:hover { color: var(--vdr-blue); text-decoration: underline; }
.vdr-t-title { min-width: 16rem; }
.vdr-note { color: var(--vdr-warn) !important; }
.vdr-num, .vdr-table--num td { font-variant-numeric: tabular-nums; }
.vdr-table--num td { text-align: right; }
.vdr-table--num td:first-child:not(:only-child) { text-align: left; }
.vdr-table--num thead th:not(:first-child):not(:nth-child(2):last-child) { text-align: right; }
.vdr-card table + h2 { margin-top: 1.6rem; }
.vdr-table--plain th, .vdr-table--plain td { padding: .45rem .2rem; }
.vdr-table--plain th { font-weight: 500; }
.vdr-table--plain tr.is-top th { font-weight: 700; }
.vdr-table--plain tr.is-kid th { padding-left: calc(.2rem + var(--d, 1) * 1.1rem); color: var(--vdr-muted); }
.vdr-nowrap { white-space: nowrap; }
.vdr-acts { white-space: nowrap; text-align: right !important; }
.vdr-acts a { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 7px; color: var(--vdr-muted) !important; }
.vdr-acts a:hover { background: #eef3fd; color: var(--vdr-blue) !important; }
.vdr-reason { max-width: 22rem; }
.vdr-decide textarea { width: 100%; min-width: 14rem; padding: .4rem .5rem; border: 1px solid #c7cfdb; border-radius: 7px; font: inherit; font-size: .85rem; margin-bottom: .4rem; }
.vdr-decide span { display: flex; gap: .4rem; }

/* Status pills */
.vdr-pill { display: inline-block; padding: .14rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; background: #eef1f5; color: #475467; }
.vdr-pill--publish { background: #ecfdf3; color: #067647; }
.vdr-pill--pending { background: #fffaeb; color: #b54708; }
.vdr-pill--draft { background: #f2f4f7; color: #475467; }
.vdr-pill--ndr_withdrawn { background: #fef3f2; color: #b42318; }
.vdr-pill--private { background: #f4f3ff; color: #5925dc; }

/* Sub navigation and filters */
.vdr-subnav { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 1rem; }
.vdr-subnav a { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; text-decoration: none; color: var(--vdr-muted) !important; font-size: .88rem; font-weight: 500; border: 1px solid transparent; }
.vdr-subnav a:hover { background: #fff; border-color: var(--vdr-line); }
.vdr-subnav a[aria-current] { background: var(--vdr-navy); color: #fff !important; }
.vdr-subnav em { font-style: normal; font-size: .78rem; opacity: .75; }
.vdr-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1rem; }
.vdr-filters select, .vdr-filters input[type=search] { padding: .55rem .7rem; border: 1px solid #c7cfdb; border-radius: 8px; font: inherit; font-size: .9rem; background-color: #fff; color: var(--vdr-ink); }
.vdr-filters__q { position: relative; flex: 1 1 280px; display: block; }
.vdr-filters__q .ndr-i { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--vdr-muted); width: 16px; height: 16px; }
.vdr-filters__q input[type=search] { width: 100%; padding-left: 2.2rem; }
.vdr-filters select { max-width: 15rem; }
.vdr-pages { display: flex; flex-wrap: wrap; gap: .3rem; padding: .9rem 1.1rem; }
.vdr-pages a, .vdr-pages span { min-width: 2.2rem; padding: .35rem .6rem; text-align: center; border: 1px solid var(--vdr-line); border-radius: 7px; text-decoration: none; font-size: .88rem; }
.vdr-pages span[aria-current] { background: var(--vdr-navy); border-color: var(--vdr-navy); color: #fff; font-weight: 700; }

/* Review queue */
.vdr-review { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 1.2rem; border-left: 4px solid var(--ndr-spine); }
.vdr-review h2 { font-size: 1.12rem; margin: .2rem 0 .3rem; }
.vdr-review h2 a { color: var(--vdr-ink); text-decoration: none; }
.vdr-review h2 a:hover { color: var(--vdr-blue); text-decoration: underline; }
.vdr-review__meta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; color: var(--vdr-muted); font-size: .84rem; margin: 0; }
.vdr-review__who { font-weight: 500; margin: 0 0 .5rem; }
.vdr-review__abs { color: #3b4658; font-size: .92rem; max-width: 80ch; }
.vdr-review__files { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.vdr-review__files li { max-width: 100%; min-width: 0; }
.vdr-review__files a { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem; background: #f4f7fb; border-radius: 7px; font-size: .86rem; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
.vdr-review__files small { display: inline; }
.vdr-review__files .ndr-i { width: 15px; height: 15px; }
.vdr-review__warn { color: var(--vdr-warn); font-size: .88rem; font-weight: 600; }
.vdr-review__by { color: var(--vdr-muted); font-size: .82rem; margin: 0; }
.vdr-review__acts { display: flex; flex-direction: column; gap: .5rem; }
.vdr-review__acts form, .vdr-review__acts .vdr-btn { width: 100%; }
.vdr-review__acts form .vdr-btn { width: 100%; }
.vdr-return summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--vdr-bad); padding: .4rem 0; }
.vdr-return label { display: block; font-size: .85rem; font-weight: 600; margin: .3rem 0; }
.vdr-return textarea { width: 100%; padding: .5rem; border: 1px solid #c7cfdb; border-radius: 8px; font: inherit; font-size: .88rem; margin-bottom: .5rem; }

/* Editor */
.vdr-editor__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.2rem; align-items: start; }
.vdr-editor__side { position: sticky; top: 1rem; }
.vdr-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 1.1rem; }
.vdr-form-grid > p { margin: .35rem 0 .55rem; }
.vdr-form-grid .ndr-wide { grid-column: 1 / -1; }
.vdr-showall { align-self: end; }
.vdr-group { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--vdr-line); }
.vdr-group h3 { margin: 0 0 .3rem; font-size: .9rem; color: var(--vdr-muted); text-transform: uppercase; letter-spacing: .05em; }
.vdr-app .ndr-form label { font-size: .88rem; }
.vdr-app .ndr-form input[type=text], .vdr-app .ndr-form input[type=url], .vdr-app .ndr-form input[type=date], .vdr-app .ndr-form input[type=email], .vdr-app .ndr-form input:not([type]), .vdr-app .ndr-form select, .vdr-app .ndr-form textarea, .vdr-app .vdr-form input:not([type=checkbox]):not([type=radio]):not([type=file]), .vdr-app .vdr-form select {
	width: 100%; padding: .55rem .65rem; border: 1px solid #c7cfdb; border-radius: 8px; font: inherit; font-size: .92rem; background-color: #fff; color: var(--vdr-ink);
}
.vdr-app .ndr-form input:focus, .vdr-app .ndr-form select:focus, .vdr-app .ndr-form textarea:focus { border-color: var(--vdr-blue); outline: 3px solid rgba(37, 99, 235, .15); outline-offset: 0; }
.vdr-app .ndr-help, .vdr-app .vdr-help { display: block; font-size: .8rem; color: var(--vdr-muted); margin-top: .2rem; font-weight: 400; }
.vdr-savebox .vdr-radio { padding: .45rem .6rem; border: 1px solid var(--vdr-line); border-radius: 8px; margin: 0 0 .4rem; }
.vdr-savebox .vdr-radio:has(input:checked) { border-color: var(--vdr-blue); background: #f3f7ff; }
.vdr-facts { margin: 1rem 0 0; font-size: .85rem; }
.vdr-facts dt { color: var(--vdr-muted); margin-top: .5rem; }
.vdr-facts dd { margin: 0; word-break: break-word; }
.vdr-terms { max-height: 260px; overflow: auto; border: 1px solid var(--vdr-line); border-radius: 8px; padding: .4rem .6rem; }
.vdr-terms .vdr-check { padding-left: calc(var(--d, 0) * 1.1rem); margin: .25rem 0; font-size: .88rem; }
/* Files in the editor: one card per file (fits the narrow editor column). */
.vdr-files thead { display: none; }
.vdr-files, .vdr-files tbody { display: block; }
.vdr-files tr { display: grid; grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1fr) 9.5rem auto; grid-template-areas: "main name name name tools" "main label access embargo dl"; gap: .35rem .8rem; padding: .8rem .2rem; border-bottom: 1px solid var(--vdr-line); align-items: end; }
.vdr-files tbody tr:hover td { background: none; }
.vdr-files td { display: block; padding: 0; border: 0; }
.vdr-files td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 600; color: var(--vdr-muted); margin-bottom: .2rem; }
.vdr-files .vdr-f-main { grid-area: main; align-self: start; padding-top: .2rem; }
.vdr-files .vdr-f-name { grid-area: name; min-width: 0; }
.vdr-files .vdr-f-tools { grid-area: tools; align-self: start; }
.vdr-files td:nth-child(3) { grid-area: label; }
.vdr-files td:nth-child(4) { grid-area: access; }
.vdr-files td:nth-child(5) { grid-area: embargo; }
.vdr-files td:nth-child(6) { grid-area: dl; padding-bottom: .45rem; }
.vdr-files input:not([type=checkbox]):not([type=radio]), .vdr-files select { width: 100%; padding: .45rem .55rem; border: 1px solid #c7cfdb; border-radius: 7px; font: inherit; font-size: .88rem; background-color: #fff; }
@media (max-width: 700px) {
	.vdr-files tr { grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "main name name" "main tools tools" "main label label" "main access embargo" "main dl dl"; }
}
.vdr-remove { display: inline-flex !important; align-items: center; gap: .3rem; color: var(--vdr-bad); font-size: .82rem !important; margin-left: .3rem; }
.vdr-filetools { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 0; }
.vdr-fileadd { margin-top: 1rem; padding: 1rem; background: #f7f9fc; border: 1px dashed #c7cfdb; border-radius: 10px; }
.vdr-fileadd > p { margin: 0 0 .7rem; max-width: 36rem; }
.vdr-pool summary { cursor: pointer; font-weight: 600; margin: .3rem 0 .5rem; }
.vdr-danger__row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.vdr-danger details summary { cursor: pointer; font-weight: 600; }
.vdr-danger details form { display: grid; gap: .5rem; margin-top: .6rem; max-width: 30rem; }
.vdr-danger input { padding: .5rem .6rem; border: 1px solid #c7cfdb; border-radius: 8px; font: inherit; }

/* Import / export inside the portal */
.vdr-app .ndr-steps { padding-left: 1.2rem; }
.vdr-app .ndr-steps li { margin-bottom: .5rem; }
.vdr-app .vdr-form p { margin: 0 0 .8rem; }
.vdr-app .vdr-form label:not(.ndr-check) { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .25rem; }
.vdr-app .vdr-checks { display: grid; gap: .2rem; }
.vdr-app .ndr-check { display: flex !important; gap: .5rem; align-items: flex-start; font-weight: 400 !important; }
.vdr-app .ndr-progress { height: 8px; background: #e3e8ef; border-radius: 4px; overflow: hidden; margin: 10px 0; }
.vdr-app .ndr-progress span { display: block; height: 100%; width: 0; background: var(--vdr-blue); transition: width .3s; }
.vdr-app .ndr-tool-status { font-weight: 600; }
.vdr-app .ndr-import-run .ndr-fail td { background: #fef3f2; }
.vdr-app .ndr-dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 1.2rem; }
.vdr-app .vdr-bulk__step { border-radius: var(--vdr-radius); border-color: var(--vdr-line); }
.vdr-app .vdr-bulk { --vb-accent: var(--vdr-blue); max-width: none; }

/* ------------------------------------------------------------ small screens */
@media (max-width: 1100px) {
	.vdr-editor__grid { grid-template-columns: minmax(0, 1fr); }
	.vdr-editor__side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 1.2rem; }
}
@media (max-width: 900px) {
	.vdr-app, .vdr-app--embedded { grid-template-columns: minmax(0, 1fr); }
	.vdr-app--full { background: var(--vdr-bg); }
	.vdr-app--full .vdr-side { position: sticky; top: 0; height: auto; z-index: 50; overflow: visible; }
	.vdr-side__toggle { display: inline-grid; place-items: center; }
	.vdr-nav, .vdr-side__foot { display: none; }
	.vdr-app.is-nav-open .vdr-nav, .vdr-app.is-nav-open .vdr-side__foot { display: flex; }
	.vdr-app.is-nav-open .vdr-side__foot { display: block; }
	.vdr-app.is-nav-open .vdr-side { max-height: 100vh; overflow-y: auto; }
	.vdr-side__head { padding: .7rem 1rem; }
	.vdr-main { padding: 1.2rem 1rem 2.5rem; }
	.vdr-top h1 { font-size: 1.35rem; }
	.vdr-review { grid-template-columns: minmax(0, 1fr); }
	.vdr-review__acts { flex-direction: row; flex-wrap: wrap; }
	.vdr-review__acts form, .vdr-review__acts .vdr-btn { width: auto; }
	.vdr-grid-2, .vdr-app .ndr-dash { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	.vdr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
	.vdr-stat { grid-template-columns: minmax(0, 1fr); grid-template-areas: "n" "l" "note"; padding: .8rem; }
	.vdr-stat__icon { display: none; }
	.vdr-stat__n { font-size: 1.35rem; }
	.vdr-bars { gap: .15rem; height: 160px; }
	.vdr-bars__n { font-size: .6rem; }
	.vdr-login__card { padding: 1.5rem 1.2rem 1.2rem; }
	.vdr-top__actions { width: 100%; }
	.vdr-filters select { max-width: none; flex: 1 1 45%; }
}
@media print {
	.vdr-side, .vdr-top__actions, .vdr-filters, .vdr-subnav { display: none !important; }
	.vdr-app { display: block; background: #fff; }
}
@media (prefers-reduced-motion: reduce) { .vdr-btn, .vdr-stat, .vdr-app .ndr-progress span { transition: none; } }
.vdr-card .ndr-import-run + p { margin-top: 1rem; }

/* Faculty, NAAC / AQAR, monthly email (2.1) */
.vdr-fac { display: flex; align-items: center; gap: .65rem; }
.vdr-fac .ndr-profile__photo { width: 36px; height: 36px; font-size: .78rem; border-radius: 50%; flex: none; }
.vdr-app .ndr-profile__photo--none { display: grid; place-items: center; background: linear-gradient(135deg, #1e3a8a, var(--vdr-blue)); color: #fff; font-weight: 700; }
.vdr-cands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 1.2rem; }
.vdr-cands li { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--vdr-line); }
.vdr-cands small { display: inline; margin-left: .3rem; }
.vdr-cands a { font-size: .85rem; white-space: nowrap; }
.vdr-facform .vdr-card { max-width: 920px; }
.vdr-mail__acts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.vdr-mail__acts form { margin: 0; }
.vdr-checks-card { border-color: #fedf89; background: linear-gradient(180deg, #fff 0%, #fffcf2 100%); }
.vdr-checks-card h2 { display: flex; align-items: center; gap: .5rem; }
.vdr-table.vdr-naac td { min-width: 9rem; }
.vdr-table.vdr-naac td:first-child { min-width: 14rem; }
.vdr-table--num td.vdr-txt, .vdr-table--num th.vdr-txt { text-align: left !important; }
.vdr-table.vdr-naac small a { color: var(--vdr-muted) !important; font-weight: 400; overflow-wrap: anywhere; }
.vdr-filters label:not(.vdr-check):not(.vdr-filters__q) { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--vdr-muted); }
