/* ==========================================================
   IIT Bhubaneswar – "My library" workspace pages and account popups
   Loaded from commonhead (after iit-base/iit-app).
   Pages: /bookmark, /userdocuments, /sharewithpeers, /requestarticle, /feedback  (body.iit-ws)
   Popups: Search history (#searchHistoryModal), Your comments (#yourCommentsModal) – the .ix-* rules
   below the workspace section come from the Azim/IMTG popups, re-tokened to the IIT palette.
   Card markup is the pages' own (.card > .card-body > .card-title / .card-text / .btn): the search
   filter on each page hides a .card, so cards stay the list items and the old grid columns are dissolved.
   ========================================================== */

/* ---------- Page band ---------- */

.iit-ws #content > .container-fluid {
	padding-top: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.iit-ws-head {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	margin: 0 0 0;
	padding: 28px 32px 64px;
	color: #fff;
	overflow: hidden;
	background:
		radial-gradient(600px 260px at 90% 0%, rgba(0, 147, 221, 0.22), transparent 65%),
		linear-gradient(180deg, var(--iit-slate-deep), var(--iit-slate));
}

.iit-ws-head::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--iit-grid);
	background-size: 28px 28px;
	-webkit-mask-image: linear-gradient(180deg, #000, transparent);
	mask-image: linear-gradient(180deg, #000, transparent);
	pointer-events: none;
}

.iit-ws-head > * {
	position: relative;
}

.iit-ws .iit-ws-head .iit-ws-menu,
.iit-ws #content .iit-ws-head #sidebarCollapse {
	align-self: start;
	width: 40px;
	height: 40px;
	padding: 0 !important;
	border-radius: 8px !important;
	border: 1px solid rgba(255, 255, 255, 0.18) !important;
	background: rgba(255, 255, 255, 0.06) !important;
	color: #fff !important;
	box-shadow: none !important;
}

.iit-ws-kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-family: var(--iit-mono);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8fd3f7;
}

.iit-ws-kicker::before {
	content: "";
	width: 7px;
	height: 7px;
	background: var(--iit-sky);
}

.iit-ws-title h1 {
	margin: 8px 0 0;
	font-family: var(--iit-sans);
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.15;
	color: #fff;
}

.iit-ws-title > p:last-child {
	max-width: 640px;
	margin: 8px 0 0;
	font-size: 14.5px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.72);
}

.iit-ws-stat {
	min-width: 110px;
	padding: 12px 18px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	text-align: right;
}

.iit-ws-stat b {
	display: block;
	font-family: var(--iit-mono);
	font-size: 30px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
}

.iit-ws-stat b small {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.55);
}

.iit-ws-stat span {
	display: block;
	margin-top: 6px;
	font-family: var(--iit-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #8fd3f7;
}

/* ---------- Toolbar (overlaps the band) ---------- */

.iit-ws-toolbar {
	position: relative;
	z-index: 2;
	display: flex;
	gap: 10px;
	align-items: center;
	margin: -36px 32px 0;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--iit-line);
	border-top: 3px solid var(--iit-sky);
	border-radius: 10px;
	box-shadow: 0 22px 44px -30px rgba(12, 17, 26, 0.5);
}

.iit-ws-search {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0 14px;
	height: 44px;
	border: 1.5px solid #cfd8e3;
	border-radius: 8px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.iit-ws-search:focus-within {
	border-color: var(--iit-sky);
	box-shadow: 0 0 0 4px rgba(0, 147, 221, 0.16);
}

.iit-ws-search i {
	color: var(--iit-subtle);
}

.iit-ws .iit-ws-search input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0 !important;
	outline: 0;
	box-shadow: none !important;
	background: transparent !important;
	font-family: var(--iit-sans);
	font-size: 15px;
	color: var(--iit-ink);
	padding: 0 !important;
}

.iit-ws .iit-ws-toolbar .iit-ws-add {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	margin: 0 !important;
	padding: 0 20px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: var(--iit-sky) !important;
	color: #fff !important;
	font-family: var(--iit-sans);
	font-size: 14.5px;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: none !important;
}

.iit-ws .iit-ws-toolbar .iit-ws-add:hover {
	background: var(--iit-sky-dark) !important;
}

/* ---------- List body ---------- */

.iit-ws .iit-ws-body {
	margin: 20px 32px 0 !important;
}

.iit-ws .iit-ws-body > .pg-grid,
.iit-ws #bookmarkTable,
.iit-ws #documentTable {
	display: flex !important;
	flex-direction: column;
	flex-wrap: nowrap !important;
	gap: 10px;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
}

