.align-left {
	text-align: left !important;
}

:root {
	--color-ingsys: rgba(56, 79, 140, 1);
}

.text-ingsys {
	font-weight: bold;
	color: rgba(56, 79, 140, 1);
}

.btn {
	font-size: 0.78rem;
}
h4 {
	font-size: 0.9rem;
}

.container {
	overflow: hidden;
}

.bg-success {
	background-color: #28a7451f !important;
}

.bg-danger {
	background-color: #dc35454f !important;
}

.party-selection-item {
	cursor: pointer;
}

.party-selection-item:hover {
	background-color: rgba(0, 0, 0, 0.1);
}

.darken-hover:hover {
	background-color: rgba(0, 0, 0, 0.1);
}

.align-items-center {
	display: flex;
	align-items: center;
}
.col-sm-1,
.col-sm-2 {
	width: 50px;
	font-size: 13px;
}

.show {
	cursor: pointer;
}

.modal-content {
	width: 100%;
}

@media (max-width: 800px) {
	.line-col {
		display: block !important;
		text-align: center !important;
	}

	.media-w-75 {
		width: 75%;
	}

	.btns-bar {
		min-width: 200px !important;
		height: auto !important;
		clear: both !important;
		float: none !important;
	}

	.btns-bar button {
		display: block;
		width: 100%;
		float: none !important;
		clear: both !important;
		margin: 5px;
	}

	.btn-group-lg > .btn,
	.btn-lg {
		padding: 0 !important;
	}

	.table-m tbody th {
		font-size: 11px !important;
	}

	.btn {
		font-size: 0.7rem !important;
	}

	h4 {
		font-size: 1.3rem !important;
	}
}

.btns-bar {
	min-width: 485px;
}

.modal-lg {
	max-width: 1300px;
	min-width: 90%;
}

a {
	text-decoration: none;
}

a:hover {
	text-decoration: none;
}

.btn-success2 {
	color: white;
	background-color: #117a65;
}

.btn-success2:hover {
	color: white;
	background-color: #138d75;
}

.btn-success3 {
	color: white;
	background-color: #2c67b3;
}

.btn-success3:hover {
	color: white;
	background-color: #22528e;
}

.not-hover:hover {
	background-color: inherit !important;
}

.navbar-toggler-icon {
	color: white;
}

.pointer {
	cursor: pointer;
}

.bg-grey {
	background-color: #fafafa;
}

.btn-primary {
	background-color: #384f8c;
	border-color: #384f8c;
}

button a {
	color: inherit;
	text-decoration: none;
}

.decoration-none {
	text-decoration: none;
}

.decoration-none:hover {
	text-decoration: none;
}

button a:hover {
	color: inherit;
	text-decoration: none;
}

.logo {
	max-height: 200px;
	text-align: center;
	padding: 5px 0;
	min-width: 1920px;
}

.logo2 {
	height: 100px;
	text-align: center;
	padding: 0;
	margin: 0;
}

.bg-f {
	background-color: #fafafa;
	min-height: 385px;
	max-height: 500px;
	overflow: scroll;
}

.navbar-expand-lg .navbar-nav .dropdown-menu {
	transform: translateX(0%);
}

.main-nav li {
	display: inherit;
}

.navbar.navbar-expand-lg {
	background-color: #384f8c;
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05),
		inset 0 -1px 0 rgba(0, 0, 0, 0.1);
	padding: 15px;
}

.navbar.navbar-expand-lg a {
	color: white;
}

.navbar.navbar-expand-lg a:hover {
	color: white;
	text-shadow: white 0px 0px 0px;
}

.navbar.navbar-expand-lg .dropdown-menu a {
	color: #384f8c;
}

.navbar.navbar-expand-lg .dropdown-menu a:hover {
	color: #384f8c;
	text-shadow: #384f8c 0px 0px 0px;
}

.nav-link {
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	background-color: rgba(55, 55, 55, 0.2);
	margin: 5px;
	border-radius: 5px;
}

.nav.navbar-nav {
	padding-right: 0 !important;
}

.nav-item {
	display: block !important;
	width: 100%;
	text-align: center;
}

.nav-link:nth-child(1) {
	border-left: none;
}

.dropdown-item.active,
.dropdown-item:active {
	background-color: #70a2d74a;
}

.table .thead-dark th {
	vertical-align: middle;
	font-size: 0.7rem;
}

