/*--Custom Styles Added--*/
#kt_table_items tbody td {
	white-space: nowrap;
	vertical-align: top;
}

#kt_app_content_container table.dataTable > thead > tr > td:not(.sorting_disabled), #kt_app_content_container table.dataTable > thead > tr > th:not(.sorting_disabled) {
	padding-right: 0.7rem;
}

.qty {
	display: inline-block;
	max-width: 100px;
	width: 100%;
	padding: .775rem 1rem;
	font-size: 1.1rem;
	font-weight: 500;
	line-height: 1.5;
	color: #5e6278;
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid #e4e6ef;
	appearance: none;
	border-radius: .475rem;
	box-shadow: inset 0 1px 2px rgba(0,0,0,.075);
	transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.price {
	display: inline-block;
	max-width: 80px;
	width: 100%;
	padding: .775rem 1rem;
	font-size: 1.1rem;
	font-weight: 500;
	line-height: 1.5;
	color: #5e6278;
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid #e4e6ef;
	appearance: none;
	border-radius: .475rem;
	box-shadow: inset 0 1px 2px rgba(0,0,0,.075);
	transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.citemexpiry {
	min-width: 120px;
}

.crate {
	display: inline-block;
	max-width: 80px;
	width: 100%;
	padding: .775rem 1rem;
	font-size: 1.1rem;
	font-weight: 500;
	line-height: 1.5;
	color: #5e6278;
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid #e4e6ef;
	appearance: none;
	border-radius: .475rem;
	box-shadow: inset 0 1px 2px rgba(0,0,0,.075);
	transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.mi {
	display: inline-block;
	max-width: 100px;
	width: 100%;
	padding: .775rem 1rem;
	font-size: 1.1rem;
	font-weight: 500;
	line-height: 1.5;
	color: #5e6278;
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid #e4e6ef;
	appearance: none;
	border-radius: .475rem;
	box-shadow: inset 0 1px 2px rgba(0,0,0,.075);
	transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.ticketmsg {
	white-space: pre-wrap;
}

tfoot th input {
	max-width: 110px;
	border: 1px solid #ccc;
	padding: 8px 8px 8px 8px;
	font-size: 12px;
	font-family: Nunito;
	text-transform: uppercase;
	font-weight: 600;
	color: rgb(126, 130, 153);
	height: 35px;
	background-color: #fff;
	border-radius: 3px;
}

tfoot th input::placeholder {
	color: rgb(161, 165, 183);
	opacity: 1;
}

tfoot th input:focus { outline: none; border-color: #666; }

.picwrap {
	display: inline-block;
	width: 100px;
	height: 135px;
	cursor: pointer;
	line-height: 100px;
	position: relative;
}

.picwrap .profilepic {
	width: 100px;
	height: 100px;
	position: absolute;
	top: 0;
	left: 0;
	object-fit: contain;
	border-radius: 50%;
	border: 1px solid #e4e4e4;
	padding: 2px;
}

.picwrap .fa {
	position: absolute;
	top: 110px;
	left: 40px;
	width: auto;
	z-index: 1;
	font-size: 15px;
	color: #009EF7;
}

#start_time_wrapper, #end_time_wrapper {
    position: absolute;
    z-index: 10;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0.475rem;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
    padding: 0;
    margin-top: 5px;
    list-style: none;
    font-size: 14px;
}

#start_time_wrapper li,
#end_time_wrapper li {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

#start_time_wrapper li:hover,
#end_time_wrapper li:hover {
    background-color: #f1faff;
}

#start_time_wrapper li.disabled,
#end_time_wrapper li.disabled {
    color: #999;
    background-color: #f9f9f9;
    cursor: not-allowed;
}

.text-center input {
	text-align: center;
}

#brokenoptions td {
	vertical-align: middle;
}

#transferoptions td {
	vertical-align: middle;
}

.itemname {
	position: relative;
}
.itemname .history-link {
  display: none;
  position: absolute;
  bottom: 0px;
  font-size: 13px;
}

.itemname:hover .history-link {
	display: block;
	float: left;
	color: #c01010;
	font-size: 13px;
	margin: 10px 0px 0px;
}

table td .history-link {
  display: none;
  position: absolute;
  bottom: 0px;
  font-size: 13px;
}

table td:hover .history-link {
	display: block;
	float: left;
	color: #c01010;
	font-size: 13px;
	margin: 10px 0px 0px;
}

.form-select.form-select-solid {
	min-height: 43.5px;
}

.abs {
  position: absolute;
}

body .swal2-title {
	margin: 0.8em 0 .4em;
	line-height: 28px;
}

.chartminh {
    flex-grow: 1;             /* ✅ allow it to expand inside .my-div */
    width: 100%;
    position: relative;
    display: flex;            /* ✅ center canvas */
    align-items: center;
    justify-content: center;
    min-height: 300px;        /* Optional: ensures min chart height */
}

.chartminh.has-msg {
    min-height: 400px;
}

