:root {
  --kt-brand: #374afb;
  --kt-primary: #5867dd;
  --kt-success: #34bfa3;
  --kt-info: #36a3f7;
  --kt-warning: #ffb822;
  --kt-danger: #fd3995;
  --kt-gray-100: #f5f8fa;
  --kt-text-color: #2f3033;
  --hmis-accent: #189f9f;
}

/* Default to light header if no Bootstrap class specified */
.table:not(.table-dark) thead:not(.thead-dark):not(.thead-light) th {
	color: #6c7293;
	border-bottom: 2px solid #dee2e6;
}

form ul {
  margin: 0;
  padding: 0;
}

form ul li {
  list-style-type: none;
  margin: 2px 0;
}

label.required:after {
  content: ' *';
  color: var(--kt-danger);
}

label.kt-radio label.non-req:after, div.form-group label.non-req:after {
  content: '' !important;
}

.row .icons a span i {
	margin-bottom: 3%;
	width: -webkit-fill-available;
	text-align: left;
	color: var(--hmis-accent);
}

a:hover .data span i, a:hover .data i,  a:hover .data h2 {
	color: #fff;
}

.icons a {
	width: 100%;
	text-align: left;
}

.data h2 {
  text-align: left;
  color: var(--hmis-accent);
  margin-top: .8em;
}

.data {
	position: relative;
	height: 150px;
  margin: 2% auto;
  padding : .7em 0;
}

.data-sm {
	margin-top: .5em;
}

.data-sm a {
	height: 110px;
	text-align: left;
	padding-left: .9em;
}

.navArrow {
  position: absolute;
  right: -2%;
  bottom: 5%;
  color: var(--hmis-accent);
}

div.border-2px {
  border: 1px solid var(--hmis-accent);
  border-radius: 0.25rem;
}

td.text-right a i {
	padding: 0 7px;
	font-size: medium;
}

.kt-portlet .kt-portlet__body .personal-data {
	padding: 0 25px;
  border-bottom: 1px solid #ebedf2;
  min-height: 40px;
}

.col-form-label {
	padding-top: 3px;
}

table .flaticons-action-list a {
	margin: 0 5px;
}

table .flaticons-action-list i {
	font-size: 2.0rem;
}

td a.actions {
  color: var(--hmis-accent);
}

.btn.btn-square.btn-lg{
    display: flex;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  padding: .5rem 1rem;
  background: var(--kt-primary);
  color: #fff;
  z-index: 10000;
}

@media (min-width: 1025px) {
	.kt-header-menu .kt-menu__nav > .kt-menu__item .kt-menu__submenu > .kt-menu__subnav > .kt-menu__item > .kt-menu__link .kt-menu__link-bullet.kt-menu__link-bullet--dot > span {
	  background-color: #5f6281;
	  height: 4px;
	  width: 4px;
	  border-radius: 100%;
	}
}

/* Removed mobile-specific media queries (desktop-first) */

@media (min-width: 1025px) {
	div.kt-container {
	  padding: 0 15px;
	}
}

@media (min-width: 768px) {
  .row.equal {
    display: flex;
    flex-wrap: wrap;
  }

	.equal > div[class*='col-'] {
	  display: flex;
	  flex-direction: column;
	}
}

.form-select {
	display: block;
	width: 100%;
	height: calc(1.5em + 1.3rem + 2px);
	padding: 0.65rem 1rem;
	-moz-padding-start: calc(0.65rem - 3px);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #495057;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right .75rem center;
	background-size: 16px 12px;
	border: 1px solid #e2e5ec;
	border-radius: 4px;
	transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

#search-input {
  background-color: transparent !important;
  color: var(--hmis-accent) !important;
  border: none !important;
  width: 45em !important;
}

div > div > ul > li {
  color: red;
}

.form-validation {
	position: relative;
}

.form-validation .invalid-feedback {
	display: block;
	color: var(--kt-danger);
	font-size: 0.875rem;
	margin-top: 0.25rem;
}

.form-validation .is-invalid {
	border-color: var(--kt-danger);
}

.form-validation .is-valid {
	border-color: var(--kt-success);
}

.form-validation-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	display: none;
}

.form-validation .is-valid~.form-validation-icon {
	display: block;
	color: var(--kt-success);
}

.form-validation .is-invalid~.form-validation-icon {
	display: block;
	color: var(--kt-danger);
}

/* ==========================================================================
   Micro-animations: Buttons and Top Nav Menu only
   ========================================================================== */

/* Button hover effects - smooth transitions with subtle lift */
.btn {
	transition: all 0.2s ease-in-out;
}

.btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:active {
	transform: translateY(0);
	box-shadow: none;
}

/* Top navigation menu - smooth transitions */
.kt-header-menu .kt-menu__item>.kt-menu__link {
	transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.kt-header-menu .kt-menu__submenu {
	transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
}

/* Nav menu items - subtle hover effect */
.kt-menu__item:hover>.kt-menu__link {
	background-color: rgba(255, 255, 255, 0.1);
}

/* Case list + patient list: sticky Actions column when the table scrolls horizontally */
.hmis-case-list-table thead th:last-child,
.hmis-case-list-table tbody td:last-child,
#patient-list thead th:last-child,
#patient-list tbody td:last-child {
	position: sticky;
	right: 0;
	box-shadow: -3px 0 6px -3px rgba(0, 0, 0, 0.12);
}

.hmis-case-list-table thead th:last-child,
#patient-list thead th:last-child {
	background-color: #fff;
	z-index: 20;
}

.hmis-case-list-table tbody td:last-child,
#patient-list tbody td:last-child {
	background-color: #fff;
	z-index: 2;
}

.hmis-case-list-table.table-striped tbody tr:nth-of-type(odd) td:last-child,
#patient-list.table-striped tbody tr:nth-of-type(odd) td:last-child {
	background-color: #f7f8fa;
}

.hmis-case-list-table.table-hover tbody tr:hover td:last-child,
#patient-list.table-hover tbody tr:hover td:last-child {
	background-color: #fafbfc !important;
}

/* Later rows' sticky action cells (z-index: 2) stacked over a closed row's menu. When open, lift that
   cell above thead (z-index: 20) so the menu is not covered by the sticky "Actions" header. */
.hmis-case-list-table tbody tr:has(.dropdown.show) td:last-child,
#patient-list tbody tr:has(.dropdown.show) td:last-child {
	z-index: 25;
}

.hmis-case-list-table .dropdown-menu,
#patient-list .dropdown-menu {
	z-index: 1060;
}

.hmis-case-list-table .hmis-case-col--doctor {
	max-width: 9rem;
}

.hmis-case-list-table .hmis-case-col--mrd {
	white-space: normal;
	word-break: break-word;
}

.hmis-case-list-table .hmis-case-col--category {
	max-width: 10rem;
}

/* Secondary columns: patient + location read as supporting context to case rows */
.hmis-case-list-table tbody td.hmis-case-col--patient,
.hmis-case-list-table tbody td.hmis-case-col--location {
	color: #5c5f6a;
}