/* the old 3-up grid columns are dissolved so each .card is a row */
.iit-ws .pg-grid > [class*="col-"] {
	display: contents;
}

.iit-ws .pg-grid .card {
	height: auto !important;
	margin: 0 !important;
	border: 1px solid var(--iit-line) !important;
	border-radius: 10px !important;
	background: #fff;
	box-shadow: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.iit-ws .pg-grid .card:hover {
	border-color: #c3d0de !important;
	box-shadow: 0 16px 32px -24px rgba(12, 17, 26, 0.5) !important;
}

.iit-ws .pg-grid .card-body {
	position: relative;
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	min-height: 76px;
	padding: 14px 16px 14px 76px !important;
}

/* the type icon at the start of the title becomes a tile */
.iit-ws .pg-grid .card-title {
	flex: 1 1 100%;
	margin: 0 !important;
	font-family: var(--iit-sans);
	font-size: 15.5px !important;
	font-weight: 600 !important;
	line-height: 1.35;
	color: var(--iit-ink) !important;
}

.iit-ws .pg-grid .card-title > i:first-child {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 9px;
	background: var(--iit-sky-soft);
	color: var(--iit-sky-ink) !important;
	font-size: 17px;
}

.iit-ws .pg-grid .card-text,
.iit-ws .pg-grid .card-body > .card-text.mr-2 {
	flex: 0 1 auto !important;
	margin: 0 auto 0 0 !important;
	font-family: var(--iit-mono);
	font-size: 12px !important;
	letter-spacing: 0.04em;
	color: var(--iit-subtle) !important;
	padding: 0 !important;
}

/* labelled actions */
.iit-ws .pg-grid .btn-dark.btn-sm:first-of-type {
	margin-left: 0 !important;
}

.iit-ws .pg-grid .card-title {
	display: block !important;
}

.iit-ws .pg-grid .card-body .btn,
.iit-ws .pg-grid .card-body .c-pill--primary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	margin: 0 !important;
	padding: 0 12px !important;
	border: 1px solid var(--iit-line) !important;
	border-radius: 7px !important;
	background: #fff !important;
	color: var(--iit-slate) !important;
	font-family: var(--iit-sans);
	font-size: 13px !important;
	font-weight: 600;
	box-shadow: none !important;
	cursor: pointer;
}

.iit-ws .pg-grid .card-body .btn:hover,
.iit-ws .pg-grid .card-body .c-pill--primary:hover {
	border-color: var(--iit-slate) !important;
	background: var(--iit-slate-soft) !important;
}

.iit-ws .pg-grid .card-body .btn i {
	font-size: 12px;
	color: var(--iit-sky-ink);
}

.iit-ws .pg-grid .btn:has(.fa-eye)::after {
	content: "Open";
}

.iit-ws .pg-grid .btn:has(.fa-edit)::after {
	content: "Edit";
}

.iit-ws .pg-grid .btn:has(.fa-paper-plane)::after {
	content: "Send";
}

.iit-ws .pg-grid .btn:has(.fa-trash)::after {
	content: "Delete";
}

.iit-ws .pg-grid .btn:has(.fa-trash):hover {
	border-color: #f4c7c3 !important;
	background: #fef3f2 !important;
	color: #b42318 !important;
}

.iit-ws .pg-grid .btn:has(.fa-trash):hover i {
	color: #b42318;
}

/* the "View" pill on requests reads as an action button */
.iit-ws .pg-grid .card-body .c-pill--primary {
	position: static;
}