.table .thead-dark #Hora {
	width: 5%;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center right;
}

.table .thead-dark .both {
	background-image: url(https://cdn.datatables.net/1.10.20/images/sort_both.png);
}

.table .thead-dark .asc {
	background-image: url(https://cdn.datatables.net/1.10.20/images/sort_asc.png);
}

.table .thead-dark .desc {
	background-image: url(https://cdn.datatables.net/1.10.20/images/sort_desc.png);
}

#foto-div {
	padding: 10px 10px 30px 10px;
}

#foto {
	width: 300px;
	height: 100%;
	margin: 0 auto;
}

.form-check.first {
	padding-top: 6px;
}

.form1 .form-check {
	padding-left: 0;
}

.form1 .form-check-input {
	margin: 0 0 0 10px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.marked {
	background-color: #6c757d;
	color: white;
}

.form2 input {
	cursor: pointer;
}

.form-align {
	width: 100%;
	margin: 0 auto;
	text-align: center;
}

.form-align .label {
	width: 75%;
	cursor: pointer;
	padding-left: 20px;
	border: 1px solid #c7cfdd61;
	padding: 7px 0;
	border-radius: 2px;
	margin: 3px 0;
}

.form-align .label:hover {
	color: #0056b3;
}

.btnhide {
	display: none;
}

.box {
	box-sizing: border-box;
	border: 1px solid #dee2e630;
}

form .multiselect-native-select .btn-group {
	display: block;
	margin: 0 auto;
	width: 100% !important;
}

.multiselect.dropdown-toggle.btn.btn-default {
	max-width: 250px;
}

form .dropdown-menu {
	display: inline-block !important;
	width: 100% !important;
	text-align: center;
	position: relative;
	border: 1px solid #dee2e6de;
	background-color: transparent;
	border-bottom: none;
}

form .input-group .form-control.multiselect-search {
	border-radius: 5px !important;
	cursor: text;
}

form .multiselect-search .input-group-btn {
	display: none !important;
}

form .multiselect-item span {
	display: none;
}

form .multiselect.dropdown-toggle::after {
	display: none;
}

form .multiselect-container .input-group {
	margin: 0;
	padding: 5px;
}

form .multiselect-container li a label {
	padding: 3px 0 3px 0;
}

.form1 select {
	margin-top: 15px;
}

.form1 h5 {
	font-size: 18px;
	margin-top: 25px;
}

.route_info .w-100 {
	width: 99% !important;
}

.route_info .w-14 {
	width: 13% !important;
	display: inline-block;
}

.route_info .col-md-4 {
	width: 32.3333% !important;
	display: inline-block;
}

.route_info .col-md-6 {
	width: 49.5% !important;
	display: inline-block;
}

.route_info .col-md-3 {
	width: 24.5% !important;
	display: inline-block;
}

label.checkbox {
	color: #212529;
}

label.checkbox:hover {
	color: #0056b3;
}

.multiselect-container > li > a > label.radio,
.multiselect-container > li > a > label.checkbox {
	margin: 0;
	text-align: center;
	width: 100%;
	border-bottom: 1px solid #c7cfdd61;
	padding: 7px 0;
}

.prebody .list-group-item-light.list-group-item-action:hover {
	background-color: #e0f3ff !important;
}

.prebody .not-hover.list-group-item-light.list-group-item-action.grey {
	border: none;
	background-color: #fafafa;
}

.shadow {
	border-radius: 6px;
	box-shadow: 0px 0px 4px rgb(227, 227, 227) !important;
}

.prebody .not-hover.list-group-item-light.list-group-item-action.grey:hover {
	background-color: #fafafa !important;
}

#gallery ul {
	list-style: none;
	font-size: 0;
	padding: 0;
}

#gallery li {
	width: 25%;
	height: 150px;
	background-color: #fafafa;
	display: inline-block;
	box-sizing: border-box;
	border: 2px solid #f8f9fa;
	position: relative;
	overflow: hidden;
}

#gallery a {
	color: #fff;
	text-shadow: 2px 2px 2px #333;
}

#gallery img {
	max-width: 100%;
	height: auto;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	min-width: 100%;
}

#gallery div {
	display: block;
	width: 100%;
	height: 100%;
	text-align: center;
}

#gallery span {
	font-size: 18px;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 80%;
	transform: translate(-50%, -50%);
	z-index: 2;
}

