@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");

:root {
	--gray-medium: #F7F7F7;
	--gray-light: #EDEBE9;
	--gray-border: #C6C7C8;
	--white-soft: #F9FAFB;
	--highlight-input: #FFCB99;
	--speech-radius: .5em;
}

body {
	overflow: auto;
	font-family: "Poppins", sans-serif;
	background-color: var(--gray-medium);
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

a { 
	text-decoration: none; 
}

li { list-style: none; }

input::placeholder {
	color: var(--bs-dark);
	transition: color 0.3s ease;
}

input:focus::placeholder {
	color: var(--bs-dark);
}

input:not(:focus)::placeholder {
	color: var(--bs-secondary);
}

a,
button,
.alert {
	display: flex !important;
	align-items: center !important;
}

.alert { height: 34px; }

body.modal-open {
	overflow: hidden !important;
	position: fixed;
	width: 100%;
}

.modal-dialog { margin: auto; }
.modal-content { max-width: 90vw; }

.modal .modal-header {
	background-color: var(--bs-dark);
	color: var(--white-soft);
}

#settingsAccordion,
#infoAccordion {
	width: 600px;
	border: solid 1px var(--gray-border);
}

#infoAccordion ul li::before {
	content: "— ";
	color: var(--bs-secondary);
}

.accordion-button {
	background-color: var(--white-soft);
	color: var(--bs-dark);
	box-shadow: none;
	border: none;
	border-bottom: none !important;
}

.accordion-button:not(.collapsed) {
	background-color: var(--bs-warning);
	border: none;
	border-bottom: none !important;
}

.accordion-button:focus {
	box-shadow: none;
	border: none;
	border-bottom: none !important;
	outline: none;
}

.accordion-button::after {
	filter: none;
}

.accordion-button:not(.collapsed) {
	background-color: var(--bs-warning);
}

.accordion-button,
.accordion-button::after {
	transition: all 0.2s ease-in-out;
}

.pencil-btn,
.eye-button {
	border: none;
	background-color: transparent;
	padding: 0.25rem 0.5rem;
}

.pencil-btn:focus,
.eye-button:focus {
	box-shadow: none;
	outline: none;
	border: none;
}

.form-check-input:focus:not(:checked),
.form-check-input {
	background-color: var(--gray-light);
	border-color: var(--gray-light);
}

.form-check-input:focus {
	box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.4);
	border-color: var(--bs-dark);
}

.form-check-input:checked {
	background-color: var(--bs-dark);
	border-color: var(--bs-dark);
}

.dropdown-item:hover {
	color: var(--bs-dark);
	background-color: var(--bs-light);
	border-color: var(--bs-light);
}

.custom-sm-btn {
	height: 25px !important;
	width: 40px !important;
	padding: 0px 1em;
	border: 1px solid var(--gray-border);
}
.custom-btn { border: 1px solid var(--gray-border); }
.custom-select, 
.custom-input {
	background-color: #E4E5E0 !important;
	color: var(--bs-dark);
	font-weight: bold !important;
}

.flex-center {
	display: flex;
	align-items: center;
	justify-content: center;
}