/* status pills (Sent / Pending / Fulfilled / Rejected) */
.iit-ws .pg-grid .c-pill:not(.c-pill--primary) {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 24px;
	padding: 0 10px !important;
	border-radius: 999px;
	font-family: var(--iit-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
}

.iit-ws .pg-grid .c-pill::before {
	display: none !important;
}

.iit-ws .pg-grid .c-pill--success {
	background: #e7f8ef !important;
	color: #067647 !important;
}

.iit-ws .pg-grid .c-pill--warning {
	background: #fef3e7 !important;
	color: #9a4a06 !important;
}

.iit-ws .pg-grid .c-pill--danger {
	background: #fef3f2 !important;
	color: #b42318 !important;
}

/* empty state */
.iit-ws .pg-empty {
	width: 100%;
	margin: 0 !important;
	padding: 48px 24px !important;
	border: 1.5px dashed #cfd8e3 !important;
	border-radius: 12px !important;
	background: #fff !important;
	text-align: center;
	box-shadow: none !important;
}

.iit-ws .pg-empty-icon {
	display: grid !important;
	place-items: center;
	width: 56px !important;
	height: 56px !important;
	margin: 0 auto 14px !important;
	border-radius: 12px !important;
	background: var(--iit-sky-soft) !important;
	color: var(--iit-sky-ink) !important;
	font-size: 22px !important;
}

.iit-ws .pg-empty h6 {
	font-family: var(--iit-sans);
	font-size: 17px !important;
	font-weight: 600;
	color: var(--iit-ink);
}

.iit-ws .pg-empty p {
	max-width: 420px;
	margin: 6px auto 0 !important;
	font-size: 14px !important;
	color: var(--iit-muted) !important;
}

/* ---------- Feedback ---------- */

.iit-ws-feedback .userRegisterForm {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
}

.iit-ws-feedback .iit-ws-body {
	margin-top: -36px !important;
	position: relative;
	z-index: 2;
}

.iit-ws-feedback .iit-ws-body > .col-md-12 {
	padding: 0 !important;
}

.iit-fb-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.iit-fb-item {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--iit-line);
	border-radius: 10px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.iit-fb-item:first-child {
	border-top: 3px solid var(--iit-sky);
	box-shadow: 0 22px 44px -30px rgba(12, 17, 26, 0.5);
}

.iit-fb-item.is-answered {
	background: #fbfdff;
}

.iit-fb-no {
	font-family: var(--iit-mono);
	font-size: 14px;
	font-weight: 600;
	color: var(--iit-sky-ink);
}

.iit-ws-feedback .iit-fb-q {
	margin: 0;
	font-family: var(--iit-sans);
	font-size: 15.5px !important;
	line-height: 1.5;
	color: var(--iit-ink) !important;
}

.iit-fb-rate {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

/* stars: inputs are in order 5..1 and laid out reversed, so "hover / checked + the stars before it" fill */
.iit-stars {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 2px;
}

.iit-stars input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.iit-ws-feedback .iit-stars label {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin: 0;
	border-radius: 7px;
	font-size: 20px;
	color: #d5dde7 !important;
	cursor: pointer;
	transition: color 0.12s ease, transform 0.12s ease, background-color 0.12s ease;
}

.iit-ws-feedback .iit-stars label:hover,
.iit-ws-feedback .iit-stars label:hover ~ label,
.iit-ws-feedback .iit-stars input:checked ~ label {
	color: #f5b800 !important;
}

.iit-ws-feedback .iit-stars label:hover {
	transform: scale(1.12);
	background: #fff8e1;
}

.iit-ws-feedback .iit-stars input:focus-visible + label {
	outline: 2px solid var(--iit-sky);
	outline-offset: 1px;
}

/* already answered: read-only */
.iit-ws-feedback .iit-stars.rdisabled {
	pointer-events: none;
}

.iit-fb-state {
	font-family: var(--iit-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--iit-subtle);
}

.is-answered .iit-fb-state {
	color: #067647;
}

/* ---------- Phones ---------- */

@media (max-width: 767.98px) {
	.iit-ws-head {
		grid-template-columns: auto minmax(0, 1fr);
		padding: 20px 16px 58px;
	}

	.iit-ws-stat {
		display: none;
	}

	.iit-ws-toolbar {
		margin: -36px 12px 0;
		flex-wrap: wrap;
	}

	.iit-ws .iit-ws-toolbar .iit-ws-add {
		flex: 1 1 100%;
		justify-content: center;
	}

	.iit-ws .iit-ws-body {
		margin: 16px 12px 0 !important;
	}

	.iit-ws .pg-grid .card-body {
		padding-left: 16px !important;
	}

	.iit-ws .pg-grid .card-title > i:first-child {
		position: static;
		transform: none;
		display: inline-grid;
		width: 30px;
		height: 30px;
		margin-right: 8px;
		font-size: 13px;
		vertical-align: middle;
	}

	.iit-fb-item {
		grid-template-columns: 28px minmax(0, 1fr);
	}

	.iit-fb-rate {
		grid-column: 1 / -1;
		align-items: flex-start;
	}
}

/* ==========================================================
   Popups: search history + your comments (from the Azim/IMTG port, IIT tokens)
   ========================================================== */
/* ---------- Shared buttons ---------- */
.ix-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 22px;
	border-radius: 6px;
	border: 1px solid transparent;
	font-family: var(--iit-sans);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.ix-btn svg {
	width: 18px;
	height: 18px;
	flex: none;
}
.ix-btn-primary {
	background: var(--iit-slate);
	color: #fff;
}
.ix-btn-primary:hover,
.ix-btn-primary:focus {
	background: var(--iit-slate-dark);
	color: #fff;
	text-decoration: none;
}
.ix-btn-ghost {
	background: transparent;
	color: var(--iit-slate);
	border-color: rgba(31, 41, 58, 0.35);
}
.ix-btn-ghost:hover,
.ix-btn-ghost:focus {
	background: var(--iit-sky-soft);
	color: var(--iit-slate-dark);
	border-color: var(--iit-slate);
	text-decoration: none;
}
.ix-btn-gold {
	background: var(--iit-sky);
	color: var(--iit-slate-deep);
}
.ix-btn-gold:hover,
.ix-btn-gold:focus {
	background: #1aa3e6;
	color: var(--iit-slate-deep);
	text-decoration: none;
}
.ix-btn:focus-visible,
.ix-link:focus-visible {
	outline: 2px solid var(--iit-sky);
	outline-offset: 2px;
}

.ix-link {
	color: var(--iit-slate);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(0, 147, 221, 0.7);
	padding-bottom: 1px;
}
.ix-link:hover {
	color: var(--iit-slate-dark);
	border-bottom-color: var(--iit-slate);
	text-decoration: none;
}

/* Small caps label used across the site */
.ix-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--iit-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--iit-sky-dark);
}
.ix-kicker::before {
	content: "";
	width: 28px;
	height: 1px;
	background: var(--iit-sky);
}





