/* --- Patient Info Card Styles --- */

.patient-info-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: hidden;
}

.patient-info-header {
    background: linear-gradient(to right, #8C0ABF, #49CADE); /* Gradient from Plum to Sky Reef */
    padding: 30px;
    text-align: center;
}

.patient-info-header h1 {
    color: white;
    margin: 0;
    font-size: 24px;
    font-weight: 500;
}

.patient-info-body {
    padding: 30px;
}

.patient-info-label {
    margin-bottom: 8px;
}

.patient-info-label span {
    color: #31494D; /* Deep Teal for labels */
    font-size: 14px;
    font-weight: 500;
}

/* --- General Info Box Styles --- */

.info-box {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 16px;
    background: #f8f9ff;
    border-radius: 6px;
}

.info-box-inner {
    display: flex;
    align-items: center;
    width: 100%;
}

.info-icon-wrapper {
    border-radius: 6px;
    padding: 8px;
    margin-right: 12px;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon {
    width: 16px;
    height: 16px;
    fill: white;
}

.info-text-label {
    color: #31494D; /* Deep Teal for labels */
    font-size: 12px;
    margin-bottom: 2px;
}

.info-text-value {
    color: #2d3748;
    font-size: 14px;
}

/* --- Font Size Helpers --- */
.font-lg {
    font-size: 16px;
    font-weight: 500;
}
.font-md {
    font-size: 14px;
    font-weight: 500;
}

/* --- Specific Info Box Colors --- */

.info-box-name { border-left: 4px solid #8C0ABF; } /* Plum */
.icon-name { background: #8C0ABF; } /* Plum */

.info-box-email { border-left: 4px solid #49CADE; } /* Sky Reef */
.icon-email { background: #49CADE; } /* Sky Reef */

.info-box-phone { border-left: 4px solid #2FC4DB; } /* Ocean Breeze */
.icon-phone { background: #2FC4DB; } /* Ocean Breeze */

.info-box-address { border-left: 4px solid #31494D; } /* Deep Teal */
.icon-address { background: #31494D; } /* Deep Teal */

.info-box-dob { border-left: 4px solid #8C0ABF; } /* Plum */
.icon-dob { background: #8C0ABF; } /* Plum */

.info-box-age { border-left: 4px solid #49CADE; } /* Sky Reef */
.icon-age { background: #49CADE; } /* Sky Reef */

/* --- Grid Layout --- */

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
/* Ensure the last grid doesn't have a bottom margin */
.info-grid:last-child {
    margin-bottom: 0;
}

/* --- Mobile Responsiveness --- */

/* On screens that are 768px or less, make the grid columns stack */
@media screen and (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr; /* Stack columns */
    }

    .patient-info-body {
        padding: 20px;
    }

    .patient-info-header {
        padding: 20px;
    }
}




/**
 * modalDialogs ($modalDialogs)
 */

/* 1. Ensure this sits above everything when visible */
.modalDialog {
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modalDialog.is-visible {
    visibility: visible;
}

.modalDialog-overlay {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: hsla(0, 0%, 0%, 0.5);
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 0.3s, opacity 0.3s;
}

.modalDialog.is-visible .modalDialog-overlay {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.modalDialog-wrapper {
  position: relative;
  z-index: 9999;
  width: 80%;
  height: 80%;
  background-color: #fff;
  box-shadow: 0 0 1.5em hsla(0, 0%, 0%, 0.35);
  border-radius: 8px;
  overflow: hidden;
}

.modalDialog-transition {
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(-20px);
  opacity: 0;
}

.modalDialog.is-visible .modalDialog-transition {
  transform: translateY(0);
  opacity: 1;
}

.modalDialog-body {
    position: absolute;
    top: 0;
    height: 100%;
    left: 0;
    width: 100%;
    /* max-height: 100vh; */
    overflow-y: auto;
}

.modalDialog-closeIcon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    cursor: pointer;
}

.modalDialog-body div {
    position: absolute;
    top: 0;
    height: 100% !important;
    left: 0;
    width: 100%;
    /* max-height: 100vh; */
    overflow: hidden;
}

.modalDialog-header,
.modalDialog-content {
    padding: 1.5em;
}

.modalDialog-header {
    position: relative;
    border-bottom: 1px solid #e8e8e8;
}

.modalDialog-close {
    position: absolute;
    top: 50%;
    right: 1.5em;
    transform: translateY(-50%);
    padding: 0.5em;
    color: #aaa;
    background: none;
    border: 0;
    cursor: pointer;
}

.modalDialog-close:hover {
    color: #777;
}

.modalDialog-heading {
    font-size: 1.125em;
    margin: 0;
}

@media (max-width: 1024px) {
    .modalDialog-wrapper {
        width: 100%;
        height: 100%;
    }
}

.kt-watermark {
    position: relative;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.kt-watermark:before {
    z-index:0;
    position: absolute;
    width: 100%;
    height: 100%;
    content: '';
    background: url('/assets/media/email/wm_presc.jpg') center center / contain repeat-y !important;
    opacity: .5;
}
.kt-watermark > div{
    z-index:10;
    position: relative;
}

.open_detail .detail_icon {
    /* filter: invert(41%) sepia(90%) saturate(1741%) hue-rotate(163deg) brightness(97%) contrast(104%); */
    background: url('/assets/media/icons/details.svg') 0 0 / contain no-repeat !important;
    display: inline-block;
    width: 18px !important;
    height: 18px !important;
}

.open_detail {
    cursor: pointer;
}

.footer-mod {
    background-color: rgb(50, 25, 87) !important;
    padding: 0 !important;
    margin-bottom: -25px !important;
    width: 100% !important;
    height: 10vh !important;
    line-height: 10vh !important;
    text-align: center !important;
    color: white;
    font-size: 3vh;
}
