@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

body {
	font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
	font-size: 13px;
	letter-spacing: -0.01em;
	line-height: 1.45;
	color: #1E293B;
	background: #E6EDF5;
}

body.module-whscan,
body.module-ims {
	background-color: #E6EDF5;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	background-attachment: fixed;
	min-height: 100vh;
}
body.module-whscan {
	background-image:
		linear-gradient(180deg, rgba(230, 237, 245, 0.42) 0%, rgba(230, 237, 245, 0.78) 100%),
		url("../images/login/whscan-work.jpg?v=3");
}
body.module-ims {
	background-image:
		linear-gradient(180deg, rgba(230, 237, 245, 0.42) 0%, rgba(230, 237, 245, 0.78) 100%),
		url("../images/login/ims-client.jpg?v=3");
}
body.module-whscan #main.container,
body.module-ims #main.container {
	background: rgba(255, 255, 255, 0.86);
	border-radius: 16px;
	padding: 22px 20px 12px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
body.module-whscan footer,
body.module-ims footer {
	background: rgba(255, 255, 255, 0.78);
}
h1, h2, h3, .navbar-brand, .modal-title {
	font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

.ec-mark {
	width: 28px;
	height: 28px;
	display: inline-block;
	vertical-align: middle;
	margin-right: 8px;
	border-radius: 8px;
}
.navbar-brand {
	display: flex !important;
	align-items: center;
	font-weight: 700;
}
.navbar-brand .ec-mark {
	margin-top: -2px;
}

header.navbar,
.navbar {
	background: #0B3D91 !important;
	color: #fff;
	border: none;
	box-shadow: 0 2px 12px rgba(11, 61, 145, 0.18);
}
.navbar-inverse {
	background-color: #0B3D91 !important;
	border-color: #0B3D91 !important;
}
header.navbar a {
	color: #fff;
}
.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
	background: rgba(0, 198, 242, 0.22) !important;
	color: #fff !important;
}
.navbar-nav .dropdown-menu a {
	color: #0B3D91;
}
.navbar-nav .dropdown-menu a:hover {
	background: #E8F7FC;
	color: #0B3D91;
}