/* Shared action buttons */
.ix-item-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}
.ix-act {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 34px;
	padding: 0 11px;
	border: 1px solid var(--iit-line);
	border-radius: 6px;
	background: #fff;
	color: var(--iit-slate);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ix-act svg {
	width: 15px;
	height: 15px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ix-act:hover {
	border-color: var(--iit-slate);
	background: var(--iit-sky-soft);
	color: var(--iit-slate-deep);
	text-decoration: none;
}
.ix-act:focus-visible {
	outline: 2px solid var(--iit-sky);
	outline-offset: 2px;
}
.ix-act-primary {
	border-color: var(--iit-slate);
	background: var(--iit-slate);
	color: #fff;
}
.ix-act-primary:hover {
	background: var(--iit-slate-dark);
	color: #fff;
}
.ix-act-danger {
	color: #b42318;
}
.ix-act-danger:hover {
	border-color: #f4c7c3;
	background: #fef3f2;
	color: #b42318;
}



/* ==========================================================================
   Comments popups (#yourCommentsModal, #yourCommentstoDisplayModal)
   ========================================================================== */
.ix-comments-dialog {
	max-width: 960px;
}
.ix-comments-dialog--wall {
	max-width: 680px;
}
.ix-comments-modal .modal-content {
	overflow: hidden;
	border: 0;
	border-top: 4px solid var(--iit-slate);
	background: #fff;
}
.ix-comments-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	min-height: 520px;
	margin: 0;
}
.ix-comments-modal h2 {
	margin: 10px 0 8px;
	font-family: var(--iit-sans);
	font-size: 30px;
	font-weight: 500;
	line-height: 1.15;
	color: var(--iit-slate-deep);
}
/* Left: writing pad */
.ix-comments-write {
	display: flex;
	flex-direction: column;
	padding: 36px 36px 32px;
}
.ix-comments-lede {
	margin: 0 0 22px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--iit-muted);
}
.ix-comments-modal .ix-comments-label {
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #7d8796;
}
.ix-comments-pad {
	position: relative;
	flex: 1 1 auto;
	display: flex;
}
.ix-comments-pad textarea {
	flex: 1 1 auto;
	width: 100%;
	min-height: 190px;
	padding: 16px 18px 34px 22px;
	border: 1px solid var(--iit-line);
	border-left: 3px solid var(--iit-sky);
	border-radius: 6px;
	background:
		repeating-linear-gradient(transparent 0 31px, rgba(31, 41, 58, 0.08) 31px 32px) 0 15px / 100% 100% local,
		#fff;
	font-family: var(--iit-sans);
	font-size: 18px;
	line-height: 32px;
	color: var(--iit-ink);
	resize: vertical;
	outline: 0;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ix-comments-pad textarea::placeholder {
	font-style: italic;
	color: #7d8796;
}
.ix-comments-pad textarea:focus {
	border-color: var(--iit-slate);
	border-left-color: var(--iit-sky);
	box-shadow: 0 0 0 3px rgba(31, 41, 58, 0.1);
}
.ix-comments-count {
	position: absolute;
	right: 12px;
	bottom: 8px;
	font-size: 11.5px;
	color: #7d8796;
	pointer-events: none;
}
.ix-comments-note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 14px 0 18px;
	font-size: 13px;
	color: var(--iit-muted);
}
.ix-comments-note svg {
	flex: none;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: var(--iit-sky-dark);
	stroke-width: 2;
	stroke-linecap: round;
}
.ix-comments-modal .ix-comments-submit {
	width: 100%;
	height: 48px;
	border-radius: 6px !important;
	background: var(--iit-slate) !important;
	color: #fff !important;
	border: 0 !important;
}
.ix-comments-modal .ix-comments-submit:hover {
	background: var(--iit-slate-dark) !important;
}
.ix-comments-modal .ix-comments-submit:disabled {
	background: var(--iit-line) !important;
	color: #7d8796 !important;
	cursor: not-allowed;
}
/* Right: earlier comments */
.ix-comments-history {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 36px 30px 24px;
	background: var(--iit-paper);
	border-left: 1px solid var(--iit-line);
}
.ix-comments-history h3 {
	margin: 0 0 18px;
	padding-right: 30px;
	font-family: var(--iit-sans);
	font-size: 20px;
	font-weight: 600;
	color: var(--iit-slate-deep);
}
.ix-comments-loading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	font-size: 13.5px;
	color: var(--iit-muted);
}
.ix-comments-loading[style*="none"] {
	display: none !important;
}
.ix-comments-scroll {
	flex: 1 1 auto;
	max-height: 400px;
	overflow-y: auto;
	padding-right: 6px;
	scrollbar-width: thin;
	scrollbar-color: var(--iit-line) transparent;
}
.ix-comments-loading[style*="none"] + .ix-comments-scroll #commentsConetent:empty::before {
	content: "You haven\2019 t written any comments yet. Your first one will appear here.";
	display: block;
	padding: 40px 18px;
	border: 1px dashed var(--iit-line);
	border-radius: 6px;
	background: #fff;
	text-align: center;
	font-family: var(--iit-sans);
	font-style: italic;
	font-size: 16.5px;
	color: var(--iit-muted);
}
/* Timeline entries (both popups) */
.ix-timeline {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.ix-timeline::before {
	content: "";
	position: absolute;
	left: 17px;
	top: 8px;
	bottom: 8px;
	border-left: 1px dashed rgba(31, 41, 58, 0.25);
}
.ix-comment {
	position: relative;
	display: flex;
	gap: 14px;
	align-items: flex-start;
}
.ix-comment-avatar {
	position: relative;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--iit-slate);
	color: #fff;
	font-family: var(--iit-sans);
	font-size: 17px;
	font-weight: 600;
	box-shadow: 0 0 0 4px var(--iit-paper);
}
.ix-comment-body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 16px 14px;
	border: 1px solid var(--iit-line);
	border-radius: 2px 10px 10px 10px;
	background: #fff;
}
.ix-comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
	margin: 0 0 6px !important;
	font-size: 13px !important;
	line-height: 1.4 !important;
	color: var(--iit-muted) !important;
}
.ix-comment-meta b {
	color: var(--iit-slate-deep);
	font-weight: 600;
}
.ix-comment-meta time {
	font-size: 12px;
	color: #7d8796;
}
.ix-comment-text {
	margin: 0 !important;
	font-family: var(--iit-sans);
	font-size: 16.5px !important;
	line-height: 1.55 !important;
	color: var(--iit-ink) !important;
	overflow-wrap: anywhere;
	white-space: pre-line;
}
/* Reader comments wall */
.ix-comments-wallhead {
	padding: 32px 36px 18px;
	border-bottom: 1px solid var(--iit-line);
}
.ix-comments-wallhead p {
	margin: 0;
	font-size: 13.5px;
	color: var(--iit-muted);
}
.ix-comments-scroll--wall {
	max-height: 60vh;
	padding: 22px 30px 26px 36px;
	background: var(--iit-paper);
}
.ix-comments-scroll--wall .ix-comment-avatar {
	background: var(--iit-sky);
	color: var(--iit-slate-deep);
}
.ix-comments-empty {
	margin: 0;
	padding: 40px 10px;
	text-align: center;
	font-family: var(--iit-sans);
	font-style: italic;
	font-size: 17px;
	color: var(--iit-muted);
}
@media (max-width: 767.98px) {
	.ix-comments-grid {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}
	.ix-comments-write,
	.ix-comments-history {
		padding: 28px 20px 22px;
	}
	.ix-comments-history {
		border-left: 0;
		border-top: 1px solid var(--iit-line);
	}
	.ix-comments-scroll {
		max-height: 300px;
	}
	.ix-comments-wallhead {
		padding: 26px 20px 16px;
	}
	.ix-comments-scroll--wall {
		padding: 18px 16px 20px 20px;
	}
}
#yourCommentsModal #writecommentId {
	border: 1px solid var(--iit-line) !important;
	border-left: 3px solid var(--iit-sky) !important;
	border-radius: 6px !important;
	background-color: #fff !important;
	box-shadow: none;
}
#yourCommentsModal #writecommentId:focus {
	border-color: var(--iit-slate) !important;
	border-left-color: var(--iit-sky) !important;
	box-shadow: 0 0 0 3px rgba(31, 41, 58, 0.1);
}