#gallery .opacity {
	font-size: 16px;
	position: absolute;
	top: -50%;
	left: 50%;
	width: 100%;
	transform: translate(-50%, -50%);
	display: inline-block;
	background-color: #fafafac4;
	z-index: 1;
	transition: top 0.2s linear;
}

#gallery li:hover .opacity {
	top: 50%;
}

#mlkeyboard {
	z-index: 10000000000000000;
}

.invert {
	transform: rotateY(180deg);
}

.dropdown-menu.hidden {
	display: none !important;
}

.subselect {
	border-top: none !important;
	border-bottom: 1px solid #f1f1f1 !important;
	border-left: 1px solid #f1f1f1 !important;
	border-right: 1px solid #f1f1f1 !important;
	background-color: #fafafa !important;
	color: #4497ea;
	font-weight: bold;
	font-size: 16px;
}

.subselect li {
	cursor: pointer;
}

.hidden {
	display: none;
}

.areturn:hover {
	text-decoration: none;
}

.container {
	max-width: 1600px;
}

.form-signin.col-6 {
	display: inline-block !important;
	width: 100%;
	max-width: 100%;
	flex: initial;
}

.table-m {
	font-size: 0.77rem;
}

.table-m td {
	padding: 0 1px;
}

.table-m tr {
	padding: 0 1px;
}

.table-m th {
	padding: 10px 1px;
}

.table-m tbody th {
	font-size: 12px;
}

.nmpd-grid {
	z-index: 10000000000;
}

.quick_products-item:hover {
	background-color: rgba(0, 0, 0, 0.15);
	cursor: pointer;
}

.modalbigger {
	max-width: 730px !important;
}

/*Card*/
.card-input-element+.card {
  height: calc(36px + 2*1rem);
  color: var(--primary);
  -webkit-box-shadow: none;
  box-shadow: none;
  border: 2px solid transparent;
  border-radius: 4px;
}

.card-input-element+.card:hover {
  cursor: pointer;
}

.card-input-element:checked+.card {
  border: 2px solid var(--primary);
  -webkit-transition: border .3s;
  -o-transition: border .3s;
  transition: border .3s;
}

.card-input-element:checked+.card::after {
  content: '\e5ca';
  color: #AFB8EA;
  font-family: 'Material Icons';
  font-size: 24px;
  -webkit-animation-name: fadeInCheckbox;
  animation-name: fadeInCheckbox;
  -webkit-animation-duration: .5s;
  animation-duration: .5s;
  -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@-webkit-keyframes fadeInCheckbox {
  from {
    opacity: 0;
    -webkit-transform: rotateZ(-20deg);
  }
  to {
    opacity: 1;
    -webkit-transform: rotateZ(0deg);
  }
}

@keyframes fadeInCheckbox {
  from {
    opacity: 0;
    transform: rotateZ(-20deg);
  }
  to {
    opacity: 1;
    transform: rotateZ(0deg);
  }
}


@media (min-width: 992px) {
	.navbar-expand-lg .navbar-nav .dropdown-menu {
		transform: translateX(-39%);
	}

	.in-out {
		width: 50%;
		max-width: 50%;
	}

	.nav-link {
		border-left: 5px solid transparent;
		border-right: 5px solid transparent;
		background-color: transparent;
		margin: 0;
		border-radius: 0;
	}

	.nav.navbar-nav {
		padding-right: 50px !important;
	}

	.nav-item {
		display: inline-block !important;
		width: initial;
		text-align: center;
	}

	.nav-link {
		display: inline-block;
	}
}

@media (min-width: 1000px) {
	.form-signin.col-6 {
		flex: 0 0 50%;
	}
}

#subfamilias #familias {
	width: 100% !important;
}

ul.multiselect-container.dropdown-menu {
	width: 100% !important;
}

@media (max-width: 700px) {
	.low-vw-flex {
		display: flex !important;
		flex-direction: column !important;
	}

	.low-vw-flex > h1 {
		width: 100% !important;
		max-width: 100% !important;
	}

	.low-vw-flex > div {
		width: 100% !important;
		max-width: 100% !important;
	}

	#main_form tbody input {
		/*max-width: 60px !important;*/
	}

	.custom-btn {
		font-size: 1rem !important;
	}
}

.special-input-wrap {
	position: relative;
}

.special-input-euro {
	-moz-appearance: textfield;
	-webkit-appearance: textfield;
	margin: 0;
}

