/*css for showing mandatory fields*/
.required:after {
	position: relative;
	content: "\0020\002A";
	color: var(--theme-primary);
}

.datetimepicker {
	width: 400px;
}

.angular-google-map-container {
	height: 600px;
	padding: 0px;
}

@media print {
	.main-header : {
		display: none;
	}
	.main-sidebar : {
		display: none;
	}
	.main-footer : {
		display: none;
	}
	.noprint {
		display: none !important;
		height: 0px !important;
	}
	body, .modal {
		position: absolute !important;
		width: 100% !important;
		height: 100% !important;
		overflow: visible !important;
	}
}

[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak,
	.x-ng-cloak {
	display: none !important;
}

@media ( min-width : 768px) {
	.modal-dialog-custom-70   .modal-dialog {
		width: 70%;
	}
	.modal-dialog-custom-60   .modal-dialog {
		width: 60%;
	}
}

.app_status {
	color: #838383;
	font-size: 15px;
}

.statusPublished {
	color: var(--theme-primary);
}

.statusUnpublished {
	color: var(--theme-accent)
}

.inform-fixed {
	z-index: 2000;
}

.green {
	color: green
}

.red {
	color: red
}

.no_margin {
	margin: 0px !important;
}

.float_left {
	float: left !important;
}

.font-weight-500 {
	font-weight: 500 !important
}

[ng-click] {
    cursor: pointer;
}

.font-weight-700 {
	font-weight: 700 !important
}

.cursor-hand {
	cursor: pointer !important
}

.smalltext {
	padding-top: 5px;
	font-size: 16px;
}

.sidebar {
	margin-top: 15px !important;
}

.noLeftPadding {
	padding-left: 0px !important;
}

/*Tooltip in index.jsp file for top right icons*/
[tooltip]:before {
	content: attr(tooltip);
	position: absolute;
	opacity: 0;
	right: 0;
	top: 100%;
	transition: all 0.5s ease;
}

[tooltip]:hover:before {
	opacity: 1;
	color: #ffffff;
	background: #333333;
	padding: 10px;
}

[tooltip] {
	position: relative;
}

.custom-tooltip-narration + .tooltip > .tooltip-inner {
  border: 1px solid;
  padding: 10px;
  max-width: 400px;
  color: #fff;
  text-align: left;
  background-color: #5a595982;
  background: #383737;
  opacity: 1.0;
  filter: alpha(opacity=100);
}

.table>tbody>tr>td {
	vertical-align: middle;
}

.without-margin {
	margin-bottom: 0px !important;
}

.whitespace-normal {
	white-space: normal !important
}

.background-transparent {
	background-color: transparent !important
}

.font-size-85pc {
	font-size: 85% !important
}

.font-weight-600 {
	font-weight: 600 !important
}

.header-left-alighn th {
	text-align: left !important;
}

.top-margin-13px {
	margin-top: 13px !important;
}

.whitespace-line {
	white-space: pre-line;
}

.whitespace-nowrap {
	white-space: nowrap;
}

.max-width-400-overflow-hidden {
	white-space: nowrap;
	max-width: 400px;
	overflow:hidden;
}

.min-width-100px {
	min-width : 100px !important
}

.amount-field {
	max-width: 100px;
}

.button-margin-top {
	margin-top: 5px;
}

  .typeahead-demo .custom-popup-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    background-color: #f9f9f9;
  }

  .typeahead-demo .custom-popup-wrapper > .message {
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    color: #868686;
  }

  .typeahead-demo .custom-popup-wrapper > .dropdown-menu {
    position: static;
    float: none;
    display: block;
    min-width: 160px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

.row-margin-bottom {
	margin-bottom: 8px;
	margin-left: 5px;
	margin-right: 5px;
	border-bottom-width: thin;
	border-bottom-style: solid;
}

.content-header>.btn-group {
	float: right;
    background: transparent;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 12px;
    padding: 7px 5px;
    position: absolute;
    top: 0px;
    right: 10px;
    border-radius: 2px;
}

button.margin-left {
	margin-left: 5px;
}

.fit-image{
	width: 100%;
}

.resize-400 {
  display: block;
  max-width:400px;
  max-height:400px;
  width: auto;
  height: auto;
  margin: auto;
}

.max-height-400 {
	max-height : 400px
}

table tr td.padding-left-15px {
  padding-left: 15px;
}

table tr td.redBold {
  color: red;
  font-weight: bold;
}

table tr td.greenBold {
  color: green;
  font-weight: bold;
}

/* --- Academic Document related css (start) --- */

.doc-link {
  color: #000000; /* Bootstrap link blue or any you prefer */
  text-decoration: none;
  font-style: normal;
  font-weight: normal;
}

.doc-link:hover {
  color: var(--theme-primary);
  text-decoration: underline;
  font-style: italic;
  font-weight: bolder;
}

.doc-icon-link {
  color: #000000; /* Bootstrap link blue or any you prefer */
}

.doc-icon-link:hover {
  color: var(--theme-primary);
}

.folder-heirarchy-link {
  font-size: large;
  font-weight: bolder;
}

.thumb-tack-pinned {
  color: red; 
  margin-left: 10px; 
  transform: rotate(45deg);
}

.thumb-tack-pinned:hover {
  color: grey; 
  margin-left: 10px;
  transform: rotate(0deg);
}

.thumb-tack-unpinned {
  color: grey; 
  margin-left: 10px; 
  transform: rotate(0deg);
}

.thumb-tack-unpinned:hover {
  color: red; 
  margin-left: 10px; 
  transform: rotate(0deg);
}

.row-pin-button {
  visibility: hidden;
}

.row-hover-container:hover .row-pin-button {
  visibility: visible;
}

/* --- Academic Document related css (end) --- */

/* --- Recurring Tests related css (start) --- */

.table-bordered-custom,
.table-bordered-custom th,
.table-bordered-custom td {
  border: 1px solid #000 !important;
  border-collapse: collapse;
}

.table-bordered-custom td {
  text-align: center !important;
}

.table-compressed th,
.table-compressed td{
    padding:4px 6px !important;   /* default bootstrap is ~8-12px */
    white-space:nowrap;
}
/* --- Recurring Tests related css (end) --- */

/* --- Agent widget (floating assistant) - matches purple theme --- */
.agent-widget {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 1050;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.agent-fab {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--theme-mid), var(--theme-primary));
	border: none;
	color: #fff;
	box-shadow: 0 4px 12px rgba(91, 63, 214, 0.45);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.agent-fab:hover {
	background: linear-gradient(135deg, var(--theme-primary), var(--theme-darkest));
	transform: scale(1.05);
	box-shadow: 0 6px 16px rgba(74, 47, 192, 0.5);
}
.agent-fab:focus {
	outline: none;
}

.agent-panel {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 440px;
	max-width: calc(100vw - 48px);
	max-height: calc(100vh - 80px);
	background: #fff;
	border-radius: 12px 12px 0 0;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
	border: 1px solid #e0e0e0;
	display: flex;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px) scale(0.96);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
	overflow: hidden;
}
.agent-panel-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

