@import url("../vendor/bootstrap-select/css/bootstrap-select.min.css");
@import url("./style.css");

html,
body,
#main-wrapper,
.nav-header,
.header,
.deznav,
.content-body,
.content-body .container-fluid {
	max-width: 100%;
}

html,
body {
	overflow-x: hidden;
	min-height: 100%;
}

body,
#main-wrapper {
	min-height: 100vh;
}

.nav-header,
.header {
	min-height: var(--dz-header-height);
}

.deznav {
	min-height: calc(100vh - var(--dz-header-height));
}

.content-body {
	min-height: calc(100vh - var(--dz-header-height));
}

.content-body .container-fluid {
	min-height: calc(100vh - var(--dz-header-height) - 24px);
}

html.lookon-theme-preload body,
html.lookon-theme-preload #main-wrapper {
	visibility: visible;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

.header .header-content,
.header .header-content .navbar,
.header .header-content .navbar .navbar-collapse,
.header .header-content .header-left,
.navbar-nav.header-right,
.navbar-nav.header-right > li,
.lookon-mobile-quick-profile,
.lookon-mobile-quick-profile-copy,
.lookon-wa-shortcut-content,
.lookon-section-actions,
.lookon-view-toggle,
.lookon-hero-actions,
.lookon-hero-stats,
.lookon-grid-wrap,
.lookon-grid-wrap.is-active,
.lookon-contact-card,
.lookon-module-card,
.lookon-summary-card,
.lookon-metric-card,
.lookon-hero-card {
	min-width: 0;
}

.content-body .container-fluid {
	padding-left: 18px;
	padding-right: 18px;
}