.itemchart_msg {
    width: 100%;
    position: absolute;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

.my-div {
  background: white;
  padding: 10px;
  border-radius: 10px;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
}

.three .table-scroll {
  overflow: scroll;
  max-height: 100%;
  width: 100%;
}

.three table {
  border-collapse: collapse;
}

.three table th,
.three table td {
  padding: 10px 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.three table thead {
  position: sticky;
  inset-block-start: 0;
  font-weight: 600;
  background: #fff;
}
.three table tr th:nth-child(2), .three table tr th:nth-child(3), .three table tr td:nth-child(2), .three table tr td:nth-child(3) {
	text-align: center;
}
.three table tr td:nth-child(4) {
	color: red;
}

.green {
	color: green !important;
}
.red {
	color: red !important;
}
.orange {
	color: orange !important;
}
.blue {
	color: #0093D4 !important;
}
.glow-green {
      fill: #39ff14;
      filter: drop-shadow(0 0 8px #39ff14);
}
.glow-magenta {
      fill: #ff00ff;
      filter: drop-shadow(0 0 8px #ff00ff);
}
.glow-cyan {
      fill: #00ffff;
      filter: drop-shadow(0 0 8px #00ffff);
}
.glow-orange {
      fill: #ff9900;
      filter: drop-shadow(0 0 8px #ff9900);
}
.minval, .maxval, .avgval {
	margin-left: 10px;
}
.expiryitems td, .expiryitems th, .lowstockitems td, .lowstockitems th {
	text-align: center;
}

.addcustomer_form_fields, .editcustomer_form_fields {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-gap: 15px;
}

#customers thead th {
	text-align: center;
}
#customers tfoot th {
	text-align: center;
}

.customername {
	position: relative;
}
.customername .history-link {
	display: none;
	position: absolute;
	bottom: 0px;
	font-size: 13px;
	width: 100%;
	top: 30px;
	left: 0;
}

.customername:hover .history-link {
	display: block;
	float: left;
	color: #c01010;
	font-size: 13px;
	margin: 10px 0px 0px;
}


#customers tfoot th input {
	text-transform: none;
}

.uploadfile1, .uploadfile {
  cursor: pointer;
  padding: 10px;
}

#budget_tracker {
	cursor: pointer;
}

#budget_expense_tracker {
	cursor: pointer;
}

#item_yearpriceinper {
	cursor: pointer;
}

#item_yearpriceinrs {
	display: none;     /* 👈 Hidden by default */
	cursor: pointer;
}
.menu-item .menu-link {
  padding: 9px 10px;
}


@page {
	size: auto;
	margin: 0;
}
	@page :footer {
		display: none
	}

	@page :header {
		display: none
	}

@media print {
	@page {
		margin-top: 0;
		margin-bottom: 0;
	}
	body {
		padding-top: 72px;
		padding-bottom: 72px ;
	}

}
.tooltip.wide-tooltip .tooltip-inner {
    max-width: 400px; /* you can increase to 500px if needed */
    text-align: left;
    white-space: normal;
    font-size: 13px;
}

.log-container {
    height: 250px;
    overflow-y: auto;
    display: block;
    border: 1px solid #ccc;    /* lighter border to match textarea */
    border-radius: 4px;
    padding: 4px;              /* add slight padding to match input feel */
    margin-top: 20px;
    background-color: #fff;    /* match input background */
}


.log-table th, .log-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.log-table thead {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1;
}





/* Global font and text color override */
body,
input,
textarea,
select,
/*button,*/
table,
td,
th,
label,
span,
div,
p {
    font-family: 'Nunito', sans-serif !important;
    color: #444444 !important;
}

/* Sidebar text color */
.app-sidebar,
.app-sidebar .menu,
.app-sidebar .menu a,
.app-sidebar .menu .menu-title,
.app-sidebar .menu .menu-link,
.app-sidebar .menu .menu-item {
    color: #FFFFFF !important;
}

.buttonwrap svg {
	color: #ffffff;
}


/* Equalize height for all dashboard boxes */
.my-div {
    height: 450px;               /* Same height for all boxes */
    background: white;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}

/* Ensure chart and table areas grow equally */
.chartminh,
.table-scroll {
    flex-grow: 1;
    overflow-y: auto;
}

/* Consistent height for both scrollable tables */
.expiryitems,
.lowstockitems {
    margin-bottom: 0;
}

/* Fix scrollable height inside tables */
.my-div .table-scroll {
    max-height: 400px;   /* Adjust so that table fits within the box */
    overflow-y: auto;
}

.vendoritem .vendornm {
	min-height: 60px;
}

.vendoritem .nav-link {
	background-color: #fff;
}

.vendoritem .active .vendornm {
	color: #fff !important;
}

.vendoritem .active .vendorit {
	color: #fff !important;
}

.vendorslidenav {
	display: inline-block;
	width: 100%;
	margin: 0 0 15px;
	text-align: right;
}

.vendorslideleft {
	display: inline-block;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	background-color: #fff;
	cursor: pointer;
	margin: 0 10px 0 0;
}

.vendorslideright {
	display: inline-block;
	width: 30px;
	height: 30px;
	background-color: #fff;
	line-height: 30px;
	text-align: center;
	cursor: pointer;
}

.addtoorder {
	min-width: 110px;
}

.generatebill i {
	padding: 0;
}

.searchitems {
	min-width: 535px;
}