.special-span-euro {
	position: absolute;
	display: block;
	top: 50%;
	transform: translate(-15px, -50%);
	right: 0;
}

@media screen and (max-width: 1300px) {
	.btn {
		padding: 3px;
		margin: 2px;
	}
}

:root {
	--portal-ink: #241c20;
	--portal-muted: #70666b;
	--portal-primary: #772443;
	--portal-primary-dark: #59162f;
	--portal-primary-soft: #f6eaf0;
	--portal-accent: #bd7b36;
	--portal-success: #277657;
	--portal-warning: #9a621d;
	--portal-danger: #a73c49;
	--portal-border: #e8e0e3;
	--portal-surface: #ffffff;
	--portal-background: #f7f4f2;
	--portal-shadow: 0 18px 45px rgba(63, 31, 42, 0.08);
}

.customer-portal {
	min-height: 100vh;
	background:
		radial-gradient(circle at 8% 4%, rgba(189, 123, 54, 0.09), transparent 26rem),
		var(--portal-background);
	color: var(--portal-ink);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.portal-navbar {
	min-height: 74px;
	padding: 0.65rem max(1.25rem, calc((100vw - 1320px) / 2));
	background: rgba(255, 255, 255, 0.97) !important;
	border-bottom: 1px solid rgba(119, 36, 67, 0.1);
	box-shadow: 0 8px 25px rgba(62, 31, 41, 0.04) !important;
	position: sticky;
	top: 0;
	z-index: 1030;
}

.portal-navbar a,
.navbar.navbar-expand-lg.portal-navbar a {
	color: var(--portal-ink);
}

.portal-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	line-height: 1.05;
	margin-right: 2rem;
}

.portal-brand:hover {
	color: var(--portal-primary) !important;
}

.portal-brand-mark {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 14px 14px 14px 5px;
	background: var(--portal-primary);
	color: #fff;
	font-family: Georgia, serif;
	font-size: 1.45rem;
	font-weight: 700;
	box-shadow: 0 8px 20px rgba(119, 36, 67, 0.2);
}

.portal-brand strong,
.portal-brand small {
	display: block;
}

.portal-brand strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.25rem;
	letter-spacing: -0.015em;
}

.portal-brand small {
	margin-top: 0.22rem;
	color: var(--portal-muted);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.customer-portal .main-nav {
	align-items: center;
	gap: 0.25rem;
}

.customer-portal .nav-item {
	display: list-item !important;
	width: auto;
}

.customer-portal .nav-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.65rem 0.85rem !important;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--portal-muted) !important;
	font-size: 0.88rem;
	font-weight: 650;
}

.customer-portal .nav-link:hover,
.customer-portal .nav-link.active {
	background: var(--portal-primary-soft);
	color: var(--portal-primary) !important;
	text-shadow: none !important;
}

.portal-user-nav {
	align-items: center;
}

.portal-user-link {
	gap: 0.55rem !important;
}

.portal-avatar {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #efe5df;
	color: var(--portal-primary);
	font-weight: 800;
}

.portal-navbar .dropdown-menu {
	margin-top: 0.65rem;
	padding: 0.45rem;
	border: 1px solid var(--portal-border);
	border-radius: 12px;
	box-shadow: var(--portal-shadow);
}

.portal-navbar .dropdown-item {
	padding: 0.65rem 0.8rem;
	border-radius: 8px;
}

.portal-navbar .dropdown-item i {
	width: 1.3rem;
	color: var(--portal-primary);
}

.portal-main {
	max-width: 1320px;
	min-height: calc(100vh - 145px);
	overflow: visible;
	padding-top: 2.4rem;
	padding-bottom: 4rem;
}

.portal-page-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 1.6rem;
}

.portal-eyebrow {
	margin: 0 0 0.35rem;
	color: var(--portal-primary);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.portal-title {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.04;
}

.portal-subtitle {
	max-width: 680px;
	margin: 0.6rem 0 0;
	color: var(--portal-muted);
	font-size: 0.98rem;
	line-height: 1.6;
}

.portal-customer-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	max-width: 360px;
	padding: 0.7rem 0.95rem;
	border: 1px solid var(--portal-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--portal-muted);
	font-size: 0.82rem;
}

.portal-customer-pill i {
	color: var(--portal-primary);
}