.disabled { background-color: #E9ECEF; }
.dispMessage { height: 34px; }
.col-auto + .col-auto > button { margin-left: -15px; }
.inline-message { min-height: 1.5rem; }

.dt-search-placeholder {
	margin-left: -15px;
	position: relative;
	width: 250px;
}

.dt-search-placeholder .bi-search {
	position: absolute;
	top: 50%;
	left: 20px;
	transform: translateY(-50%);
	font-weight: bold;
	color: var(--bs-secondary);
}

.dt-search {
	width: 100%;
	padding-left: 2em;
}

.no-event-or-action { pointer-events: none; }
.hidden { display: none !important; }
.trend-arrow { width: 20px; }
.input-group-text { min-width: 160px; }
.custom-dropdown::after { display: none; }

.graphTable tr th,
.graphTable tr td {
	padding-left: 1em;
	padding-right: 1em;
	min-width: 100px;
	text-align: center;
}

.transactions tbody tr td button,
.batch_details tbody tr td button {
	margin-top: .25em;
	margin-bottom: .25em;
}

table thead tr th {
	margin: 0 !important;
	padding: 0 .5em !important;
	text-align: center !important;
	vertical-align: baseline !important;
}

table tbody tr td, 
table tfoot tr td {
	margin: 0 !important;
	padding: 0 !important;
}

.um tbody tr td select,
.um tbody tr td input,
.um thead tr th {
	height: 25px;
	width: 150px;
	padding: 0 1em;
}

.ipep tbody tr td input,
.ipes tbody tr td input,
.ipfd tbody tr td input,
.iptemp tbody tr td input {
	height: 25px;
	min-width: 120px;
	max-width: 120px;
}

.egg_standards tbody tr td input {
	height: 25px;
	min-width: 150px;
	max-width: 150px;
}

.ipep tbody tr td:nth-child(2),
.ipes tbody tr td:nth-child(2),
.ipfd tbody tr td:nth-child(2),
.iptemp tbody tr td:nth-child(2),
.egg_standards tbody tr td:nth-child(2),
.um tbody tr td:nth-child(2) {
	display: flex;
	align-items: center;
	justify-content: right;
}

.ipep tbody tr td:nth-child(2) input,
.ipes tbody tr td:nth-child(2) input,
.ipfd tbody tr td:nth-child(2) input,
.iptemp tbody tr td:nth-child(2) input,
.egg_standards tbody tr td:nth-child(2) input {
	text-align: right;
	font-weight: bold;
}

.ipep tfoot tr td {
	font-weight: bold !important;
	text-align: center !important;
	border: none !important;
	background-color: #FFF !important;
}

.ipep tbody tr td,
.ipes tbody tr td,
.ipfd tbody tr td,
.iptemp tbody tr td,
.egg_standards tbody tr td,
.um tbody tr td {
	border: none !important;
}

.batch_details tbody tr td,
.batch_details tbody tr td input {
	text-align: right !important;
	padding: 0 0.5em !important;
}

.batch_details tbody tr td:nth-child(4) {
	font-weight: bold;
}

.batch_details thead tr th {
	min-width: 150px !important;
}

.batch_details thead tr:nth-child(2) th:first-child {
	border-right: solid 1px #ccc;
}

.batch_details tbody tr td:first-child {
	border-right: solid 1px var(--gray-border);
	text-align: center !important;
}

.ep_report thead tr:nth-child(2) th,
.es_report thead tr:nth-child(2) th {
	/*border-top: 1px solid var(--gray-border) !important;*/
}

.ep_report thead tr:first-child th,
.es_report thead tr:first-child th {
	background-color: #FFF !important;
}

.ep_report thead tr th,
.es_report thead tr th {
	text-transform: uppercase !important;
	vertical-align: middle !important;
	white-space: nowrap;
}

.ep_report thead tr th:first-child,
.es_report thead tr th:first-child {
	min-width: 130px;
	max-width: 130px;
}

.ep_report thead tr th img,
.es_report thead tr th img {
	float: left;
	width: 100px;
}

.ep_report tbody tr td,
.es_report tbody tr td {
	padding: 0 0.5em !important;
	vertical-align: baseline !important;
	white-space: nowrap;
}

.ep_report tbody tr td:nth-child(n+2),
.es_report tbody tr td:nth-child(n+2) {
	text-align: right !important;
}

.ep_report tbody tr.rowParent td {
	font-weight: bold;
	background-color: #C8C8C8;
}

.ep_report tbody tr.rowChild td {
	background-color: #9AC1E6;
}

.ep_report tbody tr.rowChild td:first-child {
	padding-left: 1em;
	padding-right: 1em;
	text-indent: 2em;
}

.ep_report thead tr:nth-child(3) th,
.ep_report thead tr:nth-child(4) th {
	border: none !important;
	background-color: #FFD865 !important;
	color: var(--bs-dark);
}

.ep_report thead tr:nth-child(4) th:nth-child(n+2),
.ep_report thead tr:nth-child(5) th {
	background-color: var(--bs-dark) !important;
	color: var(--white-soft) !important;
}

.es_report thead tr:nth-child(3) th {
	background-color: #BF8F00 !important;
	color: var(--bs-dark) !important;
}

.es_report thead tr:nth-child(4) th {
	background-color: #1F4E78 !important;
	color: var(--white-soft) !important;
}

.es_report thead tr:nth-child(4) th:nth-child(3),
.es_report thead tr:nth-child(4) th:nth-child(4),
.es_report thead tr:nth-child(5) th {
	background-color: var(--bs-dark) !important;
	color: var(--white-soft) !important;
}

.ep_report tfoot tr td {
	background-color: #A5A5A5 !important;
	color: var(--white-soft) !important;
}

.ep_report tfoot tr td,
.es_report tfoot tr td {
	font-weight: bold !important;
	text-align: right !important;
	padding: 0 0.5em !important;
}

.es_report tfoot tr:first-child td,
.es_report tfoot tr:nth-child(4) td {
	background-color: #A5A5A5 !important;
	color: var(--white-soft) !important;
}

.es_report tfoot tr:first-child td {
	border-radius: 0 !important;
}

.es_report tfoot tr:last-child td:first-child {
	border-radius: 0 0 0 .28571429rem;
}

.es_report tfoot tr:last-child td:last-child {
	border-radius: 0 0 .28571429rem 0;
}

.es_report tbody tr td:nth-child(20) {
	color: #FFC107 !important;
}

.es_report tbody tr td:nth-child(1),
.es_report tbody tr td:nth-child(2) {
	background-color: #C6E0B4 !important;
}

.es_report tbody tr td:nth-child(3),
.es_report tbody tr td:nth-child(5),
.es_report tbody tr td:nth-child(7) {
	background-color: #1F4E78 !important;
	color: var(--white-soft) !important;
}

.es_report tbody tr td:nth-child(4),
.es_report tbody tr td:nth-child(6),
.es_report tbody tr td:nth-child(8) {
	background-color: #9BC2E6 !important;
	color: var(--bs-dark) !important;
}

.es_report tbody tr td:nth-child(n+9) {
	background-color: #548235 !important;
	color: var(--white-soft) !important;
}

.es_report tbody tr td:first-child {
	text-align: right !important;
}

.wrapper { display: flex }

.content {
	min-width: calc(100vw - 250px);
	height: 100%;
}

.main {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	width: fit-content;
	transition: all 0.35s ease-in-out;
	background-color: var(--gray-light);
}

.sidebar-nav { padding: 0 0.45rem; }

a.sidebar-link {
    padding: 0.45rem 2rem 0.45rem 0.5rem;
    color: #7E7E7E;
    display: block;
    font-size: 1rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.sidebar-link i,
.dropdown-item i {
    font-size: 1rem;
    margin-right: .60rem;
}

a.sidebar-link:hover {
	background-color: rgba(249, 250, 251, .35);
	color: var(--white-soft);
	border-radius: var(--speech-radius);
}

.sidebar-item { position: relative; }

#sidebar {
	position: relative;
	min-width: 250px;
	max-width: 250px;
	background-color: var(--bs-dark);
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
    position: absolute;
    top: 0;
    left: 70px;
    background-color: #198754;
    padding: 0;
    min-width: 17rem;
    display: none;
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown+.sidebar-dropdown {
    display: block;
    max-height: 15em;
    width: 100%;
    opacity: 1;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .1rem 0.1rem 0;
    content: "";
    display: inline-block;
    padding: 3px;
    position: absolute;
    right: .8em;
    top: 1rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
}

.sidebar-footer {
	position: absolute;
	padding: 0 0.45rem;
	bottom: 0;
	width: 100%;
}

.pg7-userProfile {
	width: 40px; 
	height: 40px; 
	margin-right:  0.65rem;
}
.pg7-userName {
	font-weight: bold;
	color: #FFF;
}
.pg7-userType { 
	font-size: 0.8em; 
}

.navbar { 
	padding: 1em;
	height: 60px;
	justify-content: space-between; 
	color: var(--bs-secondary);
	background-color: var(--gray-medium);
}

.nav-title-container { font-size: 2em; }
.nav-date-container { margin-top: 2em; }

.chart {
	background-color: var(--white-soft);
}

.chart-wrapper {
	margin-bottom: .75em;
	padding: .25em;
	border: 1px solid var(--gray-border);
	border-radius: 0.375rem;
	display: inline-block;
	background-color: var(--white-soft);
}

.transactions tbody tr td {
	padding: 0 .5em !important;
	text-align: right !important;
}

.transactions thead tr th:last-child,
.transactions tbody tr td:last-child,
.transactions tbody tr td {
	border-left: solid 1px var(--gray-border);
}

#MyTable_dr thead tr th,
#MyTable_inv thead tr th {
	vertical-align: middle !important;
	margin: 0 !important;
	padding: 0 !important;
	background-color: #FFF !important;
	white-space: nowrap !important;
}

#MyTable_dr tbody tr td,
#MyTable_inv tbody tr td {
	margin: 0 !important;
	padding: 0 !important;
	background-color: #FFF !important;
	white-space: nowrap !important;
	border-bottom: 1px solid var(--gray-border) !important;
}