.agent-panel-header {
	background: linear-gradient(135deg, var(--theme-mid), var(--theme-primary));
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
	border-radius: 12px 12px 0 0;
}
.agent-panel-title {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
}
.agent-panel-title i {
	opacity: 0.95;
	font-size: 18px;
	flex-shrink: 0;
}
.agent-panel-title-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.3;
}
.agent-panel-title span {
	font-weight: 600;
	font-size: 16px;
}
.agent-panel-subtitle {
	display: block;
	font-size: 12px;
	opacity: 0.9;
	font-weight: normal;
}
.agent-panel-close {
	background: transparent;
	border: none;
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.9;
	transition: background 0.2s ease;
}
.agent-panel-close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.agent-panel-body {
	flex: 1;
	min-height: 300px;
	overflow-y: auto;
	padding: 12px;
	background: #fafafa;
}

.agent-welcome {
	text-align: left;
	padding: 20px 12px;
	color: #666;
}

.agent-messages {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.agent-msg {
	display: flex;
	width: 100%;
}
.agent-msg.user {
	justify-content: flex-end;
}
.agent-msg.assistant {
	justify-content: flex-start;
}
.agent-msg-bubble {
	max-width: 85%;
	padding: 10px 14px;
	border-radius: 14px;
	position: relative;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.agent-msg.user .agent-msg-bubble {
	background: linear-gradient(135deg, var(--theme-mid), var(--theme-primary));
	color: #fff;
	border-bottom-right-radius: 4px;
}
.agent-msg.assistant .agent-msg-bubble {
	background: #fff;
	color: #333;
	border: 1px solid #e8e8e8;
	border-bottom-left-radius: 4px;
}
.agent-msg-text {
	display: block;
	font-size: 14px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
}
.agent-msg-bubble ul,
.agent-msg-bubble ol {
	margin: 8px 0 4px 0;
	padding-left: 20px;
}
.agent-msg-bubble li {
	margin: 2px 0;
}
.agent-download-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 8px;
	padding: 5px 12px;
	font-size: 12px;
	color: var(--theme-primary);
	background: #fff;
	border: 1px solid var(--theme-primary);
	border-radius: 16px;
	cursor: pointer;
	transition: all 0.15s ease;
}
.agent-download-btn:hover {
	background: var(--theme-primary);
	color: #fff;
}
.agent-download-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.agent-msg-time {
	display: block;
	font-size: 11px;
	opacity: 0.8;
	margin-top: 4px;
}
.agent-msg.user .agent-msg-time {
	opacity: 0.9;
}

.agent-panel-footer {
	padding: 12px;
	background: #fff;
	border-top: 1px solid #e8e8e8;
	flex-shrink: 0;
}

/* --- Card-based selection in chat body --- */
.agent-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 14px;
	padding: 20px 16px;
	margin-bottom: 12px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.agent-card-icon {
	font-size: 28px;
	color: var(--theme-primary);
	margin-bottom: 10px;
}
.agent-card-title {
	font-size: 15px;
	font-weight: 600;
	color: #333;
	margin: 0 0 6px 0;
}
.agent-card-subtitle {
	font-size: 13px;
	color: #777;
	margin: 0 0 14px 0;
	line-height: 1.4;
}
.agent-chip-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.agent-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 7px 14px;
	font-size: 13px;
	border: 1px solid #ddd;
	border-radius: 20px;
	background: #fff;
	color: #333;
	cursor: pointer;
	transition: all 0.15s ease;
}
.agent-chip:hover {
	background: var(--theme-primary);
	color: #fff;
	border-color: var(--theme-primary);
}
.agent-chip:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(91, 63, 214, 0.25);
}
.agent-back-link {
	display: inline-block;
	margin-top: 12px;
	font-size: 12px;
	color: #999;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}
.agent-back-link:hover {
	color: var(--theme-primary);
}

/* --- Scope badge (shown when ready) --- */
.agent-scope-badge-row {
	margin-bottom: 12px;
}
.agent-scope-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 12px;
	font-size: 12px;
	color: #fff;
	background: linear-gradient(135deg, var(--theme-mid), var(--theme-primary));
	border-radius: 16px;
	cursor: pointer;
	transition: background 0.15s ease;
}
.agent-scope-badge:hover {
	background: var(--theme-darkest);
}
.agent-scope-badge-edit {
	margin-left: 4px;
	font-size: 11px;
	opacity: 0.8;
}