.portal-card {
	border: 1px solid rgba(119, 36, 67, 0.09);
	border-radius: 18px;
	background: var(--portal-surface);
	box-shadow: var(--portal-shadow);
}

.portal-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
	padding: 1rem;
}

.portal-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.customer-portal .btn {
	min-height: 42px;
	margin: 0;
	padding: 0.65rem 1rem;
	border-radius: 10px;
	font-size: 0.85rem;
	font-weight: 750;
	box-shadow: none;
}

.customer-portal .btn i {
	margin-right: 0.4rem;
}

.customer-portal .btn-primary,
.customer-portal .btn-success {
	border-color: var(--portal-primary);
	background: var(--portal-primary);
	color: #fff;
}

.customer-portal .btn-primary:hover,
.customer-portal .btn-success:hover {
	border-color: var(--portal-primary-dark);
	background: var(--portal-primary-dark);
}

.customer-portal .btn-outline-primary {
	border-color: rgba(119, 36, 67, 0.28);
	color: var(--portal-primary);
}

.customer-portal .btn-outline-primary:hover {
	background: var(--portal-primary-soft);
	color: var(--portal-primary-dark);
}

.customer-portal .btn-light,
.customer-portal .btn-secondary {
	border-color: var(--portal-border);
	background: #fff;
	color: var(--portal-ink);
}

.customer-portal .btn-danger,
.customer-portal .btn-outline-danger {
	border-color: rgba(167, 60, 73, 0.25);
	background: #fff5f6;
	color: var(--portal-danger);
}

.portal-notice {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 1rem;
	padding: 0.85rem 1rem;
	border: 1px solid #ead3af;
	border-radius: 12px;
	background: #fff9ef;
	color: #76501c;
	font-size: 0.86rem;
}

.portal-notice i {
	margin-top: 0.15rem;
	color: var(--portal-accent);
}

.portal-table-card {
	overflow: hidden;
}

.portal-table {
	margin: 0;
	color: var(--portal-ink);
}

.portal-table thead th {
	padding: 0.85rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--portal-border);
	background: #fbf9f8;
	color: var(--portal-muted);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.portal-table tbody td,
.portal-table tbody th {
	padding: 1rem;
	border-top: 1px solid #f0eaec;
	vertical-align: middle;
	font-size: 0.9rem;
}

.portal-table tbody tr:first-child td,
.portal-table tbody tr:first-child th {
	border-top: 0;
}

.portal-table tbody tr:hover {
	background: #fdfbfa;
}

.portal-number {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-weight: 750;
}

.portal-status {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.32rem 0.6rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
}

.portal-status::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.portal-status-draft,
.portal-status-quotation {
	background: #fff3dc;
	color: var(--portal-warning);
}

.portal-status-confirmed,
.portal-status-done,
.portal-status-paid,
.portal-status-posted {
	background: #e9f5ef;
	color: var(--portal-success);
}

.portal-empty {
	padding: 4.5rem 1.5rem;
	text-align: center;
}

.portal-empty-icon {
	display: inline-grid;
	place-items: center;
	width: 62px;
	height: 62px;
	margin-bottom: 1rem;
	border-radius: 20px;
	background: var(--portal-primary-soft);
	color: var(--portal-primary);
	font-size: 1.45rem;
}

.portal-empty h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.45rem;
}

.portal-empty p {
	max-width: 430px;
	margin: 0.4rem auto 0;
	color: var(--portal-muted);
}

.portal-filter-form {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 0.75rem;
	width: 100%;
}

.portal-field {
	min-width: 170px;
	flex: 1 1 170px;
}

.portal-field label {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--portal-muted);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.customer-portal .form-control,
.customer-portal select.form-control,
.portal-quantity {
	height: 44px;
	border: 1px solid #dcd2d6;
	border-radius: 10px;
	background-color: #fff;
	color: var(--portal-ink);
	font-size: 0.9rem;
}

.customer-portal .form-control:focus,
.portal-quantity:focus {
	border-color: rgba(119, 36, 67, 0.6);
	box-shadow: 0 0 0 3px rgba(119, 36, 67, 0.1);
}

.portal-quantity {
	width: 110px;
	padding: 0.55rem 0.7rem;
	text-align: right;
}

.portal-detail-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.85rem;
	margin-bottom: 1rem;
}

.portal-stat {
	padding: 1.15rem;
}