#MyTable_dr thead tr:nth-child(1) th input,
#MyTable_inv thead tr:nth-child(1) th input {
	min-width: 130px;
	max-width: 130px;
	min-height: 20px;
	max-height: 20px;
	line-height: 1em;
	border: 1px solid var(--gray-border);
}

#MyTable_dr thead tr:nth-child(2) th {
	max-width: 155px !important;
	min-width: 155px !important;
	background-color: #1F3664 !important;
	color: var(--white-soft) !important;
}

#MyTable_inv thead tr:nth-child(2) th {
	max-width: 130px !important;
	min-width: 130px !important;
	background-color: #1F3664 !important;
	color: var(--white-soft) !important;
}

#MyTable_dr tbody tr td input {
	min-width: 155px;
	max-width: 155px;
	min-height: 20px;
	max-height: 20px;
	line-height: 1em;
	border: none !important;
	text-align: right;
}

#MyTable_inv tbody tr td input {
	min-width: 130px;
	max-width: 130px;
	min-height: 20px;
	max-height: 20px;
	line-height: 1em;
	border: none !important;
	text-align: right;
}

.dr-input-field input{ 
	background-color: var(--highlight-input); 
}

.dr-input-field-2 input { 
	background-color: #ccc; 
}

#MyTable_dr .price-container input {
	min-width: 131px !important;
	max-width: 131px !important;
}