.lookon-table-wrap {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

.lookon-table {
	width: 100%;
}

.lookon-module-card,
.lookon-summary-card,
.lookon-metric-card,
.lookon-contact-card,
.lookon-hero-card {
	overflow: hidden;
}

.lookon-section-actions {
	row-gap: 10px;
}

.lookon-action-group,
.lookon-detail-actions,
.lookon-contract-viewer-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.lookon-action-button.lookon-action-primary {
	order: 10;
}

.lookon-action-button.lookon-action-secondary {
	order: 20;
}

.lookon-action-button.lookon-action-danger {
	order: 30;
}

.lookon-mobile-nav-backdrop,
.lookon-mobile-nav-summary {
	display: none;
}

.lookon-auth-body {
	margin: 0;
	min-height: 100vh;
	background: linear-gradient(180deg, #f5f7fb 0%, #edf2f5 100%);
	color: #1f2937;
}

.lookon-auth-shell {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.lookon-auth-card {
	width: min(100%, 460px);
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 24px;
	box-shadow: 0 24px 60px rgba(15, 92, 92, 0.12);
	padding: 32px 28px;
}

.lookon-auth-eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #0f5c5c;
}

.lookon-auth-card h1 {
	margin: 0 0 10px;
	font-size: 30px;
	line-height: 1.1;
	color: #0f172a;
}

.lookon-auth-description {
	margin: 0 0 20px;
	color: #64748b;
}

.lookon-auth-notice {
	margin-bottom: 16px;
	border-radius: 14px;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.5;
}

.lookon-auth-notice.tone-success {
	background: #ecfdf3;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.lookon-auth-notice.tone-danger {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.lookon-auth-form {
	display: grid;
	gap: 14px;
}

.lookon-auth-field {
	display: grid;
	gap: 8px;
}

.lookon-auth-field span {
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.lookon-auth-field input {
	width: 100%;
	border: 1px solid #dbe2ea;
	border-radius: 14px;
	padding: 13px 14px;
	font-size: 15px;
	line-height: 1.4;
	background: #fff;
	color: #0f172a;
}

.lookon-auth-field input:focus {
	outline: none;
	border-color: #0f5c5c;
	box-shadow: 0 0 0 4px rgba(15, 92, 92, 0.12);
}

.lookon-auth-submit {
	border: 0;
	border-radius: 14px;
	padding: 14px 18px;
	font-size: 15px;
	font-weight: 700;
	background: #0f5c5c;
	color: #fff;
	cursor: pointer;
}

.lookon-auth-helper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
}

.lookon-auth-helper a {
	color: #0f5c5c;
	font-weight: 700;
	text-decoration: none;
}

.lookon-auth-helper span {
	color: #64748b;
	text-align: right;
}

.lookon-auth-meta {
	margin-top: 18px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 12px;
	color: #64748b;
}

.lookon-media-field .lookon-media-preview {
	margin-top: 12px;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	background: #f8fafc;
	padding: 8px;
}

.lookon-media-field .lookon-media-preview img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.lookon-media-preview-trigger {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

.lookon-contract-workspace {
	display: grid;
	gap: 20px;
}

.lookon-contract-variable-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.lookon-contract-variable-field {
	display: grid;
	gap: 8px;
}

.lookon-contract-preview-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	align-items: start;
}

.lookon-contract-preview-card {
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	background: #ffffff;
	padding: 18px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.lookon-contract-preview-body,
.lookon-contract-viewer {
	min-height: 220px;
	max-height: 540px;
	overflow: auto;
	padding: 18px;
	border-radius: 14px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
}

.lookon-report-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 991px) {
	#main-wrapper {
		position: relative;
	}

	#main-wrapper .deznav {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(320px, calc(100vw - 28px));
		max-width: calc(100vw - 28px);
		height: 100vh;
		transform: translateX(-108%);
		transition: transform 0.24s ease;
		z-index: 1002;
		box-shadow: 0 24px 48px rgba(15, 23, 42, 0.24);
	}

	#main-wrapper.menu-toggle .deznav,
	#main-wrapper.lookon-mobile-nav-open .deznav {
		transform: translateX(0);
	}

	body.lookon-mobile-nav-open {
		overflow: hidden;
	}

	.lookon-mobile-nav-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(15, 23, 42, 0.42);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.24s ease, visibility 0.24s ease;
		z-index: 1001;
	}

	#main-wrapper.menu-toggle .lookon-mobile-nav-backdrop,
	#main-wrapper.lookon-mobile-nav-open .lookon-mobile-nav-backdrop {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.lookon-mobile-nav-summary {
		display: grid;
		gap: 14px;
		padding: 16px 16px 14px;
		border-bottom: 1px solid #e5e7eb;
		background: #ffffff;
	}

	.lookon-mobile-nav-profile {
		display: flex;
		align-items: center;
		gap: 12px;
	}

	.lookon-mobile-nav-profile-copy {
		display: grid;
		gap: 3px;
		min-width: 0;
	}

	.lookon-mobile-nav-profile-copy strong,
	.lookon-mobile-nav-profile-copy small {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.lookon-mobile-nav-links {
		display: grid;
		gap: 8px;
	}

	.lookon-mobile-nav-link {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		border-radius: 14px;
		padding: 11px 12px;
		background: #f8fafc;
		border: 1px solid #e2e8f0;
		color: #0f172a;
		text-decoration: none;
		font-size: 13px;
		font-weight: 600;
	}

	.lookon-mobile-nav-link-badge {
		min-width: 28px;
		padding: 4px 8px;
		border-radius: 999px;
		background: #e2e8f0;
		color: #475569;
		text-align: center;
		font-size: 12px;
		font-weight: 700;
	}

	.lookon-mobile-nav-link-badge.has-items {
		background: #0f5c5c;
		color: #ffffff;
	}

	.header .header-content .navbar .navbar-collapse {
		align-items: flex-start;
	}

	.navbar-nav.header-right {
		max-width: calc(100vw - 148px);
		padding-left: 8px;
	}

	.lookon-module-card .card-header {
		gap: 12px;
		flex-wrap: wrap;
	}

	.lookon-section-actions,
	.lookon-view-toggle {
		width: 100%;
		justify-content: flex-start;
	}

	.lookon-hero-actions,
	.lookon-hero-stats,
	.lookon-grid-wrap.is-active {
		grid-template-columns: minmax(0, 1fr);
	}

	.lookon-auth-card {
		padding: 28px 22px;
	}

	.lookon-contract-preview-grid,
	.lookon-contract-variable-grid,
	.lookon-report-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	#main-wrapper,
	.content-body,
	.content-body .container-fluid {
		overflow-x: hidden;
	}

	.header .header-content {
		padding: 12px 12px 12px 8px;
	}

	.header .header-content .navbar .navbar-collapse {
		align-items: center;
		gap: 8px;
	}

	.header .header-content .header-left {
		width: 100%;
	}

	.header-left .dashboard_bar {
		max-width: 100%;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.navbar-nav.header-right {
		max-width: calc(100vw - 112px);
		overflow-x: auto;
		overflow-y: hidden;
	}

	.lookon-mobile-quick-menu,
	.lookon-whatsapp-top-item .dropdown-menu,
	.notification_dropdown .dropdown-menu {
		width: min(320px, calc(100vw - 24px));
		max-width: calc(100vw - 24px);
	}

	.content-body .container-fluid {
		padding-left: 12px;
		padding-right: 12px;
	}

	.lookon-table {
		min-width: 640px;
	}

	.lookon-auth-shell {
		padding: 16px;
		align-items: flex-start;
	}

	.lookon-auth-card {
		width: 100%;
		margin-top: 24px;
		border-radius: 20px;
	}

	.lookon-auth-card h1 {
		font-size: 26px;
	}
}

@media (max-width: 575px) {
	.content-body .container-fluid {
		padding-left: 10px;
		padding-right: 10px;
	}

	.navbar-nav.header-right {
		max-width: calc(100vw - 104px);
	}

	.lookon-theme-toggle,
	.lookon-mobile-more-toggle {
		width: 40px;
		height: 40px;
	}

	.lookon-mobile-quick-menu {
		padding: 12px;
	}

	.lookon-hero-card .card-body,
	.lookon-module-card .card-body {
		padding: 16px;
	}

	.lookon-auth-card {
		padding: 22px 16px;
	}

	.lookon-auth-meta {
		flex-direction: column;
	}

	.lookon-auth-helper {
		flex-direction: column;
		align-items: flex-start;
	}

	.lookon-auth-helper span {
		text-align: left;
	}
}

.lookon-chart-box.is-clickable {
	cursor: pointer;
}

.lookon-hearing-card {
	background: linear-gradient(135deg, rgba(15, 92, 92, 0.08), rgba(32, 166, 166, 0.14));
	border: 1px solid rgba(15, 92, 92, 0.12);
	border-radius: 18px;
	padding: 22px 24px;
}

.lookon-process-link-editor {
	display: grid;
	gap: 12px;
}

.lookon-process-link-list {
	display: grid;
	gap: 10px;
}

.lookon-process-link-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
}