#yourCommentsModal #writecommentId {
	border: 1px solid var(--iit-line) !important;
	border-left: 3px solid var(--iit-sky) !important;
	border-radius: 6px !important;
	background-color: #fff !important;
	box-shadow: none;
}
#yourCommentsModal #writecommentId:focus {
	border-color: var(--iit-slate) !important;
	border-left-color: var(--iit-sky) !important;
	box-shadow: 0 0 0 3px rgba(31, 41, 58, 0.1);
}

/* ==========================================================================
   Search history (#searchHistoryModal)
   ========================================================================== */
.ix-history-dialog {
	max-width: 760px;
}
.ix-history-modal .modal-content {
	border: 0;
	border-top: 4px solid var(--iit-slate);
	overflow: hidden;
}
.ix-history-form {
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 3.5rem);
	margin: 0;
}
.ix-history-head {
	position: relative;
	padding: 26px 30px 18px;
	border-bottom: 1px solid var(--iit-line);
	background: #fff;
}
.ix-history-head h2 {
	margin: 8px 0 4px;
	font-family: var(--iit-sans);
	font-size: 28px;
	font-weight: 500;
	color: var(--iit-slate-deep);
}
.ix-history-head p {
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--iit-muted);
}
.ix-history-filter {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--iit-line);
	border-radius: 6px;
	background: var(--iit-paper);
}
.ix-history-filter:focus-within {
	border-color: var(--iit-slate);
	box-shadow: 0 0 0 3px rgba(31, 41, 58, 0.1);
}
.ix-history-filter svg {
	flex: none;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: var(--iit-muted);
	stroke-width: 2;
	stroke-linecap: round;
}
.ix-history-filter input {
	flex: 1 1 auto;
	height: 42px;
	border: 0;
	background: transparent;
	font-size: 14.5px;
	outline: 0;
}
.ix-history-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 6px 30px 18px !important;
	background: var(--iit-paper);
}
.ix-history-loading {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 24px 0;
	color: var(--iit-muted);
	font-size: 14px;
}
.ix-history-loading[style*="none"] {
	display: none !important;
}
.ix-history-day {
	margin-top: 18px;
}
.ix-history-day h3 {
	position: sticky;
	top: 0;
	z-index: 1;
	margin: 0 0 8px;
	padding: 6px 0;
	background: var(--iit-paper);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--iit-sky-dark);
}
.ix-history-items {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--iit-line);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}
.ix-history-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--iit-line);
}
.ix-history-item:last-child {
	border-bottom: 0;
}
.ix-history-item:hover {
	background: var(--iit-paper);
}
.ix-history-time {
	flex: none;
	width: 44px;
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: #7d8796;
}
.ix-history-main {
	flex: 1 1 auto;
	min-width: 0;
}
.ix-history-query {
	margin: 0;
	font-family: var(--iit-sans);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--iit-slate-deep);
	overflow-wrap: anywhere;
}
.ix-history-query::before {
	content: "\201C";
	color: var(--iit-sky);
}
.ix-history-query::after {
	content: "\201D";
	color: var(--iit-sky);
}
.ix-history-pub {
	margin: 2px 0 0;
	font-size: 12.5px;
	color: var(--iit-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ix-history-item .ix-act {
	flex: none;
}
.ix-history-nolink {
	flex: none;
	font-size: 12px;
	font-style: italic;
	color: #7d8796;
}
.ix-history-empty,
.ix-history-nomatch {
	padding: 40px 12px;
	text-align: center;
	color: var(--iit-muted);
}
.ix-history-empty-title {
	margin: 0 0 4px;
	font-family: var(--iit-sans);
	font-size: 21px;
	color: var(--iit-slate-deep);
}
.ix-history-foot {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 30px;
	border-top: 1px solid var(--iit-line);
	background: #fff;
	font-size: 12.5px;
	color: var(--iit-muted);
}
.ix-history-foot svg {
	flex: none;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: var(--iit-sky-dark);
	stroke-width: 2;
	stroke-linecap: round;
}
@media (max-width: 575.98px) {
	.ix-history-head,
	.ix-history-body,
	.ix-history-foot {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
	.ix-history-item {
		flex-wrap: wrap;
		gap: 6px 12px;
	}
	.ix-history-item .ix-act,
	.ix-history-nolink {
		margin-left: 56px;
	}
}

/* ---------- Workspace fixes after the visual pass ---------- */

.iit-ws .row.ml-2.iit-ws-body {
	margin: 20px 32px 0 !important;
}

.iit-ws .pg-grid .card-body .btn,
.iit-ws .pg-grid .card-body span.c-pill--primary {
	text-transform: none !important;
	letter-spacing: 0 !important;
}

.iit-ws .pg-grid .card-body span.c-pill--primary {
	display: inline-flex !important;
	align-items: center;
	height: 32px !important;
	padding: 0 14px !important;
	border: 1px solid var(--iit-line) !important;
	border-radius: 7px !important;
	background: #fff !important;
	color: var(--iit-slate) !important;
	font-family: var(--iit-sans);
	font-size: 13px !important;
	font-weight: 600;
	top: auto !important;
}

.iit-ws .pg-grid .card-body span.c-pill--primary::before {
	content: "\f06e";
	display: inline-block !important;
	position: static !important;
	width: auto !important;
	height: auto !important;
	margin-right: 6px;
	background: none !important;
	font-family: "FontAwesome", "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 12px;
	color: var(--iit-sky-ink);
}

@media (max-width: 767.98px) {
	.iit-ws .row.ml-2.iit-ws-body {
		margin: 16px 12px 0 !important;
	}
}

@media (max-width: 767.98px) {
	.iit-ws .iit-ws-toolbar .iit-ws-add span {
		display: inline !important;
	}
}

/* popup widths: older .modal-dialog rules (main.css / pages-modern.css) otherwise keep them at 500px */
.modal-dialog.ix-comments-dialog {
	width: calc(100% - 32px);
	max-width: 900px !important;
}

.modal-dialog.ix-history-dialog {
	width: calc(100% - 32px);
	max-width: 760px !important;
}

.ix-comments-loading[style*="none"] + .ix-comments-scroll #commentsConetent:empty::before {
	display: block;
	height: auto !important;
	padding: 22px 18px !important;
	line-height: 1.55;
	font-size: 14px;
}

.ix-comments-scroll #commentsConetent:empty {
	height: auto !important;
	min-height: 0 !important;
}

/* the empty note reuses .ix-timeline::before (the timeline rail): undo the rail geometry */
.ix-comments-loading[style*="none"] + .ix-comments-scroll #commentsConetent.ix-timeline:empty::before {
	position: static !important;
	top: auto !important;
	bottom: auto !important;
	left: auto !important;
	width: auto !important;
	height: auto !important;
	background: #fff !important;
}