#MyTable_inv .price-container input {
	min-width: 107px !important;
	max-width: 107px !important;
}

#MyTable_dr input[name="dr_eggtray_pcs"] {
	min-width: 113px !important;
	max-width: 113px !important;
}

#MyTable_inv input[name="dr_eggtray_pcs"] {
	min-width: 89px !important;
	max-width: 89px !important;
}

#MyTable_dr thead tr:nth-child(1) th:nth-child(1),
#MyTable_inv thead tr:nth-child(1) th:nth-child(1) { 
	text-align: left !important; 
}

#MyTable_dr thead tr:nth-child(1) th:nth-child(2),
#MyTable_dr thead tr:nth-child(1) th:nth-child(4),
#MyTable_inv thead tr:nth-child(1) th:nth-child(2),
#MyTable_inv thead tr:nth-child(1) th:nth-child(4) {
	border-left: none !important;
}

#MyTable_dr thead tr:nth-child(1) th:nth-child(2),
#MyTable_inv thead tr:nth-child(1) th:nth-child(2) { 
	text-align: right !important; 
}

#MyTable_dr tbody tr:nth-child(16) td { height: 50px; }
#MyTable_dr tbody tr:nth-child(16) td,
#MyTable_inv tbody tr:nth-child(n+16):nth-child(-n+20) td,
#MyTable_inv tbody tr:nth-child(n+16):nth-child(-n+20) td input {
	background-color: #1F3664 !important;
	border: #1F3664 !important;
	color: var(--white-soft) !important;
	text-align: right !important;
}