.hredbar {
	height: 4px !important;
	background: linear-gradient(90deg, #0B3D91 0%, #00C6F2 100%) !important;
}

a.dash-item {
	color: #0B3D91;
	border-radius: 12px;
}
a.dash-item:hover,
a.dash-item:active {
	color: #00A8D4;
	background: #E8F7FC;
}

.ui-menu .ui-menu-item a {
	color: #0B3D91;
}
.ui-menu .ui-menu-item a:hover {
	background: #0B3D91;
	color: #fff;
}

footer a {
	color: #0B3D91;
}

.modal-header {
	background: #0B3D91;
	color: #fff;
	border-bottom: none;
}
.modal-title {
	color: #fff;
}
.btn-primary {
	background-color: #0B3D91;
	border-color: #0B3D91;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
	background-color: #09327A;
	border-color: #09327A;
}

.bar-nav,
.bar-tab {
	background-color: #0B3D91;
}
.bar-nav .title {
	color: #fff;
}
.tab-item.active {
	color: #00C6F2;
}

/* Grid view — EasyCargo theme (overrides Yii published grid CSS) */
.grid-view table.items {
	border: 1px solid #B8CBDC;
	border-radius: 12px;
	background: #fff;
	border-collapse: separate;
	border-spacing: 0;
	box-shadow: 0 8px 24px rgba(11, 61, 145, 0.10);
	overflow: hidden;
}
.grid-view table.items th,
.grid-view table.items td {
	border-bottom: 1px solid #D3DFEB;
	border-right: 1px solid #E4EDF5;
	padding: 9px 12px;
	font-size: 13px;
	line-height: 1.35;
	font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}
.grid-view table.items td:last-child,
.grid-view table.items th:last-child {
	border-right: none;
}
.grid-view table.items tbody tr:last-child td {
	border-bottom: none;
}
.grid-view table.items th,
.grid-view table.sub-items th,
table.detail-view thead th {
	color: #fff !important;
	background: #0B3D91 none !important;
	background-image: none !important;
	border-color: #09327A;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-align: center;
}
.grid-view table.items th a {
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
}
.grid-view table.items th a:hover {
	color: #00E5FF !important;
}
.grid-view thead {
	background-color: #0B3D91;
}
.grid-view table.items tr.even,
.grid-view table.items tr:nth-child(even) {
	background: #FFFFFF !important;
}
.grid-view table.items tr.odd,
.grid-view table.items tr:nth-child(odd) {
	background: #F0F5FA !important;
}
.grid-view table.items tr:hover,
.grid-view table.items tbody tr:hover {
	background: #E4F6FC !important;
}
.grid-view table.items tr.selected,
.grid-view table.items tr:hover.selected {
	background: #D4F4FC !important;
}
.grid-view table.items thead tr:hover {
	background: #0B3D91 !important;
}
.grid-view table.items thead tr.filters:hover,
.grid-view table.items thead tr.filters:hover td {
	background: #E4F6FC !important;
}
.grid-view table.items tr.filters td {
	background: #EEF4F9 !important;
	border-color: #D3DFEB;
}
.grid-view .filters input,
.grid-view .filters select {
	width: 100%;
	border: 1px solid #B8CBDC;
	border-radius: 8px;
	padding: 5px 8px;
	background: #fff;
	color: #1E293B;
	box-sizing: border-box;
}
.grid-view .filters input:focus,
.grid-view .filters select:focus {
	outline: none;
	border-color: #00C6F2;
	box-shadow: 0 0 0 2px rgba(0, 198, 242, 0.16);
}
.grid-view .empty {
	color: #64748B;
	font-style: italic;
}
.grid-view .summary {
	color: #64748B;
}
.grid-view .footerSum {
	background: #D4F4FC;
}
.grid-view table.items .type_row,
.grid-view table.items .type_row a {
	font-size: 14px !important;
	font-weight: 600;
	color: #0B3D91;
	letter-spacing: -0.01em;
}

ul.yiiPager a:link,
ul.yiiPager a:visited {
	border: 1px solid #D7E6F4;
	color: #0B3D91;
	border-radius: 8px;
	padding: 3px 8px;
	text-decoration: none;
}
ul.yiiPager a:hover {
	border-color: #00C6F2;
	color: #00A8D4;
}
ul.yiiPager .selected a {
	background: #0B3D91 !important;
	border-color: #0B3D91;
	color: #fff !important;
}

table.detail-view tr.odd { background: #F4F8FC; }
table.detail-view tr.even { background: #FFFFFF; }

div.search-form {
	background: #F4F8FC;
	border: 1px solid #D7E6F4;
	border-radius: 12px;
}

/* Glass login (WHScan / IMS and other module modals) */
#login-bg {
	position: fixed;
	inset: 0;
	z-index: 1040;
	overflow: hidden;
	pointer-events: none;
}
#login-bg.is-hidden {
	display: none;
}
#login-bg .login-bg-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
	transform: scale(1);
	transition: opacity 1.4s ease, transform 8s ease-out;
}
#login-bg .login-bg-slide.is-active {
	opacity: 1;
	transform: scale(1.06);
}
#login-bg.is-fixed .login-bg-slide,
#login-bg.is-fixed .login-bg-slide.is-active {
	opacity: 1;
	transform: none;
	transition: none;
}
#login-bg.is-fixed .login-bg-dots {
	display: none;
}
#login-bg .login-bg-dim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(15, 23, 42, 0.16) 100%);
}
#login-bg .login-bg-dots {
	position: absolute;
	left: 50%;
	bottom: 22px;
	z-index: 1;
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.38);
	transform: translateX(-50%);
}
#login-bg .login-bg-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
}
#login-bg .login-bg-dot.is-active {
	background: #ffffff;
	transform: scale(1.15);
}
body.login-open > *:not(#login-bg):not(#modal-login) {
	visibility: hidden;
}
body.login-open .modal-backdrop {
	opacity: 0 !important;
	background: transparent;
}
#modal-login {
	z-index: 1050;
}
#modal-login .modal-dialog {
	width: 400px;
	max-width: 92vw;
	margin: 0 auto;
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}
#modal-login.fade .modal-dialog,
#modal-login.in .modal-dialog,
#modal-login.fade.in .modal-dialog {
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}
#modal-login .modal-content {
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 24px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
	background: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	overflow: hidden;
}
#modal-login .modal-header {
	padding: 32px 32px 8px;
	text-align: center;
	border-bottom: none;
	background: transparent;
}
#modal-login .login-card-header {
	padding: 0;
	text-align: center;
}
#modal-login .login-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 22px;
}
#modal-login .login-logo-mark {
	width: 48px;
	height: 48px;
	display: block;
	border-radius: 12px;
}
#modal-login .login-brand-name {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #1e293b;
	line-height: 1;
}
#modal-login .login-welcome {
	margin: 0;
	font-size: 1.55rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #1e293b;
	line-height: 1.25;
}
#modal-login .login-subtitle {
	margin: 8px 0 0;
	font-size: 13px;
	font-weight: 500;
	color: #94a3b8;
}
#modal-login .modal-body {
	padding: 22px 32px 8px;
	background: transparent;
}
#modal-login .form-group {
	margin-bottom: 16px;
}
#modal-login .form-group label,
#modal-login .modal-body label {
	display: block;
	font-size: 13px;
	color: #334155;
	margin-bottom: 8px;
	font-weight: 600;
}
#modal-login .form-control {
	height: auto;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 500;
	border: 1px solid #e5e9f0;
	border-radius: 12px;
	background: rgba(247, 248, 251, 0.92);
	color: #0f172a;
	box-shadow: none;
}
#modal-login .form-control:focus {
	border-color: #00C6F2;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(0, 198, 242, 0.18);
}
#modal-login .modal-footer {
	padding: 8px 32px 8px;
	text-align: center;
	border-top: none;
	background: transparent;
}
#modal-login .modal-footer .btn-primary,
#modal-login #button_login .btn,
#modal-login #button_google_login .btn {
	width: 100%;
	margin: 0;
	padding: 13px 18px;
	font-size: 15px;
	font-weight: 700;
	border: none;
	border-radius: 12px;
	background: linear-gradient(90deg, #0B3D91 0%, #00C6F2 100%);
	color: #fff;
	box-shadow: 0 8px 18px rgba(11, 61, 145, 0.28);
}
#modal-login .modal-footer .btn-primary:hover,
#modal-login .modal-footer .btn-primary:focus,
#modal-login .modal-footer .btn-primary:active {
	background: linear-gradient(90deg, #0B3D91 0%, #00C6F2 100%);
	filter: brightness(1.05);
	color: #fff;
}
#modal-login .login-card-footer {
	padding: 8px 20px 22px;
	text-align: center;
	font-size: 12px;
	font-weight: 500;
	color: #94a3b8;
	margin: 0;
}
#modal-login #lf_capcha {
	margin-top: 8px;
	max-width: 100%;
	border-radius: 8px;
	cursor: pointer;
}
#modal-login #googel_code {
	margin-top: 8px;
	border-radius: 12px;
}