.lookon-process-pill-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 0;
}

.lookon-process-pill {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(15, 92, 92, 0.08);
	color: #0f5c5c;
	font-size: 12px;
	font-weight: 600;
}

.lookon-process-pill.is-muted {
	background: #f5f7f9;
	color: #667085;
}

.lookon-file-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 42, 0.62);
	z-index: 1200;
}

.lookon-file-modal.is-active {
	display: flex;
}

.lookon-file-modal-dialog {
	width: min(1120px, 100%);
	max-height: calc(100vh - 48px);
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	border-radius: 22px;
	background: #ffffff;
	box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
	overflow: hidden;
}

.lookon-file-modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	border-bottom: 1px solid #e5e7eb;
}

.lookon-file-modal-header h4 {
	margin: 4px 0 0;
	font-size: 20px;
	color: #0f172a;
}

.lookon-file-modal-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.lookon-file-modal-close {
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 14px;
	background: #f1f5f9;
	color: #0f172a;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.lookon-file-modal-body {
	padding: 20px;
	min-height: 320px;
	max-height: calc(100vh - 170px);
	overflow: auto;
	background: #f8fafc;
}

.lookon-file-modal-frame {
	display: block;
	width: 100%;
	min-height: 72vh;
	border: 0;
	border-radius: 16px;
	background: #ffffff;
}

.lookon-file-modal-image {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

body.lookon-file-modal-open {
	overflow: hidden;
}

.lookon-upload-field .form-control[type="file"] {
	padding: 10px 12px;
	min-height: 46px;
}

.lookon-contract-viewer-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-bottom: 16px;
}

.lookon-client-report-grid .lookon-widget-card h5 {
	margin-bottom: 8px;
}

@media (max-width: 767px) {
	.lookon-process-link-row {
		grid-template-columns: 1fr;
	}

	.lookon-contract-viewer-actions {
		flex-wrap: wrap;
		justify-content: flex-start;
	}

	.lookon-file-modal {
		padding: 14px;
	}

	.lookon-file-modal-header {
		padding: 16px;
		flex-direction: column;
	}

	.lookon-file-modal-actions {
		width: 100%;
		justify-content: space-between;
	}

	.lookon-file-modal-body {
		padding: 14px;
		max-height: calc(100vh - 210px);
	}

	.lookon-file-modal-frame {
		min-height: 60vh;
	}
}