.portal-stat-label {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--portal-muted);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.portal-stat-value {
	font-size: 1rem;
	font-weight: 750;
}

.portal-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 1.25rem;
	border-bottom: 1px solid var(--portal-border);
}

.portal-section-heading h2 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.25rem;
}

.portal-summary {
	display: flex;
	justify-content: flex-end;
	padding: 1.2rem;
	border-top: 1px solid var(--portal-border);
	background: #fbf9f8;
}

.portal-summary dl {
	display: grid;
	grid-template-columns: auto auto;
	gap: 0.45rem 2rem;
	min-width: 260px;
	margin: 0;
}

.portal-summary dt {
	color: var(--portal-muted);
	font-weight: 600;
}

.portal-summary dd {
	margin: 0;
	text-align: right;
	font-weight: 800;
}

.portal-template-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.portal-template-card {
	display: block;
	padding: 1.35rem;
	color: var(--portal-ink);
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.portal-template-card:hover {
	color: var(--portal-ink);
	transform: translateY(-2px);
	box-shadow: 0 22px 50px rgba(63, 31, 42, 0.12);
}

.portal-template-icon {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin-bottom: 1rem;
	border-radius: 13px;
	background: var(--portal-primary-soft);
	color: var(--portal-primary);
}

.portal-template-card h2 {
	margin: 0 0 0.45rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.3rem;
}

.portal-template-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 1rem;
}

.portal-day {
	padding: 0.28rem 0.55rem;
	border-radius: 999px;
	background: #f2eeec;
	color: var(--portal-muted);
	font-size: 0.7rem;
	font-weight: 750;
}

.portal-checkboxes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.portal-day-check input {
	position: absolute;
	opacity: 0;
}

.portal-day-check span {
	display: inline-block;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--portal-border);
	border-radius: 999px;
	background: #fff;
	color: var(--portal-muted);
	cursor: pointer;
	font-size: 0.78rem;
	font-weight: 750;
}

.portal-day-check input:checked + span {
	border-color: var(--portal-primary);
	background: var(--portal-primary-soft);
	color: var(--portal-primary);
}

.portal-signature {
	max-width: 280px;
	max-height: 140px;
	object-fit: contain;
	border: 1px solid var(--portal-border);
	border-radius: 10px;
	background: #fff;
}

.portal-modal .modal-content {
	border: 0;
	border-radius: 18px;
	box-shadow: 0 28px 80px rgba(42, 20, 28, 0.22);
}

.portal-modal .modal-header,
.portal-modal .modal-footer {
	border-color: var(--portal-border);
}

.portal-modal .modal-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.35rem;
}

.portal-footer {
	display: flex;
	justify-content: space-between;
	max-width: 1320px;
	margin: 0 auto;
	padding: 1.25rem;
	border-top: 1px solid rgba(119, 36, 67, 0.1);
	color: var(--portal-muted);
	font-size: 0.75rem;
}

@media (max-width: 991.98px) {
	.portal-navbar {
		padding: 0.65rem 1rem;
	}

	.portal-navbar .navbar-collapse {
		padding-top: 0.8rem;
	}

	.customer-portal .main-nav,
	.portal-user-nav {
		align-items: stretch;
	}

	.customer-portal .nav-item,
	.customer-portal .nav-link {
		width: 100%;
	}

	.portal-detail-grid,
	.portal-template-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767.98px) {
	.portal-main {
		padding: 1.5rem 0.9rem 3rem;
	}

	.portal-page-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 1rem;
	}

	.portal-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.portal-actions,
	.portal-actions .btn {
		width: 100%;
	}

	.portal-user-name {
		display: inline;
	}

	.portal-table-card {
		overflow: visible;
	}

	.portal-table thead {
		display: none;
	}

	.portal-table,
	.portal-table tbody,
	.portal-table tr,
	.portal-table td,
	.portal-table th {
		display: block;
		width: 100%;
	}

	.portal-table tbody tr {
		margin-bottom: 0.75rem;
		padding: 0.75rem;
		border: 1px solid var(--portal-border);
		border-radius: 13px;
		background: #fff;
	}

	.portal-table tbody td,
	.portal-table tbody th {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		padding: 0.45rem 0;
		border: 0;
		text-align: right !important;
	}

	.portal-table tbody td::before,
	.portal-table tbody th::before {
		content: attr(data-label);
		color: var(--portal-muted);
		font-size: 0.68rem;
		font-weight: 800;
		letter-spacing: 0.05em;
		text-align: left;
		text-transform: uppercase;
	}

	.portal-table .portal-row-action {
		margin-top: 0.45rem;
		padding-top: 0.75rem;
		border-top: 1px solid var(--portal-border);
	}

	.portal-table .portal-row-action .btn {
		width: 100%;
	}

	.portal-quantity {
		width: 130px;
	}

	.portal-footer {
		align-items: center;
		flex-direction: column;
		gap: 0.35rem;
	}
}