/* ==========================================================================
   Shared with you (#shareResourceReciverModal, upgraded by commonfooterscripts)
   and the message itself (#shareDisplayModal)
   ========================================================================== */
.ix-inbox-modal .modal-dialog {
	max-width: 560px !important;
}
.ix-inbox-modal .modal-content,
#shareDisplayModal .modal-content {
	border: 0 !important;
	border-top: 4px solid var(--iit-slate) !important;
	border-radius: 6px !important;
	overflow: hidden;
}
.ix-inbox-modal .modal-header,
#shareDisplayModal .modal-header {
	position: relative;
	display: block;
	padding: 24px 56px 18px 26px !important;
	border-bottom: 1px solid var(--iit-line);
	background: #fff !important;
	text-align: left;
}
.ix-inbox-modal .modal-title,
#shareDisplayModal .modal-title {
	margin: 0;
	font-family: var(--iit-sans);
	font-size: 26px !important;
	font-weight: 500;
	color: var(--iit-slate-deep) !important;
}
.ix-inbox-count {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: var(--iit-muted);
}
.ix-inbox-modal .modal-body {
	max-height: 60vh;
	overflow-y: auto;
	padding: 8px !important;
	background: var(--iit-paper);
}
.ix-inbox-item {
	position: relative;
	display: flex !important;
	align-items: center;
	gap: 14px;
	margin: 0 0 6px;
	padding: 12px 14px !important;
	border: 1px solid var(--iit-line);
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ix-inbox-item:last-child {
	margin-bottom: 0;
}
.ix-inbox-item:hover,
.ix-inbox-item:focus-visible {
	border-color: rgba(31, 41, 58, 0.35);
	box-shadow: 0 1px 2px rgba(12, 17, 26, 0.06);
	outline: 0;
}
.ix-inbox-avatar {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--iit-sky-soft);
	color: var(--iit-sky-dark);
	font-family: var(--iit-sans);
	font-size: 18px;
	font-weight: 600;
}
.ix-inbox-main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.ix-inbox-title {
	font-family: var(--iit-sans);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--iit-slate-deep);
	overflow-wrap: anywhere;
}
.ix-inbox-meta {
	font-size: 12.5px;
	color: var(--iit-muted);
}
.ix-inbox-modal .ix-inbox-view {
	position: static !important;
	flex: none;
	display: inline-flex !important;
	align-items: center;
	height: 32px;
	margin: 0 !important;
	padding: 0 14px !important;
	border: 1px solid var(--iit-line);
	border-radius: 6px !important;
	background: #fff !important;
	color: var(--iit-slate) !important;
	font-size: 13px;
	font-weight: 600;
}
.ix-inbox-modal .ix-inbox-view::before {
	display: none;
}
.ix-inbox-item:hover .ix-inbox-view {
	border-color: var(--iit-slate);
	background: var(--iit-slate) !important;
	color: #fff !important;
}
.ix-inbox-modal .modal-body > div:not(.ix-inbox-item) {
	padding: 40px 16px !important;
	text-align: center;
}
.ix-inbox-modal .modal-body > div:not(.ix-inbox-item) p {
	margin: 0;
	font-family: var(--iit-sans);
	font-style: italic;
	font-size: 17px;
	color: var(--iit-muted) !important;
}
/* The message */
#shareDisplayModal .modal-dialog {
	max-width: 620px !important;
}
#shareDisplayModal .modal-body {
	padding: 0 !important;
	background: var(--iit-paper);
}
#shareDisplayModal .shareContent {
	height: auto !important;
	max-height: 62vh;
	margin: 18px;
	padding: 24px 26px;
	border: 1px solid var(--iit-line);
	border-left: 3px solid var(--iit-sky);
	border-radius: 6px;
	background: #fff;
	font-size: 15px;
	line-height: 1.6;
	color: var(--iit-ink) !important;
}
#shareDisplayModal .shareContent p {
	margin: 0 0 6px;
	color: var(--iit-ink);
}
#shareDisplayModal .shareContent br {
	display: block;
	content: "";
	margin-top: 8px;
}
#shareDisplayModal .shareContent b {
	display: inline-block;
	min-width: 150px;
	font-weight: 600;
	color: var(--iit-muted);
}
#shareDisplayModal .shareContent a {
	color: var(--iit-slate) !important;
	font-weight: 600;
	overflow-wrap: anywhere;
}