#MyTable_dr tbody tr:nth-child(17) td,
#MyTable_dr tbody tr:nth-child(24) td {
	color: #DC3545 !important;
	font-style: italic !important;
	font-weight: bold !important;
	text-align: left !important;
}

#MyTable_inv tbody tr:nth-child(21) td,
#MyTable_inv tbody tr:nth-child(28) td {
	color: #DC3545 !important;
	font-style: italic !important;
	font-weight: bold !important;
	text-align: left !important;
}

#MyTable_inv tbody tr:nth-child(17) td:nth-child(3) input,
#MyTable_inv tbody tr:nth-child(19) td:nth-child(5) input:nth-child(2) {
	background-color: #FFCB99 !important;
	color: var(--bs-dark) !important;
}

#grandtotal_result {
	font-weight: bold;
}

.modal-deliveryReceipt .modal-dialog {
	min-width: 640px;
	max-width: 640px;
}

.modal-invoiceReceipt .modal-dialog {
	min-width: 670px;
	max-width: 670px;
}

.modal-deliveryReceipt .modal-body,
.modal-invoiceReceipt .modal-body {
	margin: 0.65em 0.65em;
	padding: 0;
}

.price-container {
	width: 100%;
	display: flex; 
	align-items: center;
}

.peso-sign {
	padding: 0 .5em; 
	font-weight: bold;
}

.dr-footer, 
.inv-footer { 
	display: none; 
}

.dr-footer input, 
.inv-footer input { 
	border: none; 
}

.dr-footer input, 
.dr-footer span,
.inv-footer input, 
.inv-footer span {
	text-align: center;
	font-size: 1.8vw;
	text-transform: uppercase;
	width: 180px;
}

.pre_invoice,
.post_invoice {
	min-width: 120px !important;
}

#MyTable_inv textarea { 
	margin: .25em;
	width: 98%;
}

.price-container .input-icon {
	position: absolute;
	top: 50%;
	left: 20%;
	transform: translateY(-50%);
	color: var(--bs-danger);
}

.modal-shipmentDetails { margin-top: 10vh !important; }
.modal-shipmentDetails .modal-header { background-color: #1F3664; }

.tooltip-container {
	position: relative;
	display: inline-block;
}

.speech-bubble { border-radius: var(--speech-radius); }

.tooltip-container .floating-tooltip {
	position: absolute;
	top: 50%;
	left: 100%;
	transform: translateY(-50%);
	padding: 6px 10px;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	border-radius: var(--speech-radius);
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.25s ease-in-out;
	z-index: 1000;
}

.tooltip-container .floating-tooltip::after {
	content: "";
	position: absolute;
	top: 50%;
	left: -11px;
	transform: translateY(-50%);
	border: 6px solid transparent;
	border-right-color: rgba(0,0,0,0.65);
}

.tooltip-container .floating-tooltip.show { opacity: 1; }

.highlighted {
	outline: 2px solid #007bff;
	background-color: #fffbea;
}

.pagination { float: right; }
.page-link:hover { color: var(--bs-dark); }

.page-link.active {
	font-weight: bold !important;
	color: var(--bs-dark); 
	background-color: var(--gray-light);
	border-color: var(--gray-light);
}

.fade-out { animation: fadeOut 1s forwards; }

@keyframes fadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

@media (max-width: 768px) {
	.content {
		min-width: 100vw;
	}
}

.loader {
    border: 10px solid #E9ECEF;
    border-top: 10px solid var(--bs-dark);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#spinner {
    font-size: 2em;
    color: var(--bs-dark);
}

.loading-indicator {
	padding: 1em;
	text-align: center;
	font-weight: bold;
}

.card { color: var(--bs-secondary); }

.highlighted-row input,
.highlighted-row select {
	background-color: #F2F2F2; /*#fff3cd*/
	font-weight: bold;
	transition: background-color 0.3s ease;
}

/* REMOVED
@media print {
	* {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}
}
*/