.portal-login {
	min-height: 100vh;
	margin: 0;
	background: #f7f4f2;
	color: var(--portal-ink);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.portal-login-shell {
	display: grid;
	grid-template-columns: minmax(360px, 0.9fr) minmax(440px, 1.1fr);
	min-height: 100vh;
}

.portal-login-intro {
	display: flex;
	justify-content: space-between;
	flex-direction: column;
	padding: clamp(2.5rem, 6vw, 6rem);
	background:
		linear-gradient(rgba(75, 20, 43, 0.93), rgba(75, 20, 43, 0.97)),
		radial-gradient(circle at top right, #c58c50, transparent 55%);
	color: #fff;
}

.portal-login-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	line-height: 1.05;
}

.portal-login-brand .portal-brand-mark {
	background: #fff;
	color: var(--portal-primary);
}

.portal-login-brand strong,
.portal-login-brand small {
	display: block;
}

.portal-login-brand strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.35rem;
}

.portal-login-brand small {
	margin-top: 0.2rem;
	opacity: 0.72;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.portal-login-intro .portal-eyebrow {
	color: #e7b982;
}

.portal-login-intro h1 {
	max-width: 540px;
	margin: 0 0 1.25rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.7rem, 5vw, 5rem);
	line-height: 0.98;
	letter-spacing: -0.045em;
}

.portal-login-intro p:not(.portal-eyebrow) {
	max-width: 520px;
	margin: 0;
	opacity: 0.78;
	font-size: 1.05rem;
	line-height: 1.7;
}

.portal-login-intro ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
	opacity: 0.82;
	font-size: 0.8rem;
}

.portal-login-intro li i {
	margin-right: 0.35rem;
	color: #e7b982;
}

.portal-login-form-wrap {
	display: grid;
	place-items: center;
	padding: 2rem;
	background:
		radial-gradient(circle at 90% 10%, rgba(189, 123, 54, 0.12), transparent 20rem),
		#f7f4f2;
}

.portal-login-card {
	width: min(100%, 460px);
	padding: clamp(2rem, 5vw, 3.5rem);
	border: 1px solid rgba(119, 36, 67, 0.09);
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--portal-shadow);
}

.portal-login-card h2 {
	margin-bottom: 0.45rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2.2rem;
	letter-spacing: -0.025em;
}

.portal-login-card label {
	margin-bottom: 0.4rem;
	font-size: 0.78rem;
	font-weight: 750;
}

.portal-input-icon {
	position: relative;
}

.portal-input-icon > i {
	position: absolute;
	top: 50%;
	left: 0.9rem;
	transform: translateY(-50%);
	z-index: 1;
	color: #9a8e93;
}

.portal-input-icon .form-control {
	height: 50px;
	padding-left: 2.7rem;
	border: 1px solid #dcd2d6;
	border-radius: 11px;
}

.portal-input-icon .form-control:focus {
	border-color: rgba(119, 36, 67, 0.65);
	box-shadow: 0 0 0 3px rgba(119, 36, 67, 0.1);
}

.portal-login-card .btn-primary {
	height: 50px;
	margin-top: 0.75rem;
	border: 0;
	border-radius: 11px;
	background: var(--portal-primary);
	font-weight: 750;
}

.portal-login-card .btn-primary:hover {
	background: var(--portal-primary-dark);
}

.portal-login-help {
	margin: 1.5rem 0 0;
	color: var(--portal-muted);
	font-size: 0.76rem;
	text-align: center;
}

@media (max-width: 900px) {
	.portal-login-shell {
		grid-template-columns: 1fr;
	}

	.portal-login-intro {
		min-height: 340px;
		padding: 2rem;
	}

	.portal-login-intro h1 {
		font-size: clamp(2.3rem, 10vw, 3.5rem);
	}

	.portal-login-intro ul {
		display: none;
	}
}
