body {
    -webkit-print-color-adjust: exact !important;
}

.doc-sign {
    position: running(doc-sign);
}

.doc-name {
    position: running(doc-name);
}

.clinic-name {
    position: running(clinic-name);
}

.footer-clinic-address {
    position: running(footer-clinic-address);
}

.fprescriptionid {
    position: running(fprescriptionid);
}

.pagedjs_page_content {
    border-bottom-width: 1px;
    border-top-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgba(218, 222, 227, var(--tw-border-opacity));
    padding-top: 16px;
    padding-bottom: 120px;
}

.pagedjs_pages {
    align-items: center;
    display: flex;
    flex: 1;
    flex-direction: column;
}

tr {
    break-inside: avoid;
}

@page {
    margin-left: 4mm;
    margin-right: 4mm;

    size: A4;

    @bottom-left {
        width: 40mm;
        content: element(fprescriptionid);
        font-family: 'Source Sans Pro';
        height: 10mm;
    }

    @bottom-center {
        width: 140mm;
        height: 10mm;
        content: element(footer-clinic-address);
        font-family: 'Source Sans Pro';
    }

    @bottom-right-corner {
        position: absolute;
        right: 20px;
        bottom: 66px;
        width: 60px;
        content: counter(page) ' of 'counter(pages);
        font-family: 'Source Sans Pro';
    }

    @bottom-right {
        position: absolute;
        bottom: 100px;
        right: 0px;
        width: 200px;
        content: element(doc-sign);
        font-family: 'Source Sans Pro';
    }


    @top-left {
        content: element(doc-name);
        font-family: 'Source Sans Pro';
    }

    @top-right {
        content: element(clinic-name);
        font-family: 'Source Sans Pro';
    }
}

.patient-health-summary-popover .ant-popover-inner {
    border-radius: 8px !important;
    overflow: hidden !important;
}


.hover-parent-element-v2 .hover-child-element-v2 {
    visibility: hidden !important;
}

.hover-parent-element-v2:hover .hover-child-element-v2 {
    visibility: visible !important;
}

.normal-submenu .ant-dropdown-menu-submenu-title {
    padding-right: 10px !important;
}

.normal-submenu .ant-dropdown-menu-submenu-expand-icon {
    display: none !important;
}

.procedure-table .ant-table-cell {
  padding: 8px 4px !important;
}

.procedure-row-name {
  width: 30%;
}

.procedure-row-date {
    width: 17.5%;
}

.procedure-row-notes {
  width: 47.5%;
}

.procedure-row-delete {
  width: 5%;
}

.procedure-table .procedure-row-date .copy-duration-v2 {
  display: none;
}

.procedure-table .procedure-row-date:hover .copy-duration-v2 {
  display: flex;
}

.fill-darwin-neutrals-300 {
  fill:#BABABA
}

#admit-patient .ant-select-selector {
    border: 0;
    background-color: transparent;
}

.dmultiselect .ant-select-selector {
    border-color: #A5ABB3 !important;
}

#admit-patient .ant-form-item {
    margin-bottom: 0 !important;
}

#admit-patient .ant-col-8 {
    max-width: 100% !important;
}

.antd-table-dashboard .ant-table-cell {
  padding: 10px 16px;
}


.ant-selector-custom-styles .ant-select-selector{
    border-radius: 8px !important;
    padding-block: 2px !important;
    height: 36px !important;
    max-width: 200px !important;
    background-color: #f4f4f4 !important;
    border:none !important;
    outline: none !important;
    cursor: pointer !important;
    box-shadow: none !important;
    display: flex !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.ant-selector-custom-styles.ant-select-open .clinic-icon {
    fill: grey;
    opacity: 0.5;
}

.ant-selector-custom-styles .ant-select-selection-search {
  padding-top:4px;
}

.ant-selector-custom-styles .clinic-selector-truncate {
    overflow: hidden !important;
    text-overflow: ellipsis !important; /* Adds ellipsis to long text */
    white-space: nowrap !important;
    max-width: 104px !important;
}

.annotatable-image-container-hover:hover::before {
  content: "Click to Edit";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  color: black;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.annotatable-image-container-hover:hover{ 
  opacity: .7
}

.apply-template-popover.ant-popover {
  z-index: 1000;
}

.rounded-20 {
  border-radius: 1.25rem;
}