/* --- Ready prompt --- */
.agent-ready-prompt {
	text-align: left;
	padding: 4px 0 10px 0;
	color: #555;
	font-size: 14px;
	line-height: 1.5;
}
.agent-ready-hint {
	font-size: 12px;
	color: #999;
	margin-top: 4px;
}
.agent-input-wrap {
	display: flex;
	gap: 8px;
	align-items: flex-end;
}
.agent-input {
	flex: 1;
	border: 1px solid #ddd;
	border-radius: 20px;
	padding: 10px 16px;
	font-size: 14px;
	resize: none;
	min-height: 42px;
	max-height: 100px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.agent-input:focus {
	outline: none;
	border-color: var(--theme-mid);
	box-shadow: 0 0 0 2px rgba(91, 63, 214, 0.15);
}
.agent-send-btn {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--theme-mid), var(--theme-primary));
	border: none;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
	transition: background 0.2s ease, transform 0.1s ease;
}
.agent-send-btn:hover:not(:disabled) {
	background: linear-gradient(135deg, var(--theme-primary), var(--theme-darkest));
	transform: scale(1.05);
}
.agent-send-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

@media (max-width: 480px) {
	.agent-panel {
		width: calc(100vw - 32px);
		right: -8px;
		bottom: 64px;
		max-height: 75vh;
	}
	.agent-panel-body {
		max-height: 300px;
	}
}
/* --- Agent widget (end) --- */