/* ---------- Notifications inbox: header + action (IIT touches) ---------- */

.ix-inbox-modal .modal-header {
	position: relative;
	display: block !important;
	padding: 24px 64px 18px 26px !important;
	border-bottom: 1px solid var(--iit-line) !important;
	background: #fff !important;
}

.ix-inbox-modal .modal-header .modal-title {
	font-family: var(--iit-sans);
	font-size: 22px !important;
	font-weight: 600;
	color: var(--iit-ink) !important;
}

.ix-inbox-modal .modal-header .modal-title::before {
	content: "Notifications";
	display: block;
	margin-bottom: 6px;
	font-family: var(--iit-mono);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--iit-sky-ink);
}

.ix-inbox-modal .modal-header .close {
	position: absolute !important;
	top: 18px !important;
	right: 18px !important;
	margin: 0 !important;
}

.ix-inbox-modal .ix-inbox-view {
	display: inline-flex !important;
	align-items: center;
	height: 32px;
	padding: 0 14px !important;
	border: 1px solid var(--iit-line) !important;
	border-radius: 7px !important;
	background: #fff !important;
	color: var(--iit-slate) !important;
	font-family: var(--iit-sans);
	font-size: 13px !important;
	font-weight: 600;
	top: auto !important;
}

.ix-inbox-modal .ix-inbox-item:hover .ix-inbox-view {
	border-color: var(--iit-sky) !important;
	background: var(--iit-sky-soft) !important;
}

/* close button in the corner (pages-modern pins .close with a :not(#loginModal) selector, so these need IDs too) */
body #shareResourceReciverModal.modal.ix-inbox-modal .modal-header .close,
body #shareDisplayModal.modal .modal-header .close {
	position: absolute !important;
	top: 16px !important;
	right: 16px !important;
	margin: 0 !important;
}

body #shareDisplayModal.modal .modal-header {
	position: relative;
	padding-right: 64px !important;
}
