@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@100..900&display=swap');

:root {
    --primary-color: #123047;
    --secondary-color: #0f766e;
    --extra-color: #14b8a6;
    --accent-color: #f59e0b;
    --accent-color-dark: #d97706;
    --success-color: #15803d;
    --danger-color: #dc2626;
    --text-color: #172033;
    --muted-color: #64748b;
    --body-bg: #f4f7fb;
    --primary-linear-gradient: linear-gradient(135deg, #123047 0%, #0f766e 100%);
}

body {
    font-family: "Noto Sans Bengali", sans-serif;
    margin: 0;
    padding: 0;
    outline: 0;
    font-size: 15px;
    background: var(--body-bg);
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

li {
    display: inline-block;
}

a {
    text-decoration: none;
    color: #333333;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
}
p {
    margin: 0;
    padding: 0;
}

h4,
.h4 {
    font-size: 1.25rem;
}
input,
input:focus,
select,
select:focus {
    height: 42px;
    box-shadow: 0 0 !important;
    outline: 0 !important;
    bordar-color: none !important;
}

.form-check-input {
    height: 25px !important;
    width: 50px !important;
}
.custom-checkbox {
    width: 18px !important;
    height: 18px !important;
}

button {
    border: 0 !important;
}
.parsley-error {
    border-color: #f50000;
}
.parsley-required,
.parsley-type {
    color: #f50000;
}
.select2 {
    height: 42px !important;
    line-height: 30px !important;
}
.select2-selection {
    height: 42px !important;
    line-height: 25px !important;
    border-color: #ddd !important;
}
.select2-results__option {
    display: block;
}
.select2-selection__choice {
    background: blue !important;
}
.select2-selection__choice__display {
    color: #fff;
}
.select2-selection__choice__remove {
    color: #fff !important;
}

.circle_img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    margin-top: 5px;
    margin-right: 5px;
}
.form-label {
    font-weight: bold;
    color: #222;
}
/*==== LOGIN CSS START ====*/
.auth-container {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 100%;
    min-height: 100vh;
    background: var(--primary-color) !important;
}
.login-form {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    background: #fff;
    padding: 50px;
    border-radius: 5px;
}
.login-form h4 {
    font-weight: 700;
    margin-bottom: 9px;
}

.login-form p {
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    text-transform: uppercase;
    font-size: 14px;
    color: #555;
}
.submit-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--secondary-color) !important;
    height: 42px;
    color: #fff;
    text-transform: capitalize;
    font-weight: 500;
    border-radius: 5px;
}
/*==== LOGIN CSS END ====*/

/*==========Main Css ===========*/
.announcement a {
    text-align: center;
    font-size: 17px;
    text-transform: capitalize;
    color: #fff;
    transition: all 0.2s ease;
}

.announcement p {
    transition: all 0.2s ease;
}
.announcement p:hover {
    transform: scale(1.2);
}

.navbar-content {
    height: 83vh;
    overflow: auto;
}

/* scrollbar default hide */
.navbar-content::-webkit-scrollbar {
    width: 0;
}

/* hover à¦•à¦°à¦²à§‡ scrollbar show à¦¹à¦¬à§‡ */
.navbar-content:hover::-webkit-scrollbar {
    width: 3px;
}

/* scrollbar track */
.navbar-content::-webkit-scrollbar-track {
    background: transparent;
}

/* scrollbar thumb */
.navbar-content::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 10px;
}

/* hover à¦•à¦°à¦²à§‡ thumb à¦à¦•à¦Ÿà§ dark */
.navbar-content:hover::-webkit-scrollbar-thumb {
    background: #666;
}

.wsit-sidebar {
    background: #fff;
    width: 255px;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1026;
    border-right: 1px solid #a6a4a7;
    background: var(--primary-color);
}

.wsit-submenu {
    display: none;
}

ul.wsit-navbar li {
    display: block;
}

.wsit-arrow svg {
    transition: all 0.2s ease-in-out;
}

.rotated {
    transform: rotate(90deg);
    transition: transform 0.2s ease-in-out;
}

.wsit-sidebar .main-logo {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 15px 20px 5px;
    justify-content: center;
    border-bottom: 1px solid #858585;
    margin-bottom: 25px;
    background: var(--primary-color);
}
.wsit-sidebar .main-logo a img {
    width: 100% !important;
    height: 100%!important;
    object-fit: contain;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    max-width: 135px;
    /* padding-bottom: 40px; */
}
.wsit-sidebar .wsit-link {
    display: block;
    padding: 13px 20px;
    position: relative;
    font-size: 13px;
    font-weight: 600;
}

.wsit-sidebar .wsit-navbar > .wsit-item > .wsit-link {
    border-radius: 12px;
    margin-left: 15px;
    margin-right: 15px;
    padding: 7px 10px 7px 7px;
    display: flex;
    align-items: center;
}
.wsit-sidebar .wsit-icon {
    margin-right: 15px;
    border-radius: 12px;
    height: 35px;
    width: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    background: #fff;
    box-shadow: -3px 4px 23px rgba(0, 0, 0, 0.1);
}
.wsit-sidebar .wsit-icon i {
    font-size: 18px;
}
.wsit-sidebar .wsit-arrow {
    float: right;
    display: inline-block;
    transition: all 0.2s ease-in-out;
    color: white;
}
.wsit-sidebar .wsit-link .wsit-text {
    flex: 1;
    color: white;
}
.wsit-sidebar .wsit-submenu .wsit-link {
    font-weight: 500;
    padding: 10px 30px 10px 65px;
}

.wsit-sidebar .wsit-navbar > .wsit-item.active > .wsit-link,
.wsit-sidebar .wsit-navbar > .wsit-item:active > .wsit-link,
.wsit-sidebar .wsit-navbar > .wsit-item:focus > .wsit-link,
.wsit-sidebar .wsit-navbar > .wsit-item:hover > .wsit-link,
.wsit-sidebar .wsit-navbar > .wsit-item.active > .wsit-link,
.wsit-sidebar .wsit-navbar > .wsit-item:active > .wsit-link,
.wsit-sidebar .wsit-navbar > .wsit-item:focus > .wsit-link,
.wsit-sidebar .wsit-navbar > .wsit-item:hover > .wsit-link {
    background: var(--primary-linear-gradient);
    color: #fff;
    box-shadow: 0 5px 7px -1px rgba(12, 175, 96, 0.3);
}

.wsit-sidebar .wsit-navbar > .wsit-item.active > .wsit-link i,
.wsit-sidebar .wsit-navbar > .wsit-item:active > .wsit-link i,
.wsit-sidebar .wsit-navbar > .wsit-item:focus > .wsit-link i,
.wsit-sidebar .wsit-navbar > .wsit-item:hover > .wsit-link i,
.wsit-sidebar .wsit-navbar > .wsit-item.active > .wsit-link i,
.wsit-sidebar .wsit-navbar > .wsit-item:active > .wsit-link i,
.wsit-sidebar .wsit-navbar > .wsit-item:focus > .wsit-link i,
.wsit-sidebar .wsit-navbar > .wsit-item:hover > .wsit-link i {
    color: var(--secondary-color);
}

.wsit-header {
    background: #fff;
    color: #525b69;
    min-height: 70px;
    position: absolute;
    left: 255px;
    right: 0;
    z-index: 1025;
    top: 0px !important;
}

.wsit-header .wsit-h-item {
    min-height: 70px;
    display: flex;
    align-items: center;
    position: relative;
}
.wsit-header .wsit-head-link {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 0.7rem;
    margin: 0 7.5px;
    border-radius: 4px;
    position: relative;
    font-weight: 500;
    border-radius: 12px;
    border: 1px solid rgba(206, 206, 206, 0.2);
}

.wsit-header .wsit-head-link .theme-avtar {
    border-radius: 12px;
    font-size: 16px;
    width: 34px;
    height: 34px;
    background: #dcdaeb;
    color: #51459d;
}

.wsit-header .header-wrapper {
    display: flex;
    padding: 0 30px;
    border-bottom: 1px solid #b7b7b7;
    background: var(--primary-color);
}

.wsit-header .wsit-head-link .drp-arrow {
    color: #525b69;
    font-size: 14px;
    margin-left: 10px;
    opacity: 0.8;
}

.wsit-header .wsit-head-link.active,
.wsit-header .wsit-head-link:active,
.wsit-header .wsit-head-link:focus,
.wsit-header .wsit-head-link:hover {
    text-decoration: none;
    color: #51459d;
    background: rgba(108, 117, 125, 0.05);
}

.dropdown .dropdown-item i {
    font-size: 18px;
    margin-right: 10px;
}

.dropdown-item.active,
.dropdown-item:active {
    color: #000;
    text-decoration: none;
    background: rgba(108, 117, 125, 0.05);
}

.wsit-header .wsit-head-link .wsit-h-badge {
    position: absolute;
    top: 3px;
    right: 10px;
    border-radius: 50%;
    font-size: 9px;
}
.message-counter {
    position: absolute;
    top: 3px;
    right: 4px !important;
    border-radius: 50%;
    font-size: 10px;
    width: 15px !important;
    text-align: center !important;
    color: #fff !important;
}
a.wsit-head-link i {
    margin-right: 5px;
    color: #ffffff;
}
.dropdown .dropdown-item {
    padding: 10px 25px;
}
.hamburger {
    display: inline-block;
    cursor: pointer;
    transition: filter 0.15s linear;
    width: 20px;
    height: 20px;
}
.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
    width: 18px;
    height: 2px;
    background-color: #525b69;
    border-radius: 4px;
    position: absolute;
    transition: transform 0.15s ease;
}

.hamburger-inner::after,
.hamburger-inner::before {
    content: "";
    width: 18px;
    height: 2px;
    background-color: #525b69;
    border-radius: 4px;
    position: absolute;
    transition: transform 0.15s ease;
}
.hamburger-inner::before {
    top: -6px;
}
.hamburger-inner::after {
    bottom: -6px;
}

.wsit-header ul {
    margin-bottom: 0;
    display: inline-flex;
}
.wsit-header .dropdown-menu {
    padding: 15px 0;
    box-shadow: 0 4px 24px 0 rgba(62, 57, 107, 0.18);
    border: none;
    position: absolute;
    inset: 0px auto auto 0px;
    margin: 0px;
    transform: translate(0px, 70px);
    min-width: 12rem;
}

.wsit-header .dropdown-toggle::after {
    display: none;
}
.wsit-container {
    position: relative;
    top: 85px;
    margin-left: 255px;
    min-height: calc(100vh - 70px);
}
.wsit-container .wsit-content {
    padding-left: 30px;
    padding-right: 30px;
}
.page-header .page-block {
    width: 100%;
}

.page-header .breadcrumb {
    padding: 0;
    display: inline-flex;
    margin-bottom: 0;
    background: transparent;
    font-size: 13px;
}

.page-header .breadcrumb a {
    color: var(--primary-color);
}

.wsit-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
}

.wsit-footer {
    position: relative;
    margin-left: 255px;
    width: calc(100% - 255px);
    padding: 10px 30px;
    top: 70px;
    margin-bottom: 70px;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
}
.wsit-footer .footer-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: center;
}

.develop_company {
    color: var(--primary-color);
}

/*==== USER ADD CSS START====*/
.page-header {
    padding-bottom: 25px;
}
.quick-sidebar {
    background: #ffffff !important;
    box-shadow: 0 1px 20px 0 rgba(69, 90, 100, 0.08);
    padding: 25px;
    border-radius: 5px;
}
.quick-sidebar ul li {
    display: block;
}

.quick-sidebar ul li a {
    padding: 20px;
    display: block;
}
.card {
    box-shadow: 0 6px 30px rgba(182, 186, 203, 0.3);
    margin-bottom: 24px;
    transition: box-shadow 0.2s ease-in-out;
    border: 0;
    padding: 0;
    overflow: hidden;
}
.card .card-header {
    border-bottom: 1px solid #f1f1f1;
}
.quick-sidebar ul li a {
    padding: 16px;
    display: block;
}
.quick-sidebar ul li a.active {
    background: var(--secondary-color);
    color: #fff;
}
.card-header {
    border-bottom: 1px solid #f1f1f1;
    background: #fff;
    padding: 25px;
}
.card-body {
    background: #fff;
    padding: 25px;
}
.card-footer {
    border-top: 1px solid #f1f1f1;
    background: #fff;
    padding: 25px;
}
span.wsit-text i {
    font-size: 12px;
    color: var(--secondary-color);
    margin-right: 2px;
}
/*==== USER ADD CSS END====*/

/*==== DATATABLE CSS START ====*/
td {
    padding: 15px !important;
}
.dt-length select {
    height: 38px;
}

.dt-search input {
    height: 38px;
}

.dt-search {
    position: relative;
}
.dt-length label {
    display: none;
}
.dt-search label {
    display: none;
}
.dt-buttons button {
    background: transparent;
    border: 1px solid var(--secondary-color) !important;
    border-radius: 5px;
    padding: 5px 10px;
    margin-right: 5px;
    font-size: 14px;
    color: var(--secondary-color);
    transition: 0.35s all;
}
button.dt-button:hover {
    background: var(--secondary-color);
    color: #fff;
}
.dt-info {
    float: left;
}
.dt-paging {
    float: right;
}
.dt-buttons {
    margin-top: 3px;
}
#data-table {
    margin-top: 20px;
}
.dt-paging ul li button {
    background: var(--secondary-color) !important;
    margin: 0 10px;
    color: #fff !important;
}
.dt-paging-button.page-item.disabled {
    opacity: 0.7;
}
.edit_btn {
    background: var(--secondary-color);
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    height: 32px;
    line-height: 32px;
    width: 35px;
    text-align: center;
    display: inline-block;
}
.delete_btn {
    background: var(--danger-color) !important;
    border-radius: 5px;
    color: #fff;
    height: 32px;
    line-height: 32px;
    width: 35px;
    text-align: center;
    display: inline-block;
}
.thumb_down {
    background: var(--muted-color) !important;
    border-radius: 5px;
    color: #fff;
    height: 32px;
    line-height: 32px;
    width: 35px;
    text-align: center;
    display: inline-block;
}
.thumb_up {
    background: var(--success-color) !important;
    border-radius: 5px;
    color: #fff;
    height: 32px;
    line-height: 32px;
    width: 35px;
    text-align: center;
    display: inline-block;
}
.inactive_btn {
    background: var(--accent-color);
    color: #fff;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 10px;
}
.active_btn {
    background: var(--secondary-color);
    color: #fff;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 10px;
}
.quick_btn a {
    background: var(--secondary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
}
.form-check.form-switch {
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-submit,
.btn-submit:focus {
    background: var(--secondary-color);
    color: #fff;
    border: 0;
    border-radius: 5px;
    padding: 0 15px;
}
/*==== DATATABLE CSS END ====*/

.project_all_items {
    display: flex;
}
.project_all_items {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.btn:hover {
    background: var(--primary-color);
}

/* Backend theme */
body {
    color: var(--text-color);
    background: var(--body-bg);
}

a {
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

.auth-container,
.submit-btn {
    background: var(--primary-color) !important;
}

.wsit-sidebar,
.wsit-sidebar .main-logo,
.wsit-header .header-wrapper {
    background: var(--primary-color);
}

.wsit-footer {
    background: var(--secondary-color);
}

.wsit-sidebar {
    border-right-color: rgba(255, 255, 255, 0.2);
}

.wsit-sidebar .main-logo {
    border-bottom-color: rgba(255, 255, 255, 0.22);
}

.wsit-sidebar .wsit-navbar > .wsit-item > .wsit-link {
    color: #fff;
    border-radius: 5px;
    margin-left: 8px;
    margin-right: 8px;
}

.wsit-sidebar .wsit-navbar > .wsit-item.active > .wsit-link,
.wsit-sidebar .wsit-navbar > .wsit-item:active > .wsit-link,
.wsit-sidebar .wsit-navbar > .wsit-item:focus > .wsit-link,
.wsit-sidebar .wsit-navbar > .wsit-item:hover > .wsit-link {
    background: var(--secondary-color);
    box-shadow: none;
}

.wsit-sidebar .wsit-icon {
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary-color);
}

.wsit-sidebar .wsit-icon i,
.wsit-sidebar .wsit-navbar > .wsit-item:hover > .wsit-link i,
span.wsit-text i {
    color: var(--primary-color);
}

.wsit-sidebar .wsit-link .wsit-text,
.wsit-sidebar .wsit-arrow,
.wsit-header .wsit-head-link,
a.wsit-head-link i {
    color: #fff;
}

.wsit-header .wsit-head-link:hover,
.wsit-header .wsit-head-link:focus,
.wsit-header .wsit-head-link:active {
    color: #fff;
    background: var(--secondary-color);
}

.wsit-header .wsit-head-link .theme-avtar {
    background: #fff;
    color: var(--primary-color);
}

.hamburger-inner,
.hamburger-inner::after,
.hamburger-inner::before {
    background-color: #fff;
}

.page-header .breadcrumb a,
.develop_company {
    color: var(--primary-color);
}

.card {
    box-shadow: 0 8px 28px rgba(18, 48, 71, 0.09);
}

.card .card-header h6,
.page-header-title h4 {
    color: var(--text-color);
}

.form-label,
td,
th,
.card-body,
.dropdown-item {
    color: var(--text-color);
}

.select2-selection__choice,
.dt-paging ul li button,
.quick_btn a,
.btn-submit,
.btn-submit:focus,
.edit_btn,
.active_btn {
    background: var(--secondary-color) !important;
    color: #fff !important;
}

.dt-buttons button {
    border-color: var(--primary-color) !important;
    color: var(--primary-color);
}

button.dt-button:hover,
.btn:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
}

.quick-sidebar ul li a.active,
.thumb_up {
    background: var(--primary-color) !important;
    color: #fff !important;
}

.delete_btn {
    background: #dc2626 !important;
    color: #fff !important;
}

.thumb_down,
.inactive_btn {
    background: #5b6478 !important;
    color: #fff !important;
}

.card {
    border-top: 0;
    border-radius: 12px;
}

.card .card-header {
    background: #fff;
}

.table thead th,
#data-table thead th,
table.dataTable thead th {
    background: var(--secondary-color) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: #eef7f6;
}

.table-hover > tbody > tr:hover > * {
    --bs-table-bg-state: #e3f3f1;
}

.page-header-title h4,
.page-header-title h4 i,
.breadcrumb-item.active {
    color: var(--primary-color) !important;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background: #eef7f6;
    color: var(--primary-color);
}

.wsit-header .header-wrapper {
    min-height: 50px;
    border-bottom: 0;
}

.wsit-header .wsit-h-item {
    min-height: 50px;
}

.wsit-header .wsit-head-link {
    border-radius: 0;
    border: 0;
    margin: 0;
    min-height: 50px;
}

.wsit-header .logout-shortcut {
    background: var(--secondary-color);
    padding-left: 14px;
    padding-right: 14px;
}

.wsit-header .invoice-create-shortcut {
    background: var(--secondary-color);
    padding-left: 14px;
    padding-right: 14px;
}

.wsit-header .invoice-create-shortcut:hover,
.wsit-header .invoice-create-shortcut:focus {
    background: var(--secondary-color) !important;
}

.wsit-header .logout-shortcut:hover,
.wsit-header .logout-shortcut:focus {
    background: var(--secondary-color) !important;
}

.wsit-sidebar .main-logo {
    height: 68px;
    margin-bottom: 12px;
    overflow: hidden;
}

.wsit-sidebar .wsit-navbar > .wsit-item:hover > .wsit-link .wsit-icon,
.wsit-sidebar .wsit-navbar > .wsit-item.active > .wsit-link .wsit-icon {
    color: var(--secondary-color);
}

.wsit-sidebar {
    background: var(--primary-color);
}

.wsit-sidebar .navbar-content {
    padding: 0 5px 18px;
}

.wsit-sidebar .wsit-navbar > .wsit-item {
    margin: 4px 0;
}

.wsit-sidebar .wsit-navbar > .wsit-item > .wsit-link {
    min-height: 34px;
    margin: 0;
    padding: 7px 12px 7px 14px;
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    gap: 8px;
}

.wsit-sidebar .wsit-navbar > .wsit-item.active > .wsit-link,
.wsit-sidebar .wsit-navbar > .wsit-item.open > .wsit-link,
.wsit-sidebar .wsit-navbar > .wsit-item:hover > .wsit-link {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: none;
}

.wsit-sidebar .wsit-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-right: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
}

.wsit-sidebar .wsit-icon i,
.wsit-sidebar .wsit-navbar > .wsit-item:hover > .wsit-link i,
.wsit-sidebar .wsit-navbar > .wsit-item.active > .wsit-link i,
.wsit-sidebar .wsit-navbar > .wsit-item.open > .wsit-link i {
    color: #fff;
    font-size: 22px;
}

.wsit-sidebar .wsit-link .wsit-text {
    color: inherit;
    line-height: 1.25;
}

.wsit-sidebar .wsit-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #fff;
}

.wsit-sidebar .wsit-arrow svg {
    width: 17px;
    height: 17px;
    stroke-width: 3;
}

.wsit-sidebar .wsit-submenu {
    padding: 4px 0 0;
}

.wsit-sidebar .wsit-submenu .wsit-item {
    margin: 0 0 4px;
}

.wsit-sidebar .wsit-submenu .wsit-link {
    min-height: 34px;
    margin: 0;
    padding: 7px 12px 7px 18px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding-left: 30px;
}

.wsit-sidebar .wsit-submenu .wsit-item.active .wsit-link,
.wsit-sidebar .wsit-submenu .wsit-link:hover {
    background: #eef7f6;
    color: var(--secondary-color);
}

.wsit-sidebar .wsit-submenu .wsit-link .wsit-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wsit-sidebar .wsit-submenu span.wsit-text i,
.wsit-sidebar .wsit-submenu .wsit-link:hover span.wsit-text i,
.wsit-sidebar .wsit-submenu .wsit-item.active span.wsit-text i {
    margin-right: 0;
    color: currentColor;
    font-size: 22px;
}

/* Manage table design */
:root {
    --table-accent: var(--secondary-color);
    --table-accent-dark: #0b5f59;
    --table-export: var(--accent-color-dark);
    --table-border: #d7e2ea;
}

.page-content .data-table-card,
.page-content .card:has(#data-table) {
    border-top: 0;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(18, 48, 71, 0.12);
}

.page-content .data-table-card .card-header,
.page-content .card:has(#data-table) .card-header {
    min-height: 54px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--table-border);
}

.page-content .data-table-card .card-header h6,
.page-content .card:has(#data-table) .card-header h6 {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
}

.page-content .data-table-card .card-body,
.page-content .card:has(#data-table) .card-body {
    padding: 20px;
    overflow-x: auto;
}

.page-content .data-table-card .card-body::-webkit-scrollbar,
.page-content .card:has(#data-table) .card-body::-webkit-scrollbar {
    height: 7px;
}

.page-content .data-table-card .card-body::-webkit-scrollbar-thumb,
.page-content .card:has(#data-table) .card-body::-webkit-scrollbar-thumb {
    background: rgba(15, 118, 110, 0.55);
    border-radius: 999px;
}

.quick_btn a {
    background: var(--table-accent) !important;
    color: #fff !important;
    border-radius: 4px;
    font-weight: 700;
    padding: 8px 14px;
}

.quick_btn a:hover {
    background: var(--table-accent-dark) !important;
}

.dt-container,
.dataTables_wrapper {
    min-width: 760px;
}

.dt-layout-row,
.dataTables_wrapper > .row {
    align-items: center;
    margin: 0 0 14px;
    row-gap: 12px;
}

.dt-buttons {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin: 0 0 14px;
}

.dt-buttons::before {
    content: "\0987\09AE\09AA\09CB\09B0\09CD\099F / \098F\0995\09CD\09B8\09AA\09CB\09B0\09CD\099F";
    flex: 0 0 100%;
    display: block;
    width: 100%;
    margin: 0 0 14px;
    padding: 10px 16px;
    border-radius: 4px;
    background: var(--table-accent);
    color: #fff;
    text-align: center;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(15, 118, 110, 0.18);
}

.dt-buttons button.dt-button,
.dt-buttons .dt-button {
    background: var(--table-export) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 0 !important;
    color: #fff !important;
    min-height: 36px;
    padding: 7px 13px;
    margin: 0 !important;
    font-size: 13px;
    font-weight: 700;
}

.dt-buttons button.dt-button:first-of-type,
.dt-buttons .dt-button:first-of-type {
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
}

.dt-buttons button.dt-button:last-of-type,
.dt-buttons .dt-button:last-of-type {
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}

.dt-buttons button.dt-button:hover,
.dt-buttons .dt-button:hover {
    background: var(--accent-color) !important;
}

.dt-length,
.dt-search,
.dataTables_length,
.dataTables_filter {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.dt-search,
.dataTables_filter {
    justify-content: flex-end;
}

.dt-length label,
.dt-search label {
    display: inline-block;
    margin: 0;
}

.dt-length select,
.dt-search input,
.dataTables_length select,
.dataTables_filter input {
    height: 34px;
    border: 1px solid #cfd6e3;
    border-radius: 4px;
    background: #fff;
    color: #111827;
    box-shadow: none !important;
}

#data-table {
    width: 100% !important;
    min-width: 760px;
    margin-top: 0 !important;
    border-collapse: collapse !important;
    border: 1px solid var(--table-border);
}

#data-table thead th,
table.dataTable thead th {
    background: var(--table-accent) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    padding: 14px 13px !important;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(37, 61, 106, 0.25);
}

#data-table tbody td,
table.dataTable tbody td {
    border: 1px solid var(--table-border);
    padding: 13px !important;
    color: var(--text-color);
    vertical-align: middle;
    white-space: nowrap;
}

#data-table tbody tr:nth-child(odd) td,
table.dataTable tbody tr:nth-child(odd) td {
    background: #f6faf9 !important;
}

#data-table tbody tr:nth-child(even) td,
table.dataTable tbody tr:nth-child(even) td {
    background: #fff !important;
}

#data-table tbody tr:hover td,
table.dataTable tbody tr:hover td {
    background: #eef7f6 !important;
}

.dt-info,
.dataTables_info {
    float: none;
    padding-top: 16px;
    color: var(--text-color);
    font-weight: 500;
}

.dt-paging,
.dataTables_paginate {
    float: none;
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
}

.dt-paging ul,
.dataTables_paginate ul {
    display: inline-flex;
    gap: 6px;
    margin: 0;
}

.dt-paging ul li,
.dataTables_paginate ul li {
    display: inline-flex;
}

.dt-paging ul li button,
.dataTables_paginate .paginate_button,
.pagination .page-link {
    min-width: 32px;
    height: 32px;
    margin: 0 !important;
    padding: 5px 10px !important;
    border: 1px solid var(--table-border) !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #5b6478 !important;
    font-size: 13px;
    line-height: 20px;
}

.dt-paging ul li.active button,
.dataTables_paginate .paginate_button.current,
.pagination .page-item.active .page-link {
    background: var(--table-accent) !important;
    color: #fff !important;
    border-color: var(--table-accent) !important;
}

.edit_btn,
.delete_btn,
.thumb_down,
.thumb_up {
    width: 34px;
    height: 34px;
    min-width: 34px;
    line-height: 1;
    border-radius: 50%;
    margin: 0 2px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    padding: 0 !important;
}

.edit_btn {
    background: var(--table-accent) !important;
}

.delete_btn {
    background: var(--danger-color) !important;
}

#data-table tbody td:last-child,
table.dataTable tbody td:last-child {
    text-align: center;
}

#data-table tbody td:last-child form,
table.dataTable tbody td:last-child form,
.status_form,
.delete_form {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
    vertical-align: middle;
}

#data-table tbody td:last-child i,
table.dataTable tbody td:last-child i {
    line-height: 1;
    margin: 0;
    font-size: 16px;
}

.customer-manage-page .wsit-content {
    padding-left: 14px;
    padding-right: 14px;
}

.customer-manage-page .page-header {
    padding-bottom: 22px;
}

.customer-manage-page .page-header-title h4 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 500;
}

.customer-manage-page .page-header-title h4 i {
    color: var(--secondary-color);
    font-size: 24px;
    margin-right: 4px;
    vertical-align: -2px;
}

.customer-manage-page .breadcrumb {
    font-size: 13px;
}

.customer-manage-page .data-table-card {
    border-top-width: 0;
    border-radius: 15px;
}

.customer-manage-page .data-table-card .card-header {
    min-height: 54px;
    padding: 13px 20px;
}

.customer-manage-page .data-table-card .card-header h6 {
    font-size: 16px;
    font-weight: 400;
}

.customer-manage-page .data-table-card .card-body {
    padding: 20px;
}

.customer-manage-page .quick_btn a {
    padding: 7px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.customer-manage-page .customer-export-title {
    width: 100%;
    margin: 0 0 15px;
    padding: 10px 16px;
    border-radius: 4px;
    background: var(--table-accent);
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(15, 118, 110, 0.18);
}

.import-export-toggle,
.import-export-toggle:focus {
    display: block;
    width: 100%;
    min-height: 35px;
    margin-bottom: 0;
    border: 0;
    border-radius: 4px;
    background: var(--table-accent);
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(15, 118, 110, 0.18);
}

.import-export-box {
    display: none;
    margin-bottom: 16px;
    padding: 20px;
    border-radius: 0 0 14px 14px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.import-export-actions {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 18px;
}

.import-export-green,
.import-export-green:focus {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 4px;
    background: var(--success-color);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(139, 195, 74, 0.22);
}

.import-export-green:hover {
    color: #fff;
    opacity: 0.92;
}

.import-card {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 9px rgba(15, 23, 42, 0.16);
}

.import-card-title {
    padding: 12px 20px;
    background: var(--table-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.import-card form {
    padding: 20px;
    background: #f8f8f8;
}

.import-file-row {
    margin-bottom: 20px;
}

.import-submit-btn,
.import-submit-btn:focus {
    border: 0;
    border-radius: 4px;
    background: var(--table-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.import-submit-btn:hover {
    color: #fff;
    background: var(--table-accent-dark);
}

.test-price-page .data-table-card .card-body {
    overflow-x: visible;
}

.test-price-page .import-export-toggle {
    margin-bottom: 14px;
}

.test-price-page .import-export-box {
    margin-top: -14px;
}

.test-price-page .customer-table-controls {
    margin-top: 4px;
}

.test-price-table {
    margin-bottom: 18px !important;
}

.test-price-table thead th {
    padding: 15px 18px !important;
    background: var(--table-accent) !important;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.test-price-table tbody td {
    padding: 14px 18px !important;
    color: #111827;
    font-size: 14px;
    vertical-align: middle;
}

.test-price-table tbody td:first-child {
    font-weight: 700;
}

.test-price-input {
    width: 210px;
    max-width: 100%;
}

.test-price-input .form-control {
    min-height: 38px;
    border-color: #cfd6e3;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    box-shadow: none;
}

.test-price-input .input-group-text {
    min-width: 54px;
    justify-content: center;
    border-color: #cfd6e3;
    background: #f1f4f8;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.test-price-save-btn,
.test-price-save-btn:focus {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--table-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(15, 118, 110, 0.2);
}

.test-price-save-btn:hover {
    background: var(--table-accent-dark);
    color: #fff;
}

.test-price-create-btn,
.test-price-create-btn:focus {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 7px 14px;
    border: 0;
    border-radius: 4px;
    background: var(--table-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.test-price-create-btn:hover {
    background: var(--table-accent-dark);
    color: #fff;
}

.test-create-modal {
    overflow: hidden;
    border: 0;
    border-radius: 8px;
}

.test-create-modal .modal-header {
    border-bottom: 0;
    background: var(--table-accent);
    color: #fff;
}

.test-create-modal .modal-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 16px;
    font-weight: 800;
}

.test-create-modal .btn-close {
    filter: brightness(0) invert(1);
}

.test-create-modal .form-label {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.test-create-modal .form-control,
.test-create-modal .input-group-text {
    min-height: 38px;
    border-color: #cfd6e3;
    box-shadow: none !important;
}

.test-create-modal textarea.form-control {
    min-height: 92px;
}

.customer-manage-page .dt-buttons::before {
    content: none;
}

.customer-manage-page .customer-table-controls {
    align-items: center;
    margin-bottom: 12px;
}

.customer-manage-page .dt-buttons {
    position: relative;
    justify-content: center;
    margin: 0;
}

.customer-manage-page .dt-buttons button.dt-button,
.customer-manage-page .dt-buttons .dt-button {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 13px;
}

.customer-manage-page .dt-buttons .dt-button i {
    margin-right: 3px;
}

.customer-manage-page .dt-buttons .column-toggle-button i:last-child {
    margin-right: 0;
    font-size: 10px;
}

.customer-manage-page .customer-column-menu {
    position: absolute;
    top: 38px;
    right: calc(50% - 165px);
    z-index: 20;
    display: none;
    min-width: 72px;
    padding: 2px 0;
    border-radius: 3px;
    background: #171c22;
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.25);
}

.customer-manage-page .customer-column-menu.show {
    display: block;
}

.customer-manage-page .customer-column-menu label {
    display: block;
    margin: 0;
    padding: 7px 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.customer-manage-page .customer-column-menu label:hover {
    background: rgba(255, 255, 255, 0.08);
}

.customer-manage-page .customer-column-menu input {
    display: none;
}

.customer-manage-page .dt-length,
.customer-manage-page .dt-search {
    font-size: 13px;
}

.customer-manage-page .dt-length select,
.customer-manage-page .dt-search input {
    height: 31px;
}

.customer-manage-page #data-table {
    min-width: 920px;
}

.doctor-manage-page #data-table {
    min-width: 1220px;
}

.customer-manage-page #data-table thead th,
.customer-manage-page table.dataTable thead th {
    padding: 14px 13px !important;
    font-size: 13px;
}

.customer-manage-page #data-table tbody td,
.customer-manage-page table.dataTable tbody td {
    padding: 12px 13px !important;
    font-size: 13px;
}

.customer-manage-page .dt-info,
.customer-manage-page .dataTables_info {
    font-size: 14px;
    padding-top: 16px;
}

.customer-manage-page .dt-paging,
.customer-manage-page .dataTables_paginate {
    padding-top: 8px;
}

.patient-form-page .wsit-content {
    padding-left: 14px;
    padding-right: 14px;
}

.patient-form-page .page-header {
    padding-bottom: 20px;
}

.patient-form-page .page-header-title h4 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 500;
}

.patient-form-page .page-header-title h4 i {
    color: var(--secondary-color);
    font-size: 24px;
    margin-right: 4px;
    vertical-align: -2px;
}

.patient-form-page .breadcrumb {
    font-size: 13px;
}

.patient-form-card {
    border-radius: 4px 4px 14px 14px;
    box-shadow: 0 3px 12px rgba(22, 28, 45, 0.14);
}

.patient-form-card .card-header {
    min-height: 44px;
    padding: 12px 20px;
    background: var(--table-accent);
    border-bottom: 0;
}

.patient-form-card .card-header h6 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.patient-form-card .card-body {
    padding: 20px;
}

.patient-input-group .input-group-text {
    width: 40px;
    justify-content: center;
    background: #edf1f6;
    border-color: #cfd6e3;
    color: #4b5563;
    font-size: 18px;
}

.patient-input-group .form-control,
.patient-input-group .form-select {
    height: 38px;
    border-color: #cfd6e3;
    background-color: #e7eefb;
    color: #000;
    font-size: 14px;
    box-shadow: none;
}

.patient-input-group .form-control:focus,
.patient-input-group .form-select:focus {
    border-color: #b7c3d4;
    box-shadow: none;
}

.patient-input-group .form-control::placeholder {
    color: #8b95a1;
}

.patient-form-card .card-footer {
    padding: 12px 20px;
    background: #f7f7f7;
}

.patient-save-btn {
    background: var(--table-accent);
    border-color: var(--table-accent);
    color: #fff;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
}

.patient-save-btn:hover,
.patient-save-btn:focus {
    background: var(--table-accent-dark);
    border-color: var(--table-accent-dark);
    color: #fff;
}

.doctor-form-page .patient-save-btn i {
    margin-right: 4px;
}

.contract-manage-page #data-table {
    min-width: 920px;
}

.contract-form-page .contract-field .form-label {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 9px;
}

.expense-category-manage-page #data-table {
    min-width: 620px;
}

.expense-category-form-page .patient-form-card .card-body {
    padding: 22px 20px 36px;
}

.expense-category-field .form-label {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 9px;
}

.expense-category-field .form-control {
    min-height: 38px;
    border-color: #cfd6e3;
    color: #111827;
    font-size: 14px;
    box-shadow: none;
}

.expense-category-field .form-control:focus {
    border-color: #b7c3d4;
    box-shadow: none;
}

.expense-category-field .form-control::placeholder {
    color: #8b95a1;
}

.expense-manage-page #data-table {
    min-width: 920px;
}

.expense-form-page .patient-form-card .card-body {
    padding: 20px;
}

.expense-form-page .patient-form-card .card-footer {
    padding: 12px 20px;
}

.expense-field .form-label {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 9px;
}

.expense-label-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
}

.expense-label-row .form-label {
    margin-bottom: 9px;
}

.expense-not-listed-btn,
.expense-not-listed-btn:focus {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 31px;
    margin-bottom: 0;
    padding: 6px 10px;
    border: 0;
    border-radius: 4px 4px 0 0;
    background: var(--accent-color);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.expense-not-listed-btn:hover {
    color: #fff;
    background: var(--accent-color-dark);
}

.expense-category-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

.expense-category-modal .modal-header {
    min-height: 44px;
    padding: 12px 18px;
    background: var(--table-accent);
    color: #fff;
}

.expense-category-modal .modal-title {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.expense-category-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 1;
}

.expense-category-modal .modal-body {
    padding: 20px;
}

.expense-category-modal .modal-footer {
    padding: 12px 20px;
    background: #f7f7f7;
}

.expense-field .form-control,
.expense-field .form-select,
.expense-field .select2-container .select2-selection--single {
    min-height: 38px;
    border-color: #cfd6e3;
    color: #111827;
    font-size: 14px;
    box-shadow: none;
}

.expense-field .select2-container {
    width: 100% !important;
}

.expense-field .select2-container .select2-selection--single {
    height: 38px;
}

.expense-field .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    color: #111827;
}

.expense-field .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.expense-field .form-control:focus,
.expense-field .form-select:focus {
    border-color: #b7c3d4;
    box-shadow: none;
}

.expense-field .note-editor.note-frame {
    overflow: hidden;
    border-color: #b7c3d4;
    border-radius: 14px;
}

.expense-field .note-toolbar {
    background: #fff;
}

.accounting-report-page .page-content {
    padding-top: 2px;
}

.accounting-filter-card .card-body {
    padding: 20px;
}

.accounting-filter-title,
.accounting-filter-title:focus {
    display: block;
    width: 100%;
    min-height: 35px;
    margin-bottom: 20px;
    padding: 9px 16px;
    border: 0;
    border-radius: 4px;
    background: var(--table-accent);
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(15, 118, 110, 0.18);
}

.accounting-filter-title:hover {
    background: var(--table-accent-dark);
    color: #fff;
}

.accounting-filter-form {
    padding: 0 0 18px;
}

.accounting-field .form-label,
.accounting-checks .form-label {
    display: block;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 9px;
}

.accounting-field .form-control,
.accounting-field .form-select,
.accounting-field .input-group-text,
.accounting-field .select2-container .select2-selection--single {
    min-height: 38px;
    border-color: #cfd6e3;
    color: #111827;
    font-size: 14px;
    box-shadow: none;
}

.accounting-field .input-group-text {
    width: 40px;
    justify-content: center;
    background: #edf1f6;
}

.accounting-field .input-group .form-control {
    min-width: 0;
}

.accounting-field .select2-container {
    width: 100% !important;
}

.accounting-field .select2-container .select2-selection--single {
    height: 38px;
}

.accounting-field .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    color: #111827;
}

.accounting-field .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.accounting-checks label:not(.form-label) {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.accounting-checks input {
    width: 13px;
    height: 13px;
    margin-right: 4px;
    vertical-align: -2px;
}

.accounting-submit-btn,
.accounting-submit-btn:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 116px;
    min-height: 38px;
    margin-top: 30px;
    border: 0;
    border-radius: 4px;
    background: var(--table-accent);
    color: #fff;
    box-shadow: 0 10px 18px rgba(15, 118, 110, 0.22);
}

.accounting-submit-btn:hover {
    background: var(--table-accent-dark);
    color: #fff;
}

.accounting-result-card {
    margin-top: 22px;
}

.accounting-result-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.accounting-export-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.accounting-export-btn,
.accounting-export-btn:focus {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    padding: 7px 12px;
    border: 0;
    border-radius: 4px;
    background: var(--accent-color-dark);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.accounting-export-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

.accounting-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.accounting-income-summary-grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
}

@media (max-width: 991.98px) {
    .accounting-income-summary-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
}

@media (max-width: 575.98px) {
    .accounting-income-summary-grid {
        grid-template-columns: 1fr;
    }
}

.doctor-summary-grid {
    grid-template-columns: repeat(7, minmax(110px, 1fr));
}

.activity-log-page .data-table-card .card-body {
    padding-top: 20px;
}

.activity-log-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.activity-clear-btn,
.activity-clear-btn:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto !important;
    height: auto !important;
    min-height: 34px;
    line-height: 1.2 !important;
    padding: 7px 12px;
    border: 0;
    border-radius: 4px;
    background: var(--danger-color);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.activity-clear-btn:hover {
    background: #b91c1c;
    color: #fff;
}

.activity-filter-toggle,
.activity-filter-toggle:focus {
    display: block;
    width: 100%;
    min-height: 35px;
    margin-bottom: 0;
    padding: 9px 16px;
    border: 0;
    border-radius: 4px;
    background: var(--table-accent);
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(15, 118, 110, 0.18);
}

.activity-filter-toggle:hover {
    background: var(--table-accent-dark);
    color: #fff;
}

.activity-filter-box {
    margin-bottom: 16px;
    padding: 20px;
    border-radius: 0 0 14px 14px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.activity-filter-field .form-label {
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 9px;
}

.activity-filter-field .form-select,
.activity-filter-field .select2-container .select2-selection--single {
    min-height: 38px;
    border-color: #cfd6e3;
    color: #111827;
    font-size: 14px;
}

.activity-filter-field .select2-container {
    width: 100% !important;
}

.activity-filter-field .select2-container .select2-selection--single {
    height: 38px;
}

.activity-filter-field .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
}

.activity-log-page #data-table {
    min-width: 900px;
}

.home-visit-manage-page #data-table {
    min-width: 1120px;
}

.home-visit-filter-toggle,
.home-visit-filter-toggle:focus {
    display: block;
    width: 100%;
    min-height: 35px;
    margin-bottom: 0;
    padding: 9px 16px;
    border: 0;
    border-radius: 4px;
    background: var(--table-accent);
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(15, 118, 110, 0.18);
}

.home-visit-filter-toggle:hover {
    background: var(--table-accent-dark);
    color: #fff;
}

.home-visit-filter-box {
    display: none;
    margin-bottom: 16px;
    padding: 20px;
    border-radius: 0 0 14px 14px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.home-visit-form-card .card-body {
    padding: 24px 26px 34px;
}

.home-visit-patient-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.home-visit-patient-head .form-label {
    margin: 0;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.home-visit-warning-btn,
.home-visit-warning-btn:focus {
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 4px;
    background: var(--accent-color) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
}

.home-visit-warning-btn:hover {
    background: var(--accent-color-dark) !important;
    color: #fff !important;
}

.home-visit-form-page .select2-container {
    width: 100% !important;
}

.home-visit-form-page .select2-container .select2-selection--single {
    height: 38px !important;
    border-color: #cfd6e3 !important;
    border-radius: 4px;
}

.home-visit-form-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    color: #111827;
    font-size: 14px;
}

.home-visit-form-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.home-visit-map-card,
.home-visit-attachment-card {
    margin-top: 18px;
    border-radius: 4px 4px 14px 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(22, 28, 45, 0.14);
}

.home-visit-section-title {
    padding: 13px 20px;
    background: var(--danger-color);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.home-visit-section-title i {
    margin-right: 4px;
}

.home-visit-map-body,
.home-visit-attachment-body {
    padding: 20px;
    background: #fff;
}

.home-visit-map-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.home-visit-location-btn,
.home-visit-location-btn:focus {
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 4px;
    background: var(--accent-color-dark) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
}

#location-status {
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
}

.home-visit-map-body iframe {
    display: block;
    width: 100%;
    height: 470px;
    border: 0;
}

.home-visit-attachment-body .form-label {
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 9px;
}

.home-visit-current-file {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
}

.home-visit-check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.home-visit-ajax-form .modal-header {
    background: var(--table-accent);
    color: #fff;
}

.home-visit-ajax-form .modal-title {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.database-backup-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.database-backup-create-btn,
.database-backup-create-btn:focus {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 34px;
    padding: 7px 12px;
    border: 0;
    border-radius: 4px;
    background: var(--table-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.database-backup-create-btn:hover {
    background: var(--table-accent-dark);
    color: #fff;
}

.database-backup-action-btn,
.database-backup-action-btn:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 4px;
    border: 0;
    border-radius: 50%;
    background: var(--table-accent);
    color: #fff;
    font-size: 17px;
}

.database-backup-action-btn:hover {
    background: var(--table-accent-dark);
    color: #fff;
}

.database-backup-delete-btn,
.database-backup-delete-btn:focus {
    background: var(--danger-color);
}

.database-backup-page #data-table {
    min-width: 760px;
}

.setting-page .setting-shell-card > .card-body {
    padding: 8px 20px 34px;
}

.setting-side-tabs {
    min-height: 400px;
    padding: 4px 0 0;
    border-radius: 0 0 12px 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(22, 28, 45, 0.12);
}

.setting-side-tab,
.setting-side-tab:focus {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-height: 36px;
    margin-bottom: 0;
    padding: 8px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--secondary-color);
    text-align: left;
    font-size: 14px;
    font-weight: 700;
}

.setting-side-tab.active,
.setting-side-tab:hover {
    background: var(--table-accent);
    color: #fff;
}

.setting-inner-card {
    border-radius: 4px 4px 14px 14px;
}

.setting-inner-card > .card-body {
    padding: 20px;
}

.setting-inner-card .form-label,
.setting-template-box .form-label {
    margin-bottom: 8px;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.setting-tab-bar {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin-bottom: 20px;
    border-radius: 4px 4px 0 0;
    background: var(--table-accent);
}

.setting-tab,
.setting-tab:focus {
    min-height: 40px;
    padding: 9px 16px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.setting-tab.active,
.setting-tab:hover {
    background: #fff;
    color: #111827;
}

.setting-general-tabs {
    margin-bottom: 0;
}

.setting-form-box {
    padding: 20px;
    border-radius: 0 0 14px 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(22, 28, 45, 0.14);
}

.setting-tab-form {
    margin: 0;
}

.setting-tab-footer {
    margin: 28px -20px -20px;
    padding: 12px 20px;
    background: #f5f5f5;
}

.setting-pane > .setting-tab-form > .setting-tab-footer {
    margin: 0;
    border-radius: 0 0 14px 14px;
}

.setting-form-box > .row .form-control,
.setting-form-box > .row .form-select,
.setting-template-box .form-control {
    min-height: 38px;
    border-color: #cfd6e3;
    color: #111827;
    font-size: 14px;
    box-shadow: none;
}

.setting-input-group .input-group-text {
    width: 44px;
    justify-content: center;
    border-color: #cfd6e3;
    background: #edf1f6;
    color: #334155;
    font-size: 18px;
}

.setting-input-group .form-control,
.setting-input-group .form-select,
.setting-input-group .select2-container .select2-selection--single {
    min-height: 38px;
    border-color: #cfd6e3;
    color: #111827;
    font-size: 14px;
    box-shadow: none;
}

.setting-input-group .select2-container {
    flex: 1 1 auto;
    width: 1% !important;
}

.setting-input-group .select2-container .select2-selection--single {
    height: 38px;
    border-radius: 0 4px 4px 0;
}

.setting-input-group .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    color: #111827;
}

.setting-input-group .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.setting-logo-note {
    padding: 16px;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}

.setting-color-field {
    display: flex;
    overflow: hidden;
    border: 1px solid #cfd6e3;
    border-radius: 4px;
}

.setting-color-field .setting-color-text {
    border: 0;
    border-radius: 0;
}

.setting-color-picker {
    width: 48px;
    min-width: 48px;
    height: 38px;
    padding: 5px;
    border: 0;
    border-left: 1px solid #cfd6e3;
    background: #edf1f6;
}

.setting-template-box {
    padding: 0 12px 16px;
}

.setting-email-tab-pane {
    display: none;
}

.setting-general-tab-pane {
    display: none;
}

.setting-logo-upload {
    display: grid;
    gap: 16px;
}

.setting-file-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 68px 42px;
    align-items: center;
    width: 100%;
    min-height: 38px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #cfd6e3;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.setting-file-row span {
    padding: 9px 12px;
    color: #1f2937;
    font-size: 13px;
    font-weight: 500;
}

.setting-file-row strong,
.setting-file-row i {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-left: 1px solid #cfd6e3;
    background: #edf1f6;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
}

.setting-file-row i {
    color: var(--extra-color);
    font-size: 16px;
}

.setting-switch-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.setting-switch-row input {
    display: none;
}

.setting-switch-row span {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 26px;
    border-radius: 999px;
    background: #bdbdbd;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
    transition: background 0.18s ease;
}

.setting-switch-row span::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    content: "";
    transition: transform 0.18s ease;
}

.setting-switch-row input:checked + span {
    background: var(--table-accent);
}

.setting-switch-row input:checked + span::before {
    transform: translateX(22px);
}

.setting-switch-row strong {
    color: #111827;
    font-weight: 800;
}

#report-setting-pane .setting-switch-row strong {
    color: #111827;
}

#report-setting-pane .setting-form-box {
    padding: 0;
    border-radius: 0 0 12px 12px;
    background: transparent;
    box-shadow: none;
}

#report-setting-pane .setting-form-box > .row {
    --bs-gutter-y: 16px;
}

#report-setting-pane .setting-form-box > .row > [class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
}

.setting-report-upload-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 18px 18px;
    background: #fff;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

.setting-report-upload-title {
    min-height: 44px;
    padding: 10px 20px;
    background: var(--secondary-color);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 24px;
    box-shadow: 0 10px 16px rgba(30, 64, 175, 0.18);
}

.setting-report-upload-body {
    padding: 22px 20px 34px;
}

.setting-report-upload-body .form-label {
    display: block;
    margin: 8px 0 10px;
    color: #050b16;
    font-size: 14px;
    font-weight: 800;
}

.setting-report-upload-body .setting-switch-row {
    display: flex;
    width: max-content;
    margin: 0 0 8px;
    gap: 0;
    flex-wrap: wrap;
}

.setting-report-upload-body .setting-switch-row strong {
    display: block;
    flex: 0 0 100%;
    order: -1;
    margin: 0 0 10px;
    color: #050b16 !important;
    font-size: 15px;
    line-height: 22px;
}

.setting-report-upload-body .setting-switch-row span {
    width: 60px;
    height: 34px;
    background: #bfc5cc;
    box-shadow: none;
}

.setting-report-upload-body .setting-switch-row span::before {
    top: 4px;
    left: 4px;
    width: 26px;
    height: 26px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
}

.setting-report-upload-body .setting-switch-row input:checked + span {
    background: var(--extra-color);
}

.setting-report-upload-body .setting-switch-row input:checked + span::before {
    transform: translateX(26px);
}

.setting-report-upload-body .setting-file-row {
    grid-template-columns: minmax(0, 1fr) 70px 41px;
    min-height: 38px;
    border-color: #ccd5df;
    border-radius: 3px;
}

.setting-report-upload-body .setting-file-row span {
    padding: 8px 12px;
    color: #1f2937;
    font-size: 13px;
    font-weight: 500;
}

.setting-report-upload-body .setting-file-row strong,
.setting-report-upload-body .setting-file-row i {
    border-left-color: #ccd5df;
    background: #edf1f5;
    color: #233044;
}

.setting-report-upload-body .setting-file-row i {
    color: var(--extra-color);
}

.setting-footer-height-row {
    margin-top: 14px;
    max-width: 360px;
}

.setting-footer-height-row small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 575px) {
    .setting-report-upload-title {
        padding: 10px 14px;
        font-size: 16px;
    }

    .setting-report-upload-body {
        padding: 18px 14px 24px;
    }

    .setting-report-upload-body .setting-file-row {
        grid-template-columns: minmax(0, 1fr) 64px 38px;
    }
}

.setting-variable-note {
    margin: 0 0 14px;
    color: #ff2d2d;
    font-size: 13px;
}

.setting-variable-note p {
    margin-bottom: 4px;
}

.setting-message-field {
    min-height: 68px;
    resize: vertical;
}

.accounting-summary-grid div,
.accounting-profit-box {
    padding: 14px;
    border-radius: 6px;
    background: #f4f6f9;
    border: 1px solid #dce3ec;
}

.accounting-summary-grid span,
.accounting-profit-box span {
    display: block;
    color: #4b5563;
    font-size: 12px;
    font-weight: 800;
}

.accounting-summary-grid strong,
.accounting-profit-box strong {
    display: block;
    margin-top: 4px;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
}

.accounting-report-section {
    margin-top: 18px;
}

.accounting-report-section h6 {
    margin-bottom: 10px;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
}

.accounting-report-table thead th {
    background: var(--table-accent) !important;
    color: #fff;
    font-size: 13px;
}

.accounting-report-table tfoot th {
    background: #f4f6f9;
    color: #111827;
    font-weight: 800;
}

.accounting-print-header {
    display: none;
}

.accounting-profit-box {
    margin-top: 18px;
    background: #eaf7ef;
    border-color: #bfe6cc;
}

@media print {
    .accounting-filter-card,
    .accounting-export-actions,
    .wsit-sidebar,
    .wsit-header,
    .wsit-footer,
    .page-header {
        display: none !important;
    }

    html,
    body {
        background: #fff !important;
    }

    .accounting-report-page,
    .accounting-report-page .wsit-content {
        position: static !important;
        top: 0 !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .accounting-report-page .page-content {
        padding: 0 !important;
    }

    .accounting-result-card {
        width: 100% !important;
        margin: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .accounting-result-card > .card-header {
        display: none !important;
    }

    .accounting-result-card > .card-body {
        padding: 0 !important;
    }

    .accounting-print-header {
        display: block !important;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--table-accent);
        text-align: center;
    }

    .accounting-print-header h1 {
        margin: 0;
        color: #111827;
        font-size: 20px;
        font-weight: 800;
    }

    .accounting-print-period {
        margin-top: 4px;
        color: #4b5563;
        font-size: 10px;
    }

    .accounting-print-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 16px;
        margin-top: 7px;
        font-size: 9px;
    }

    .accounting-income-summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
        gap: 8px;
        margin-bottom: 14px;
    }

    .accounting-summary-grid div {
        padding: 8px 10px;
        break-inside: avoid;
    }

    .accounting-summary-grid span {
        font-size: 9px;
    }

    .accounting-summary-grid strong {
        font-size: 14px;
    }

    .accounting-report-section {
        margin-top: 12px;
    }

    .accounting-report-section + .accounting-report-section {
        break-before: page;
    }

    .accounting-report-section h6 {
        margin: 0 0 7px;
        font-size: 12px;
    }

    .accounting-report-section .table-responsive {
        width: 100% !important;
        overflow: visible !important;
    }

    .accounting-report-table {
        width: 100% !important;
        table-layout: fixed;
        border-collapse: collapse !important;
        font-size: 8px;
    }

    .accounting-report-table thead {
        display: table-header-group;
    }

    .accounting-report-table tfoot {
        display: table-footer-group;
    }

    .accounting-report-table tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .accounting-report-table th,
    .accounting-report-table td {
        padding: 5px 4px !important;
        border: 1px solid #cfd8e3 !important;
        line-height: 1.35;
        overflow-wrap: anywhere;
        vertical-align: top;
    }

    .accounting-report-table th {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .accounting-doctor-table th:nth-child(1),
    .accounting-doctor-table td:nth-child(1) { width: 11%; white-space: nowrap; }
    .accounting-doctor-table th:nth-child(2),
    .accounting-doctor-table td:nth-child(2) { width: 12%; white-space: nowrap; }
    .accounting-doctor-table th:nth-child(3),
    .accounting-doctor-table td:nth-child(3) { width: 13%; }
    .accounting-doctor-table th:nth-child(4),
    .accounting-doctor-table td:nth-child(4) { width: 17%; }
    .accounting-doctor-table th:nth-child(5),
    .accounting-doctor-table td:nth-child(5) { width: 12%; }
    .accounting-doctor-table th:nth-child(6),
    .accounting-doctor-table td:nth-child(6),
    .accounting-doctor-table th:nth-child(7),
    .accounting-doctor-table td:nth-child(7),
    .accounting-doctor-table th:nth-child(8),
    .accounting-doctor-table td:nth-child(8) { width: 8%; white-space: nowrap; }
    .accounting-doctor-table th:nth-child(9),
    .accounting-doctor-table td:nth-child(9) { width: 11%; }

    .accounting-test-table th:nth-child(1),
    .accounting-test-table td:nth-child(1) { width: 14%; white-space: nowrap; }
    .accounting-test-table th:nth-child(2),
    .accounting-test-table td:nth-child(2) { width: 14%; white-space: nowrap; }
    .accounting-test-table th:nth-child(3),
    .accounting-test-table td:nth-child(3) { width: 16%; }
    .accounting-test-table th:nth-child(4),
    .accounting-test-table td:nth-child(4) { width: 20%; }
    .accounting-test-table th:nth-child(5),
    .accounting-test-table td:nth-child(5) { width: 16%; }
    .accounting-test-table th:nth-child(6),
    .accounting-test-table td:nth-child(6) { width: 9%; white-space: nowrap; }
    .accounting-test-table th:nth-child(7),
    .accounting-test-table td:nth-child(7) { width: 11%; }
}

.contract-form-page .contract-field .form-control {
    height: 38px;
    border-color: #cfd6e3;
    color: #111827;
    font-size: 14px;
    box-shadow: none;
}

.contract-form-page .contract-field .form-control:focus {
    border-color: #b7c3d4;
    box-shadow: none;
}

.contract-form-page .note-editor.note-frame {
    border-color: #b7b7b7;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
}

.contract-form-page .note-toolbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.contract-form-page .note-editable {
    min-height: 200px;
}

.contract-form-page .patient-save-btn i {
    margin-right: 4px;
}

.branch-manage-page #data-table {
    min-width: 920px;
}

.branch-form-card .card-body {
    padding-bottom: 34px;
}

.branch-map-card {
    margin-top: 2px;
    border-radius: 4px 4px 14px 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(22, 28, 45, 0.14);
}

.branch-map-title {
    padding: 13px 20px;
    background: var(--danger-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.branch-map-title i {
    margin-right: 4px;
}

.branch-map-body {
    padding: 20px;
    background: #fff;
}

.branch-map-body iframe {
    display: block;
    width: 100%;
    height: 500px;
    border: 0;
}

.branch-form-page .patient-save-btn i {
    margin-right: 4px;
}

.test-manage-page #data-table {
    min-width: 920px;
}

.test-form-page .form-label {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.test-form-page .form-control,
.test-form-page .form-select,
.test-form-page .input-group-text {
    height: 38px;
    border-color: #cfd6e3;
    color: #111827;
    font-size: 14px;
    box-shadow: none !important;
}

.test-form-page textarea.form-control {
    height: auto;
    min-height: 78px;
}

.test-form-page .input-group-text {
    display: inline-flex;
    align-items: center;
    background: #edf1f6;
    color: #4b5563;
    font-weight: 700;
}

.test-components-card {
    margin-top: 8px;
    border-radius: 4px 4px 14px 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(22, 28, 45, 0.14);
}

.test-components-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--danger-color);
}

.test-components-header h6 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.test-components-header > div {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.test-add-btn,
.test-add-btn:focus {
    min-height: 32px;
    padding: 5px 10px;
    border-radius: 4px;
    background: var(--accent-color-dark) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
}

.test-add-btn:hover {
    background: var(--accent-color) !important;
    color: #fff !important;
}

.test-components-body {
    overflow-x: auto;
    background: #fff;
}

.test-component-table {
    width: 100%;
    min-width: 1030px;
    border-collapse: collapse;
    border: 1px solid var(--table-border);
}

.test-component-table th {
    padding: 12px 10px;
    background: var(--table-accent);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.test-component-table td {
    padding: 10px !important;
    border: 1px solid var(--table-border);
    vertical-align: top;
    background: #f6faf9;
}

.test-component-table .form-control {
    height: 34px;
    padding: 6px 9px;
    background: #fff;
    font-size: 13px;
}

.test-component-table textarea.form-control {
    height: auto;
    min-height: 58px;
    resize: vertical;
}

.test-title-row td {
    background: #e5e5e5 !important;
}

.test-title-row .form-control {
    max-width: 520px;
    background: #fff;
    font-weight: 600;
}

.test-action-cell {
    width: 54px;
    text-align: center;
    vertical-align: middle !important;
}

.test-remove-btn,
.test-remove-btn:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: var(--danger-color) !important;
    color: #fff !important;
    padding: 0;
}

.test-remove-btn:hover {
    background: #dc2626 !important;
}

.test-result-types {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 34px;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
}

.test-result-types label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.test-result-types input {
    height: 14px;
    width: 14px;
}

.test-checkbox-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin: 0;
}

.test-options-box {
    margin-top: 8px;
    border: 1px solid #d6dae2;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.test-options-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    padding: 6px 8px;
    background: #eef0f4;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.test-option-add,
.test-option-add:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: var(--table-accent) !important;
    color: #fff !important;
}

.test-options-list {
    padding: 8px;
}

.test-option-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.test-option-row:last-child {
    margin-bottom: 0;
}

.test-option-row .form-control {
    flex: 1;
}

.separated-price-box {
    width: 170px;
    margin-top: 8px;
    border: 1px solid #d6dae2;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.separated-price-title {
    padding: 7px 9px;
    background: var(--table-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.separated-price-box .input-group {
    padding: 8px;
}

.separated-price-box .form-control,
.separated-price-box .input-group-text {
    height: 32px;
    font-size: 13px;
}

.test-form-page .patient-save-btn i {
    margin-right: 4px;
}

.invoice-manage-page #data-table {
    width: 100% !important;
    min-width: 1280px;
}

.invoice-manage-page .data-table-card .card-body {
    overflow-x: auto;
    overflow-y: hidden;
}

.invoice-manage-page .dt-container,
.invoice-manage-page .dataTables_wrapper,
.invoice-manage-page .dt-layout-table,
.invoice-manage-page .dt-layout-full {
    overflow: visible;
}

.invoice-manage-page .table {
    margin-bottom: 12px;
}

.invoice-manage-page #data-table th,
.invoice-manage-page #data-table td {
    vertical-align: middle;
}

.invoice-manage-page #data-table th {
    padding: 13px 12px;
}

.invoice-manage-page #data-table td {
    padding: 14px 12px;
    height: 60px;
}

.invoice-manage-page #data-table th:first-child,
.invoice-manage-page #data-table td:first-child {
    width: 38px;
    text-align: center;
}

.invoice-manage-page #data-table th:last-child,
.invoice-manage-page #data-table td:last-child {
    width: 82px;
    text-align: center;
}

.invoice-due {
    color: #ff203f;
    font-weight: 800;
}

.invoice-filter-toggle,
.invoice-filter-toggle:focus {
    display: block;
    width: 100%;
    min-height: 35px;
    margin-bottom: 16px;
    border: 0;
    border-radius: 4px;
    background: var(--table-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: none;
}

.invoice-filter-box {
    display: none;
    margin-top: -16px;
    margin-bottom: 14px;
    padding: 22px 16px 28px;
    border: 2px solid #00ff22;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.invoice-filter-box .form-label {
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.invoice-filter-box .form-control,
.invoice-filter-box .form-select {
    min-height: 38px;
    border-color: #cfd6e3;
    font-size: 14px;
    box-shadow: none;
}

.collection-fee-manage-page .invoice-filter-box .row {
    align-items: end;
}

.collection-fee-manage-page .invoice-filter-box .col-lg-4 {
    flex: 0 0 25%;
    max-width: 25%;
}

.collection-fee-manage-page .invoice-filter-box .select2-container {
    width: 100% !important;
}

.collection-fee-manage-page .invoice-filter-box .select2-container .select2-selection--single {
    min-height: 38px;
    border-color: #cfd6e3;
}

.collection-fee-manage-page .invoice-filter-box .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
}

.collection-fee-manage-page .invoice-filter-box .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.invoice-manage-page .invoice-filter-box .select2-container {
    width: 100% !important;
}

.invoice-manage-page .invoice-filter-box .select2-container .select2-selection--single {
    min-height: 38px;
    border-color: #cfd6e3;
}

.invoice-manage-page .invoice-filter-box .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
}

.invoice-manage-page .invoice-filter-box .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

@media (max-width: 991.98px) {
    .collection-fee-manage-page .invoice-filter-box .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    .collection-fee-manage-page .invoice-filter-box .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.payment-entry-form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 220px;
}

.payment-entry-form .form-control {
    width: 118px;
    min-height: 34px;
    border-color: #cfd6e3;
    font-size: 13px;
    box-shadow: none;
}

.payment-entry-btn,
.payment-entry-btn:focus,
.payment-print-btn,
.payment-print-btn:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    padding: 6px 12px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: none;
}

.payment-entry-btn,
.payment-entry-btn:focus {
    background: var(--table-accent);
}

.payment-print-btn,
.payment-print-btn:focus {
    background: var(--success-color);
}

.payment-entry-paid {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 4px;
    background: #eaf7ef;
    color: #107c41;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 575.98px) {
    .payment-entry-form {
        min-width: 0;
        flex-direction: column;
        align-items: stretch;
    }

    .payment-entry-form .form-control,
    .payment-entry-btn {
        width: 100%;
    }
}

.invoice-action-btn,
.invoice-action-btn:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 54px;
    height: 36px;
    border: 0;
    border-radius: 20px;
    background: var(--table-accent);
    color: #fff;
    box-shadow: none;
}

.invoice-action-wrap {
    position: relative;
    display: inline-flex;
    justify-content: center;
}

.invoice-action-menu {
    position: fixed;
    z-index: 2050;
    display: none;
    min-width: 160px;
    padding: 8px 0;
    border: 1px solid #cfd6e3;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
    text-align: left;
}

.invoice-action-menu.show {
    display: block;
}

.invoice-action-menu a,
.invoice-action-menu button,
.invoice-action-menu .invoice-action-label {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 4px;
    padding: 5px 10px;
    border: 0;
    background: transparent;
    color: #263238;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
}

.invoice-action-menu a:hover,
.invoice-action-menu button:hover {
    background: #f3f4f6;
    color: #111827;
}

.invoice-action-menu .invoice-action-label {
    color: #198754;
    cursor: default;
}

.invoice-action-menu form {
    margin: 0;
}

.invoice-action-menu .delete_btn,
.invoice-action-menu .delete_btn:focus {
    height: auto;
    border-radius: 0;
    background: transparent !important;
    color: #263238 !important;
    box-shadow: none;
}

.invoice-create-page .invoice-card {
    margin-bottom: 16px;
}

.invoice-show-page .page-header-title h4 {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 500;
}

.report-manage-page #data-table {
    width: 100% !important;
    min-width: 1500px;
}

.report-manage-page .data-table-card .card-body {
    overflow-x: auto;
    overflow-y: hidden;
}

.report-test-list {
    margin: 0;
    padding-left: 18px;
}

.report-test-list li {
    margin-bottom: 4px;
}

.report-sample-test-list,
.sample-test-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 360px;
}

.report-sample-test-chip,
.sample-test-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 27px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    cursor: help;
}

.sample-test-chip {
    cursor: pointer;
}

.sample-test-chip input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #059669;
}

.report-sample-test-chip.tone-1,
.sample-test-chip.tone-1 {
    background: #ecfeff;
    border-color: #a5f3fc;
}

.report-sample-test-chip.tone-2,
.sample-test-chip.tone-2 {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.report-sample-test-chip.tone-3,
.sample-test-chip.tone-3 {
    background: #fff7ed;
    border-color: #fed7aa;
}

.report-sample-test-chip.tone-4,
.sample-test-chip.tone-4 {
    background: #fef2f2;
    border-color: #fecaca;
}

.report-sample-test-chip.tone-5,
.sample-test-chip.tone-5 {
    background: #f5f3ff;
    border-color: #ddd6fe;
}

.report-sample-test-chip.tone-6,
.sample-test-chip.tone-6 {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.report-sample-test-chip.is-collected,
.sample-test-chip.is-collected {
    box-shadow: inset 3px 0 0 #16a34a;
}

.report-sample-test-chip.is-pending,
.sample-test-chip.is-pending {
    box-shadow: inset 3px 0 0 #ef4444;
}

.report-sample-test-chip i {
    color: #ef4444;
}

.report-sample-test-chip.is-collected i {
    color: #16a34a;
}

.sample-aware-tab {
    position: relative;
}

.sample-aware-tab i {
    margin-right: 4px;
}

.sample-aware-tab.sample-collected {
    border-color: #86efac;
}

.sample-aware-tab.sample-pending {
    border-color: #fecaca;
}

.report-sample-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.report-sample-status.is-collected {
    background: #dcfce7;
    color: #166534;
}

.report-sample-status.is-pending {
    background: #fee2e2;
    color: #991b1b;
}

.sample-collection-page #data-table {
    min-width: 1380px;
}

.report-top-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 14px;
}

.report-info-btn,
.report-info-btn:focus {
    border: 0;
    border-radius: 4px;
    background: var(--extra-color);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.report-print-btn,
.report-print-btn:focus {
    border: 0;
    border-radius: 4px;
    background: var(--danger-color);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.report-entry-card {
    border: 0;
    border-top: 0;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(22, 28, 45, 0.14);
}

.report-entry-card > .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 45px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--table-border);
}

.report-entry-card > .card-header h6 {
    margin: 0;
    color: #111827;
    font-size: 15px;
    font-weight: 500;
}

.report-entry-card > .card-header i {
    color: #9ca3af;
    font-size: 18px;
    margin-left: 12px;
    cursor: pointer;
}

.report-entry-card > .card-body {
    padding: 20px;
}

.report-test-tabs {
    display: flex;
    align-items: stretch;
    min-height: 40px;
    margin: 0 0 20px;
    border-radius: 4px 4px 0 0;
    background: var(--table-accent);
    box-shadow: 0 8px 18px rgba(13, 71, 161, 0.11);
}

.report-test-tab {
    min-width: 90px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.report-test-tab.active {
    margin-top: 4px;
    border-radius: 4px 4px 0 0;
    background: #fff;
    color: #111827;
    font-weight: 500;
}

.report-test-panel {
    margin-bottom: 0;
    border: 1px solid #d8dee8;
    background: #fff;
}

.report-test-accordion-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 11px 18px;
    border-bottom: 1px solid #d8dee8;
}

.report-test-accordion-head span {
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.report-test-accordion-body {
    padding: 20px;
}

.report-test-title {
    display: none;
}

.report-result-table {
    margin: 20px 20px 12px;
    width: calc(100% - 40px);
}

.report-result-table th {
    padding: 14px 12px;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.report-result-table td {
    padding: 12px;
    color: #111827;
    font-size: 14px;
    vertical-align: middle;
}

.report-result-table .report-component-group-row td,
.report-print-table .report-component-group-row td {
    padding: 9px 12px;
    background: #e8eef5;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    text-align: left;
}

.report-result-table .form-control,
.report-result-table .form-select {
    min-height: 38px;
    border-color: #cfd6e3;
    box-shadow: none;
}

.report-comment {
    margin: 0 20px 12px;
    min-height: 86px;
    width: calc(100% - 40px);
}

.report-save-btn,
.report-save-btn:focus {
    margin: 0 0 12px 20px;
    border: 0;
    border-radius: 20px;
    background: var(--table-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.report-empty-box {
    padding: 22px;
    text-align: center;
    color: #111827;
}

.report-patient-modal .modal-body p {
    margin-bottom: 8px;
    color: #1f2937;
}

.report-print-title {
    margin: 24px 0 8px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 800;
}

.report-print-comment {
    margin-top: 18px;
    padding: 12px;
    background: #f3f4f6;
}

.report-print-page .page-header-title h4 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 500;
}

.report-print-page .page-header-title h4 i {
    color: var(--secondary-color);
    font-size: 26px;
    vertical-align: -2px;
}

.report-print-help {
    color: #111827;
    font-size: 14px;
}

.report-print-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 26px;
}

.report-select-btn,
.report-select-btn:focus {
    border: 0;
    border-radius: 4px;
    background: var(--success-color);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(122, 201, 67, 0.24);
}

.report-deselect-btn,
.report-deselect-btn:focus {
    border: 0;
    border-radius: 4px;
    background: var(--danger-color);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(239, 90, 105, 0.22);
}

.report-print-main-btn,
.report-print-main-btn:focus {
    border: 0;
    border-radius: 4px;
    background: var(--table-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(15, 118, 110, 0.22);
}

.report-print-page .report-info-btn {
    margin-top: 16px;
}

.report-print-patient-card {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(22, 28, 45, 0.10);
}

.report-print-patient-title {
    margin-bottom: 12px;
    color: var(--table-accent);
    font-size: 15px;
    font-weight: 800;
}

.report-print-patient-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.report-print-patient-grid div {
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.report-print-patient-grid span,
.report-print-patient-grid strong {
    display: block;
    overflow-wrap: anywhere;
}

.report-print-patient-grid span {
    margin-bottom: 3px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.report-print-patient-grid strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.report-print-patient-wide {
    grid-column: span 2;
}

.report-print-section {
    overflow: hidden;
    margin-bottom: 16px;
    border: 0;
    border-radius: 6px 6px 14px 14px;
    box-shadow: 0 3px 12px rgba(22, 28, 45, 0.14);
}

.report-print-section > .card-header {
    min-height: 44px;
    padding: 13px 22px;
    background: var(--table-accent);
    color: #fff;
}

.report-print-section > .card-header h6 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.report-print-section > .card-body {
    padding: 26px;
}

.report-print-test-card {
    overflow: hidden;
    margin-bottom: 26px;
    border-top: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(22, 28, 45, 0.16);
}

.report-print-test-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 12px 20px;
    border-bottom: 1px solid #d8dee8;
}

.report-print-test-head label {
    margin: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.report-print-tools {
    display: flex;
    gap: 14px;
}

.report-toggle-btn,
.report-remove-btn {
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
    font-size: 20px;
    line-height: 1;
}

.report-print-test-body {
    padding: 20px;
}

.report-test-title-box {
    margin-bottom: 12px;
    padding: 9px;
    border: 2px solid #111;
    background: #dedede;
    color: #111827;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
}

.report-print-table {
    margin-bottom: 0;
}

.report-print-table th {
    padding: 9px 6px;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.report-print-table td {
    padding: 12px 6px;
    color: #111827;
    font-size: 14px;
}

.report-print-table th:nth-child(1),
.report-print-table td:nth-child(1) {
    width: 38%;
}

.report-print-table th:nth-child(2),
.report-print-table td:nth-child(2) {
    width: 21%;
    text-align: center;
}

.report-print-table th:nth-child(3),
.report-print-table td:nth-child(3) {
    width: 12%;
    text-align: center;
}

.report-print-table th:nth-child(4),
.report-print-table td:nth-child(4) {
    width: 21%;
    text-align: center;
}

.report-print-table th:nth-child(5),
.report-print-table td:nth-child(5) {
    width: 8%;
    text-align: center;
}


@media print {
    @page {
        size: A4;
        margin: 4mm 10mm 8mm;
    }

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .report-print-actions,
    .report-print-page .report-info-btn,
    .report-print-page .page-header,
    .wsit-sidebar,
    .wsit-header,
    .wsit-footer,
    .breadcrumb,
    .report-print-tools,
    .report-print-test-head,
    .report-print-check {
        display: none !important;
    }

    .report-print-page,
    .report-print-page .wsit-content,
    .report-print-page .page-content {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .report-print-patient-card {
        margin: 0 0 7mm !important;
        padding: 4mm !important;
        border: 1px solid #111827 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-print-patient-title {
        margin: 0 0 3mm !important;
        padding-bottom: 1.5mm;
        border-bottom: 2px solid var(--table-accent);
        color: #111827 !important;
        font-size: 15px !important;
        line-height: 1.2;
    }

    .report-print-patient-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.8mm;
    }

    .report-print-patient-grid div {
        padding: 1.6mm 2mm !important;
        border: 1px solid #cbd5e1 !important;
        background: #f8fafc !important;
    }

    .report-print-patient-grid span {
        margin-bottom: 0.7mm;
        color: #475569 !important;
        font-size: 9px !important;
        line-height: 1.1;
    }

    .report-print-patient-grid strong {
        color: #111827 !important;
        font-size: 10.5px !important;
        line-height: 1.2;
    }

    .report-print-section {
        overflow: visible !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .report-print-section > .card-header {
        min-height: 0 !important;
        margin-bottom: 5mm;
        padding: 2.5mm 4mm !important;
        background: var(--table-accent) !important;
    }

    .report-print-section > .card-header h6 {
        color: #fff !important;
        font-size: 12px !important;
        line-height: 1.2;
    }

    .report-print-section > .card-body {
        padding: 0 !important;
    }

    .report-print-test-card {
        overflow: visible !important;
        margin: 0 0 8mm !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-print-test-card[style*="display: none"] {
        display: none !important;
    }

    .report-print-test-body {
        display: block !important;
        padding: 0 !important;
    }

    .report-test-title-box {
        margin: 0 0 3mm !important;
        padding: 2.5mm !important;
        border: 1px solid #111827 !important;
        background: #e5e7eb !important;
        color: #111827 !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        line-height: 1.2;
    }

    .report-print-table {
        width: 100% !important;
        border-collapse: collapse !important;
        table-layout: fixed;
    }

    .report-print-table th,
    .report-print-table td {
        padding: 2.2mm 1.8mm !important;
        border: 1px solid #cbd5e1 !important;
        color: #111827 !important;
        font-size: 10px !important;
        line-height: 1.25;
        vertical-align: middle !important;
        overflow-wrap: anywhere;
    }

    .report-print-table th {
        background: var(--table-accent) !important;
        color: #fff !important;
        font-weight: 800 !important;
        text-align: center;
    }

    .report-print-table .report-component-group-row td {
        padding: 1.5mm 1.8mm !important;
        background: #e2e8f0 !important;
        color: #111827 !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        text-align: left !important;
    }

    .report-print-comment {
        margin: 0 0 6mm !important;
        padding: 3mm !important;
        border: 1px solid #cbd5e1;
        background: #f8fafc !important;
        color: #111827 !important;
        font-size: 10.5px;
    }
}

.invoice-show-page .page-header-title h4 i {
    color: var(--secondary-color);
    font-size: 25px;
    vertical-align: -2px;
}

.invoice-show-card {
    border: 0;
    border-top: 0;
    border-radius: 5px 5px 12px 12px;
    box-shadow: 0 3px 12px rgba(22, 28, 45, 0.14);
}

.invoice-show-card > .card-header {
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 0;
    background: var(--table-accent);
    color: #fff;
}

.invoice-show-card > .card-header h6 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.invoice-show-card > .card-body {
    padding: 36px;
}

.invoice-info-table {
    margin-bottom: 40px;
}

.invoice-info-table td {
    width: 50%;
    padding: 7px 6px;
    border-color: #d8dee8;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.invoice-info-table strong {
    display: inline-block;
    padding: 1px 3px;
    background: #dfe3e8;
    color: #111827;
}

.invoice-due-date {
    margin-bottom: 20px;
    color: #1f2937;
    font-size: 17px;
    font-weight: 400;
}

.invoice-tests-table {
    margin-bottom: 0;
}

.invoice-tests-table th {
    padding: 14px 12px;
    background: var(--table-accent) !important;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.invoice-tests-table td {
    padding: 9px 12px;
    border-color: #d8dee8;
    color: #111827;
    font-size: 14px;
}

.invoice-tests-table th:last-child,
.invoice-tests-table td:last-child {
    width: 15%;
}

.invoice-show-summary {
    width: 30%;
    min-width: 470px;
    margin-left: auto;
    padding: 4px 0;
    background: #e9e9e9;
}

.invoice-show-summary .summary-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr);
    gap: 24px;
    padding: 8px 10px;
    color: #111827;
    font-size: 14px;
}

.invoice-show-summary .summary-row strong {
    font-weight: 800;
}

.invoice-show-actions {
    display: flex;
    gap: 4px;
    padding: 12px 20px;
    border-top: 0;
    background: #f3f3f3;
}

.invoice-print-btn,
.invoice-print-btn:focus {
    border: 0;
    border-radius: 4px;
    background: var(--danger-color);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.invoice-barcode-btn,
.invoice-barcode-btn:focus {
    border: 0;
    border-radius: 4px;
    background: var(--accent-color);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.invoice-print-btn:hover,
.invoice-barcode-btn:hover {
    color: #fff;
    opacity: 0.9;
}

@media print {
    .wsit-sidebar,
    .wsit-header,
    .wsit-footer,
    .page-header,
    .invoice-show-actions {
        display: none !important;
    }

    .wsit-container,
    .wsit-content {
        margin: 0 !important;
        padding: 0 !important;
    }

    .invoice-show-card {
        box-shadow: none;
    }
}

.invoice-receipt-page .wsit-content {
    padding-left: 14px;
    padding-right: 14px;
}

.invoice-screen-header {
    padding-bottom: 16px;
}

.invoice-a4-sheet {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto 28px;
    padding: 12mm;
    background: #fff;
    color: #111;
    border: 1px solid #d8d8d8;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 1.35;
}

.invoice-print-header {
    display: grid;
    grid-template-columns: 1fr 56mm;
    gap: 8mm;
    align-items: start;
    padding-bottom: 5mm;
    border-bottom: 1px solid #111;
}

.invoice-company-block {
    display: grid;
    grid-template-columns: 22mm 1fr;
    gap: 4mm;
    align-items: start;
}

.invoice-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22mm;
    height: 22mm;
    border: 1px solid #222;
    color: #111;
    font-size: 16px;
    font-weight: 800;
}

.invoice-logo-box img {
    max-width: 19mm;
    max-height: 19mm;
    object-fit: contain;
}

.invoice-company-block h1 {
    margin: 0 0 2mm;
    color: #111;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0;
}

.invoice-company-block p,
.invoice-meta-block p {
    margin: 0 0 1mm;
    color: #222;
}

.invoice-meta-block {
    text-align: right;
}

.invoice-meta-block strong {
    display: block;
    margin-bottom: 1.5mm;
    color: #111;
    font-size: 13px;
    letter-spacing: 1px;
}

.invoice-barcode-lines {
    width: 48mm;
    height: 13mm;
    margin: 0 0 2mm auto;
    background: repeating-linear-gradient(90deg, #111 0 1px, #fff 1px 3px, #111 3px 5px, #fff 5px 7px, #111 7px 8px, #fff 8px 11px);
}

.invoice-title-band {
    padding: 3mm 0 2.5mm;
    text-align: center;
}

.invoice-title-band h2 {
    display: inline-block;
    margin: 0;
    padding: 1.5mm 10mm;
    border: 1px solid #111;
    color: #111;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.8px;
}

.invoice-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #222;
    border-left: 1px solid #222;
}

.invoice-info-item {
    display: grid;
    grid-template-columns: 34mm 1fr;
    min-height: 8mm;
    border-right: 1px solid #222;
    border-bottom: 1px solid #222;
}

.invoice-info-item span,
.invoice-info-item strong {
    padding: 1.8mm 2.2mm;
    color: #111;
    font-size: 11px;
}

.invoice-info-item span {
    background: #f2f2f2;
    border-right: 1px solid #bbb;
    font-weight: 700;
}

.invoice-info-item strong {
    font-weight: 600;
}

.invoice-section {
    margin-top: 6mm;
}

.invoice-section h3,
.invoice-payment-card h3 {
    margin: 0 0 2mm;
    color: #111;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.invoice-investigation-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.invoice-investigation-table th,
.invoice-investigation-table td {
    padding: 2mm 1.8mm;
    border: 1px solid #222;
    color: #111;
    font-size: 10.5px;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.invoice-investigation-table th {
    background: #eee;
    font-weight: 900;
    text-align: center;
}

.invoice-investigation-table th:nth-child(1),
.invoice-investigation-table td:nth-child(1) {
    width: 8mm;
    text-align: center;
}

.invoice-investigation-table th:nth-child(2),
.invoice-investigation-table td:nth-child(2) {
    width: 19mm;
}

.invoice-investigation-table th:nth-child(4),
.invoice-investigation-table td:nth-child(4) {
    width: 22mm;
}

.invoice-investigation-table th:nth-child(5),
.invoice-investigation-table td:nth-child(5) {
    width: 11mm;
    text-align: center;
}

.invoice-investigation-table th:nth-child(6),
.invoice-investigation-table td:nth-child(6),
.invoice-investigation-table th:nth-child(7),
.invoice-investigation-table td:nth-child(7),
.invoice-investigation-table th:nth-child(8),
.invoice-investigation-table td:nth-child(8) {
    width: 24mm;
    text-align: right;
}

.invoice-empty-row {
    text-align: center !important;
}

.invoice-lower-grid {
    display: grid;
    grid-template-columns: 1fr 72mm;
    gap: 8mm;
    align-items: start;
    margin-top: 6mm;
}

.invoice-payment-card {
    border: 1px solid #222;
    padding: 3mm;
}

.invoice-payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5mm;
    margin-bottom: 3mm;
}

.invoice-payment-methods span {
    display: block;
    padding: 1.5mm 2mm;
    border: 1px solid #999;
    color: #333;
    font-weight: 700;
    text-align: center;
}

.invoice-payment-methods span.active {
    border-color: #111;
    background: #111;
    color: #fff;
}

.invoice-payment-card dl {
    display: grid;
    grid-template-columns: 30mm 1fr;
    margin: 0;
}

.invoice-payment-card dt,
.invoice-payment-card dd {
    margin: 0;
    padding: 1.5mm 0;
    color: #111;
}

.invoice-summary-card {
    border: 1px solid #222;
}

.invoice-summary-card div {
    display: grid;
    grid-template-columns: 1fr 31mm;
    border-bottom: 1px solid #ccc;
}

.invoice-summary-card div:last-child {
    border-bottom: 0;
}

.invoice-summary-card span,
.invoice-summary-card strong {
    padding: 1.8mm 2.2mm;
    color: #111;
    font-size: 11px;
}

.invoice-summary-card span {
    font-weight: 700;
}

.invoice-summary-card strong {
    text-align: right;
}

.invoice-summary-card .important {
    background: #eee;
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
}

.invoice-words-box {
    margin-top: 5mm;
    padding: 2.2mm 3mm;
    border: 1px solid #222;
    color: #111;
    font-size: 11px;
}

.invoice-words-box strong {
    margin-right: 2mm;
}

.invoice-print-footer {
    margin-top: 8mm;
}

.invoice-terms {
    min-height: 18mm;
    padding: 2.5mm 3mm;
    border: 1px solid #222;
}

.invoice-terms strong {
    display: block;
    margin-bottom: 1mm;
    color: #111;
    font-size: 11px;
}

.invoice-terms p {
    margin: 0 0 1mm;
    color: #222;
    font-size: 10px;
}

.invoice-signature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7mm;
    margin-top: 18mm;
}

.invoice-signature-grid span {
    display: block;
    height: 1px;
    border-top: 1px solid #111;
}

.invoice-signature-grid p {
    margin: 2mm 0 0;
    color: #111;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.invoice-print-meta {
    display: flex;
    justify-content: space-between;
    gap: 8mm;
    margin-top: 7mm;
    color: #222;
    font-size: 10px;
}

.invoice-reference-layout {
    position: relative;
    min-height: 286mm;
    padding: 10mm 9mm 8mm;
    font-size: 11px;
}

.invoice-reference-layout .invoice-print-header {
    grid-template-columns: 1fr 62mm;
    gap: 6mm;
    padding-bottom: 2.5mm;
    border-bottom: 0;
}

.invoice-reference-layout .invoice-company-block {
    grid-template-columns: 24mm 1fr;
    gap: 3mm;
}

.invoice-reference-layout .invoice-logo-box {
    width: 23mm;
    height: 18mm;
    border: 0;
}

.invoice-reference-layout .invoice-logo-box img {
    max-width: 23mm;
    max-height: 18mm;
}

.invoice-reference-layout .invoice-company-block h1 {
    margin-bottom: 0;
    font-size: 22px;
    line-height: 1;
    letter-spacing: 0;
    margin-bottom: 2px;
}

.invoice-tagline {
    font-size: 10.5px;
    font-weight: 700;
}

.invoice-reference-layout .invoice-company-block p {
    margin-bottom: 0.5mm;
    font-size: 9.5px;
}

.invoice-vat-line {
    margin-bottom: 1mm !important;
    font-size: 11px;
    font-weight: 700;
}

.invoice-reference-layout .invoice-barcode-lines {
    width: 48mm;
    height: 12mm;
}

.invoice-reference-layout .invoice-title-band {
    padding: 0 0 1mm;
    border-bottom: 1px solid #111;
}

.invoice-reference-layout .invoice-title-band h2 {
    display: block;
    padding: 0;
    border: 0;
    font-size: 14px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
}

.invoice-reference-info {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18mm;
    padding: 2mm 0 1mm;
}

.invoice-reference-field {
    display: grid;
    grid-template-columns: 28mm 1fr;
    min-height: 6mm;
    align-items: baseline;
}

.invoice-reference-field span {
    color: #222;
    font-size: 11px;
}

.invoice-reference-field span::after {
    content: ":";
    float: right;
    padding-right: 2mm;
}

.invoice-reference-field strong {
    color: #111;
    font-size: 11px;
    font-weight: 700;
}

.invoice-address-line {
    display: grid;
    grid-template-columns: 28mm 1fr;
    min-height: 6mm;
    align-items: baseline;
    padding-bottom: 1mm;
}

.invoice-address-line span {
    font-size: 11px;
}

.invoice-address-line span::after {
    content: ":";
    float: right;
    padding-right: 2mm;
}

.invoice-address-line strong {
    font-size: 11px;
    font-weight: 600;
}

.invoice-reference-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border-top: 1px solid #111;
}

.invoice-reference-table th,
.invoice-reference-table td {
    padding: 1.7mm 1.5mm;
    border: 0;
    color: #111;
    font-size: 11px;
    vertical-align: top;
}

.invoice-reference-table th {
    border-bottom: 1px solid #111;
    font-weight: 500;
}

.invoice-reference-table th:nth-child(1),
.invoice-reference-table td:nth-child(1) {
    width: 10mm;
    text-align: center;
}

.invoice-reference-table th:nth-child(3),
.invoice-reference-table td:nth-child(3) {
    width: 24mm;
    text-align: right;
}

.invoice-reference-table th:nth-child(4),
.invoice-reference-table td:nth-child(4) {
    width: 30mm;
    text-align: right;
}

.invoice-department-row td {
    padding-top: 2mm;
    padding-bottom: 0.5mm;
    font-weight: 800;
}

.invoice-reference-total-area {
    display: grid;
    grid-template-columns: 1fr 56mm;
    gap: 8mm;
    min-height: 38mm;
    margin-top: 1mm;
}

.invoice-payment-line {
    align-self: end;
    padding-bottom: 3mm;
}

.invoice-payment-line p {
    margin: 0 0 2mm;
    color: #111;
    font-size: 11px;
}

.invoice-reference-summary {
    align-self: start;
    border-top: 1px solid #111;
}

.invoice-reference-summary div {
    display: grid;
    grid-template-columns: 1fr 25mm;
    min-height: 7mm;
    align-items: center;
}

.invoice-reference-summary span,
.invoice-reference-summary strong {
    color: #111;
    font-size: 11px;
}

.invoice-reference-summary strong {
    text-align: right;
    font-weight: 800;
}

.invoice-signature-line {
    min-height: 30mm;
    padding-right: 5mm;
    text-align: right;
}

.invoice-signature-line strong {
    display: inline-block;
    margin-top: 9mm;
    font-size: 12px;
}

.invoice-delivery-box {
    width: 66mm;
    margin: 4mm 23mm 10mm auto;
    border: 1px solid #111;
    color: #111;
    transform: rotate(-8deg);
    transform-origin: center;
}

.invoice-delivery-box h3 {
    margin: 0;
    padding: 1.6mm 2mm 0.5mm;
    border-bottom: 1px solid #111;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
}

.invoice-delivery-box p {
    margin: 0;
    padding: 0.8mm 2mm 1.3mm;
    border-bottom: 1px solid #111;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.invoice-delivery-box div {
    display: grid;
    grid-template-columns: 17mm 1fr;
    min-height: 8mm;
    align-items: center;
    border-bottom: 1px dotted #111;
}

.invoice-delivery-box div:last-child {
    border-bottom: 0;
}

.invoice-delivery-box span,
.invoice-delivery-box strong {
    padding: 1mm 2mm;
    font-size: 13px;
}

.invoice-delivery-box span {
    border-right: 1px solid #111;
    font-weight: 800;
}

.invoice-delivery-box strong {
    font-weight: 700;
}

.invoice-reference-footer {
    margin-top: auto;
}

.invoice-reference-note {
    min-height: 10mm;
    padding: 1.5mm 2mm;
    border: 1px solid #111;
    color: #222;
    font-size: 8.5px;
}

.invoice-reference-print-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4mm;
    padding: 2mm 0;
    color: #222;
    font-size: 9.5px;
}

.invoice-reference-company-line {
    border-top: 1px solid #111;
    padding-top: 1.5mm;
    color: #111;
    font-size: 9.5px;
    text-align: center;
}

@media (max-width: 991px) {
    .invoice-a4-sheet {
        width: 100%;
        min-height: auto;
        padding: 18px;
    }

    .invoice-print-header,
    .invoice-lower-grid {
        grid-template-columns: 1fr;
    }

    .invoice-info-grid {
        grid-template-columns: 1fr;
    }

    .invoice-meta-block {
        text-align: left;
    }

    .invoice-barcode-lines {
        margin-left: 0;
    }

    .invoice-reference-info,
    .invoice-reference-total-area,
    .invoice-reference-layout .invoice-print-header {
        grid-template-columns: 1fr;
    }

    .invoice-delivery-box {
        margin: 18px auto 28px;
        transform: none;
    }
}

@page {
    size: A4;
    margin: 8mm;
}

@media print {
    body {
        background: #fff !important;
    }

    .wsit-sidebar,
    .wsit-header,
    .wsit-footer,
    .invoice-screen-header {
        display: none !important;
    }

    .invoice-receipt-page,
    .invoice-receipt-page .wsit-content {
        top: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .invoice-a4-sheet {
        width: auto;
        min-height: auto;
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .invoice-investigation-table thead,
    .invoice-reference-table thead {
        display: table-header-group;
    }

    .invoice-investigation-table tr,
    .invoice-reference-table tr,
    .invoice-summary-card,
    .invoice-payment-card,
    .invoice-words-box,
    .invoice-terms,
    .invoice-signature-grid,
    .invoice-delivery-box,
    .invoice-reference-note {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .invoice-section,
    .invoice-lower-grid,
    .invoice-print-footer,
    .invoice-reference-footer {
        break-inside: auto;
    }

    .invoice-delivery-box {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

.invoice-create-page .invoice-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.invoice-create-page .form-label {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.invoice-create-page .form-control,
.invoice-create-page .form-select {
    min-height: 38px;
    border-color: #cfd6e3;
    color: #111827;
    font-size: 14px;
    box-shadow: none !important;
}

.invoice-create-page input[readonly] {
    background: #e8edf3;
}

.invoice-warning-btn,
.invoice-warning-btn:focus {
    background: var(--accent-color) !important;
    border: 0;
    color: #fff !important;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.invoice-item-table {
    width: 100% !important;
}

.invoice-item-table thead th {
    background: var(--table-accent) !important;
    color: #fff;
    font-size: 13px;
}

.invoice-check-label {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    color: #111827;
    font-weight: 800;
}

.invoice-receipt-card .card-body {
    max-width: 1060px;
    margin: 0 auto;
}

.invoice-receipt-row {
    display: grid;
    grid-template-columns: 220px minmax(260px, 1fr) 90px;
    align-items: center;
    gap: 24px;
    padding: 12px;
    border-top: 1px solid #dde3ea;
}

.invoice-receipt-row:first-child {
    border-top: 0;
}

.invoice-receipt-row label {
    margin: 0;
    color: #111827;
    font-size: 15px;
    font-weight: 500;
}

.invoice-clear-btn,
.invoice-clear-btn:focus {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--danger-color);
    color: #fff;
}

.invoice-cancel-btn,
.invoice-cancel-btn:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    background: var(--danger-color);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
}

.invoice-cancel-btn:hover {
    background: var(--danger-color);
    color: #fff;
}

@media (max-width: 767px) {
    .page-header .row {
        gap: 12px;
    }

    .page-header .col-auto {
        width: 100%;
    }

    .quick_btn {
        display: flex;
        justify-content: flex-start;
    }

    .page-content .data-table-card .card-header,
    .page-content .data-table-card .card-body,
    .page-content .card:has(#data-table) .card-header,
    .page-content .card:has(#data-table) .card-body {
        padding-left: 12px;
        padding-right: 12px;
    }

    .dt-container,
    .dataTables_wrapper,
    #data-table {
        min-width: 680px;
    }

    .dt-layout-row,
    .dataTables_wrapper > .row {
        display: block;
    }

    .dt-length,
    .dt-search,
    .dataTables_length,
    .dataTables_filter {
        justify-content: flex-start;
        width: 100%;
        margin-bottom: 10px;
    }

    .dt-search input,
    .dataTables_filter input {
        width: min(100%, 220px);
    }

    .dt-buttons {
        justify-content: flex-start;
    }

    .dt-buttons button.dt-button,
    .dt-buttons .dt-button {
        flex: 1 1 33.333%;
        min-width: 96px;
    }

    .test-components-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .invoice-create-page .invoice-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .invoice-receipt-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-left: 0;
        padding-right: 0;
    }

    .dt-info,
    .dataTables_info,
    .dt-paging,
    .dataTables_paginate {
        justify-content: flex-start;
        text-align: left;
    }
}





.dashboard-page {
    background: var(--body-bg);
}

.dashboard-page .wsit-content {
    padding-top: 10px;
}

.dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.dashboard-heading h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 23px;
    font-weight: 700;
}

.dashboard-heading h4 i {
    color: var(--secondary-color);
    font-size: 26px;
}

.dashboard-heading span {
    color: #475569;
    font-size: 14px;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.dashboard-top-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(18, 48, 71, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-top-card:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(18, 48, 71, 0.24);
}

.dashboard-top-card:nth-child(2),
.dashboard-top-card:nth-child(5) {
    background: linear-gradient(135deg, #0f4f66 0%, var(--secondary-color) 100%);
}

.dashboard-top-card:nth-child(3),
.dashboard-top-card:nth-child(6) {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--extra-color) 100%);
}

.dashboard-top-card:nth-child(4) {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
}

.dashboard-top-card div {
    position: relative;
    z-index: 2;
    padding: 14px 10px 0;
}

.dashboard-top-card strong {
    display: block;
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
}

.dashboard-top-card span {
    display: block;
    margin-top: 12px;
    font-size: 16px;
    font-weight: 800;
}

.dashboard-top-card > i {
    position: absolute;
    right: 18px;
    top: 22px;
    color: rgba(255, 255, 255, 0.16);
    font-size: 68px;
}

.dashboard-top-card small {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 28px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.dashboard-money-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.dashboard-money-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    min-height: 80px;
    padding: 12px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--secondary-color), #0d9488);
    color: #fff;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
}

.dashboard-money-card:nth-child(2) {
    background: linear-gradient(135deg, var(--accent-color-dark), var(--accent-color));
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.2);
}

.dashboard-money-card:nth-child(3) {
    background: linear-gradient(135deg, var(--success-color), #22c55e);
    box-shadow: 0 10px 22px rgba(21, 128, 61, 0.18);
}

.dashboard-money-card i {
    font-size: 34px;
}

.dashboard-money-card span {
    display: block;
    font-size: 15px;
    font-weight: 800;
}

.dashboard-money-card strong {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 900;
}

.dashboard-work-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px 14px;
    margin-bottom: 16px;
}

.dashboard-work-card {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    min-height: 80px;
    padding: 13px 24px;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.dashboard-work-card.blue {
    background: linear-gradient(135deg, var(--secondary-color), var(--extra-color));
}

.dashboard-work-card.amber {
    background: linear-gradient(135deg, var(--accent-color-dark), var(--accent-color));
    color: #101827;
}

.dashboard-work-card.green {
    background: linear-gradient(135deg, var(--success-color), #22c55e);
}

.dashboard-work-card > i {
    color: #fff;
    font-size: 36px;
}

.dashboard-work-card.amber > i {
    color: #14213d;
}

.dashboard-work-card span {
    display: block;
    font-size: 15px;
    font-weight: 800;
}

.dashboard-work-card strong {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 900;
}

.dashboard-panel {
    overflow: hidden;
    margin-bottom: 16px;
    border-radius: 0 0 12px 12px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(18, 48, 71, 0.1);
}

.dashboard-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 9px 18px;
    color: #fff;
}

.dashboard-panel-head.green {
    background: linear-gradient(135deg, var(--secondary-color), var(--success-color));
}

.dashboard-panel-head.red {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.dashboard-panel-head h6 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.dashboard-panel-actions {
    display: flex;
    gap: 14px;
}

.dashboard-panel-actions button {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.dashboard-panel-body {
    min-height: 76px;
    padding: 20px;
}

.dashboard-panel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    color: #123047;
    font-size: 14px;
    font-weight: 700;
}

.dashboard-panel-item:last-child {
    border-bottom: 0;
}

.dashboard-panel-item span {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.dashboard-panel-body p {
    margin: 0;
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.dashboard-income-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.dashboard-income-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.dashboard-income-table th,
.dashboard-income-table td {
    padding: 11px 12px;
    border: 1px solid #e2e8f0;
    color: #123047;
    font-size: 13px;
    text-align: left;
    vertical-align: middle;
}

.dashboard-income-table th {
    background: var(--table-accent);
    color: #fff;
    font-weight: 800;
}

.dashboard-income-table td {
    background: #fff;
    font-weight: 700;
}

.dashboard-income-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

@media (max-width: 1399px) {
    .dashboard-stat-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .dashboard-money-grid,
    .dashboard-work-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .home-visit-patient-head,
    .home-visit-map-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-visit-map-body iframe {
        height: 330px;
    }

    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}
div.dt-container .dt-paging .dt-paging-button {
    padding: 0;
}

/* Report print image and compact layout */
.report-print-sheet {
    position: relative;
}

.report-watermark-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.08;
    pointer-events: none;
    text-align: center;
}

.report-watermark-image img {
    width: min(70%, 360px);
    max-height: 55%;
    object-fit: contain;
}

.report-header-image,
.report-footer-image,
.report-print-patient-card,
.report-print-section,
.report-print-comment {
    position: relative;
    z-index: 1;
}

.report-header-image {
    margin-bottom: 10px;
}

.report-header-image img,
.report-footer-image img {
    display: block;
    width: 100%;
    object-fit: contain;
}

.report-header-image img {
    max-height: 90px;
}

.report-footer-image {
    margin-top: 10px;
}

.report-footer-image img {
    height: var(--report-footer-image-height);
}

@media print {
    @page {
        size: A4;
        margin: 3mm 6mm 4mm;
    }

    .report-print-sheet {
        width: 100% !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
    }

    .report-header-image {
        margin-bottom: 1.5mm !important;
    }

    .report-header-image img {
        max-height: 22mm !important;
    }

    .report-watermark-image img {
        width: 72mm !important;
        max-height: 72mm !important;
    }

    .report-print-patient-card {
        margin: 0 0 2mm !important;
        padding: 2mm 2.5mm !important;
        border-color: #111827 !important;
    }

    .report-print-patient-title {
        margin-bottom: 1mm !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
    }

    .report-print-patient-grid {
        gap: 1mm 2mm !important;
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .report-print-patient-grid div {
        padding: 0 !important;
        border-bottom: 0 !important;
    }

    .report-print-patient-grid span,
    .report-print-patient-grid strong {
        font-size: 8.8px !important;
        line-height: 1.12 !important;
    }

    .report-print-patient-wide {
        grid-column: span 2 !important;
    }

    .report-print-section > .card-header,
    .report-print-section > .card-header h6 {
        display: none !important;
    }

    .report-print-section > .card-body {
        padding: 0 !important;
    }

    .report-print-test-card {
        margin: 0 0 2.5mm !important;
        break-inside: auto !important;
        page-break-inside: auto !important;
    }

    .report-print-test-body {
        border: 0 !important;
        box-shadow: none !important;
    }

    .report-test-title-box {
        margin: 0 0 1mm !important;
        padding: 1.2mm 2mm !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
    }

    .report-print-table th,
    .report-print-table td {
        padding: 1mm 1.2mm !important;
        font-size: 8.8px !important;
        line-height: 1.08 !important;
    }

    .report-print-table th {
        font-weight: 800 !important;
    }

    .report-print-comment {
        margin: 1.5mm 0 0 !important;
        padding: 1.5mm 2mm !important;
        font-size: 9px !important;
        line-height: 1.15 !important;
    }

    .report-footer-image {
        margin-top: 1.5mm !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-footer-image img {
        max-height: 18mm !important;
    }
}

/* Report print watermark visibility override */
.report-print-sheet {
    overflow: hidden;
}

.report-watermark-image {
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: auto!important;
    height: 220px !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2 !important;
    opacity: 0.11 !important;
}

.report-watermark-image img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
}

.report-header-image,
.report-footer-image {
    z-index: 3 !important;
}

.report-print-patient-card,
.report-print-section,
.report-print-comment {
    z-index: 1 !important;
}

@media print {
    .report-watermark-image {
        width: 35mm !important;
        height: 35mm !important;
        opacity: 0.11 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Remove report print top blank space */
@media print {
    .report-print-page {
        position: static !important;
        top: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .report-print-page .wsit-content,
    .report-print-page .page-content,
    .report-print-sheet,
    .report-header-image {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* Report signature area */
.report-signature-line {
    position: relative;
    z-index: 1;
    min-height: 70px;
    padding-right: 24px;
    text-align: right;
}

.report-signature-line strong {
    display: inline-block;
    margin-top: 36px;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    border-top: 1px dashed #aaa8a8;
    padding: 2px 10px;
}

@media print {
    .report-signature-line {
        min-height: 15mm !important;
        padding-right: 5mm !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-signature-line strong {
        margin-top: 7mm !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
    }
}

/* Report readability and light-border refinement */
.report-print-patient-card {
    border-color: #d5dde6;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.report-print-patient-title {
    padding-bottom: 7px;
    border-bottom: 1px solid #2b8c82;
    letter-spacing: 0;
}

.report-print-patient-grid div {
    border-color: #e1e7ee;
    border-radius: 3px;
    background: #fafcfd;
}

.report-print-test-card {
    border: 1px solid #e1e7ee;
    border-radius: 6px;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.06);
}

.report-test-title-box {
    padding: 10px 13px;
    border: 1px solid #c9dedb;
    border-left: 4px solid var(--table-accent);
    border-radius: 3px;
    background: #edf7f5;
    color: #163c38;
    text-align: left;
    font-size: 15px;
    font-weight: 800;
}

.report-print-table {
    border-color: #dce4ec;
}

.report-print-table th,
.report-print-table td {
    border-color: #dce4ec;
}

.report-print-table th {
    background: #19796f;
    color: #fff;
}

.report-print-table tbody tr:not(.report-component-group-row):nth-child(even) td {
    background: #fafcfd;
}

.report-print-table .report-component-group-row td,
.report-result-table .report-component-group-row td {
    border-color: #d4dee8;
    border-left: 3px solid #7893a8;
    background: #edf2f6;
    color: #243746;
    font-weight: 800;
}

.report-print-table tbody tr:not(.report-component-group-row) td:first-child,
.report-result-table tbody tr:not(.report-component-group-row) td:first-child {
    padding-left: 16px;
}

@media print {
    .report-print-patient-card {
        border: 0.6px solid #b9c5d1 !important;
        border-radius: 1.5mm !important;
    }

    .report-print-patient-title {
        padding-bottom: 0.8mm !important;
        border-bottom: 0.6px solid #2b8c82 !important;
        color: #16232d !important;
        font-weight: 800 !important;
    }

    .report-print-patient-grid div {
        padding: 0.8mm 1.2mm !important;
        border: 0.5px solid #d7e0e8 !important;
        border-radius: 0.8mm !important;
        background: #fbfcfd !important;
    }

    .report-print-test-card {
        margin-bottom: 3mm !important;
        border: 0 !important;
    }

    .report-test-title-box {
        margin-bottom: 1.2mm !important;
        padding: 1.4mm 2mm !important;
        border: 0.6px solid #c8dcd9 !important;
        border-left: 1.2mm solid #19796f !important;
        border-radius: 0.8mm !important;
        background: #edf7f5 !important;
        color: #173d39 !important;
        text-align: left !important;
        font-size: 10px !important;
        font-weight: 800 !important;
    }

    .report-print-table th,
    .report-print-table td {
        padding: 1.25mm 1.4mm !important;
        border: 0.5px solid #d4dde6 !important;
        font-size: 8.8px !important;
        line-height: 1.15 !important;
    }

    .report-print-table th {
        background: #19796f !important;
        color: #fff !important;
    }

    .report-print-table tbody tr:not(.report-component-group-row):nth-child(even) td {
        background: #fafcfd !important;
    }

    .report-print-table .report-component-group-row td {
        padding: 1.15mm 1.5mm !important;
        border: 0.5px solid #ccd7e1 !important;
        border-left: 1mm solid #7893a8 !important;
        background: #edf2f6 !important;
        color: #243746 !important;
        font-size: 8.9px !important;
        font-weight: 800 !important;
        text-align: left !important;
    }

    .report-print-table tbody tr:not(.report-component-group-row) td:first-child {
        padding-left: 2.5mm !important;
    }

    .report-print-comment {
        border: 0.5px solid #d4dde6 !important;
        border-left: 1mm solid #7893a8 !important;
        border-radius: 0.8mm !important;
        background: #fafcfd !important;
    }

    .report-signature-line strong {
        border-top-color: #b8c2cc !important;
    }
    
}

/* Simple report test hierarchy and spacing */
.report-print-test-card {
    margin-bottom: 30px;
}

.report-print-test-card:last-child {
    margin-bottom: 0;
}

.report-test-title-box {
    margin-bottom: 8px;
    padding: 8px 11px;
    border: 1px solid #d6e2e0;
    border-left: 3px solid var(--table-accent);
    border-radius: 2px;
    background: #f2f8f7;
    color: #173c38;
    font-size: 14px;
    font-weight: 800;
}

.report-print-table .report-component-group-row td,
.report-result-table .report-component-group-row td {
    padding: 7px 10px;
    border: 1px solid #d8e0e8;
    border-left: 1px solid #d8e0e8;
    background: #eef2f6;
    color: #263746;
    font-size: 12px;
    font-weight: 800;
}

@media print {
    .report-print-test-card {
        margin: 0 0 5mm !important;
    }

    .report-print-test-card:last-child {
        margin-bottom: 0 !important;
    }

    .report-test-title-box {
        margin: 0 0 1.4mm !important;
        padding: 1.2mm 1.8mm !important;
        border: 0.5px solid #ccd9d7 !important;
        border-left: 1mm solid #19796f !important;
        border-radius: 0.5mm !important;
        background: #f2f8f7 !important;
        color: #173c38 !important;
        font-size: 9.2px !important;
        font-weight: 800 !important;
        line-height: 1.1 !important;
        break-after: avoid;
        page-break-after: avoid;
    }

    .report-print-table .report-component-group-row td {
        padding: 12px !important;
        border: 0.5px solid #d3dce5 !important;
        border-left: 0.5px solid #d3dce5 !important;
        background: #eef2f6 !important;
        color: #263746 !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        line-height: 1.1 !important;
    }
}

/* Invoice-style report brand header */
.report-brand-header {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
    padding: 12px 18px 14px;
    border-bottom: 1px solid #d7dee6;
    background: #fff;
    display: flex;
    justify-content: space-between;
}

.report-brand-company {
    display: flex;
    align-items: center;
    gap: 14px;
}

.report-brand-logo {
    display: flex;
    flex: 0 0 68px;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 62px;
    color: #17695f;
    font-size: 18px;
    font-weight: 800;
}

.report-brand-logo img {
    max-width: 68px;
    max-height: 62px;
    object-fit: contain;
}

.report-brand-details {
    min-width: 0;
}

.report-brand-details h1 {
    margin: 0 0 3px;
    color: #111827;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0;
}

.report-brand-details p {
    margin: 0 0 2px;
    color: #374151;
    font-size: 10px;
    line-height: 1.2;
}

.report-brand-details .report-brand-tagline {
    color: #1f2937;
    font-size: 11px;
    font-weight: 700;
}

.report-brand-code-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: 12px;
    flex-direction: column;
}

.report-brand-code-row strong {
    color: #111827;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.report-brand-barcodes {
    display: flex;
    gap: 8px;
}

.report-brand-barcodes span {
    display: block;
    width: 78px;
    height: 34px;
    background: repeating-linear-gradient(90deg, #111 0 1px, #fff 1px 3px, #111 3px 5px, #fff 5px 7px, #111 7px 8px, #fff 8px 11px);
}

@media print {
    .report-brand-header {
        margin: 0 0 2mm !important;
        padding: 1mm 3mm 2.5mm !important;
        border-bottom: 0.5px solid #d4dce4 !important;
        background: #fff !important;
        break-inside: avoid;
        page-break-inside: avoid;
        display: none !important;
    }

    .report-brand-company {
        max-width: 145mm !important;
        margin: 0 auto !important;
        gap: 3mm !important;
    }

    .report-brand-logo {
        flex-basis: 18mm !important;
        width: 18mm !important;
        height: 17mm !important;
        font-size: 12px !important;
    }

    .report-brand-logo img {
        max-width: 18mm !important;
        max-height: 17mm !important;
    }

    .report-brand-details h1 {
        margin-bottom: 0.6mm !important;
        font-size: 16px !important;
        line-height: 1 !important;
    }

    .report-brand-details p {
        margin-bottom: 0.25mm !important;
        font-size: 7.5px !important;
        line-height: 1.1 !important;
    }

    .report-brand-details .report-brand-tagline {
        font-size: 8.2px !important;
        font-weight: 700 !important;
    }

    .report-brand-code-row {
        margin-top: 2mm !important;
    }

    .report-brand-barcodes {
        gap: 2mm !important;
    }

    .report-brand-barcodes span {
        width: 20mm !important;
        height: 9mm !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .report-brand-code-row strong {
        font-size: 8px !important;
        line-height: 1 !important;
    }
}

/* Keep printed report visually aligned with the show page */
@media print {
    .report-print-sheet {
        color: #111827 !important;
        background: #fff !important;
    }

    .report-print-patient-card {
        margin-bottom: 3mm !important;
        padding: 2.5mm 3mm !important;
        border: 0.5px solid #d6dee6 !important;
        border-radius: 1mm !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    .report-print-patient-title {
        margin-bottom: 1.5mm !important;
        padding-bottom: 1mm !important;
        border-bottom: 0.5px solid #8ab8b2 !important;
        color: #173c38 !important;
        font-size: 10px !important;
        font-weight: 800 !important;
    }

    .report-print-patient-grid {
        gap: 0 3mm !important;
    }

    .report-print-patient-grid div {
        min-height: 7mm !important;
        padding: 1mm 0 !important;
        border: 0 !important;
        border-bottom: 0.4px solid #e3e8ee !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    .report-print-patient-grid span {
        margin-bottom: 0.5mm !important;
        color: #64748b !important;
        font-size: 7.8px !important;
        font-weight: 700 !important;
    }

    .report-print-patient-grid strong {
        color: #111827 !important;
        font-size: 9px !important;
        font-weight: 800 !important;
    }

    .report-print-test-card {
        overflow: visible !important;
        margin-bottom: 5mm !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    .report-print-test-card:last-child {
        margin-bottom: 0 !important;
    }

    .report-test-title-box {
        margin-bottom: 1.5mm !important;
        padding: 1.5mm 2mm !important;
        border: 0.5px solid #d5e2e0 !important;
        border-left: 1mm solid #19796f !important;
        border-radius: 0.7mm !important;
        background: #f2f8f7 !important;
        color: #173c38 !important;
        text-align: left !important;
        font-size: 9.5px !important;
        font-weight: 800 !important;
    }

    .report-print-table {
        border-collapse: collapse !important;
        border-spacing: 0 !important;
        background: #fff !important;
    }

    .report-print-table th,
    .report-print-table td {
        padding: 1.35mm 1.5mm !important;
        border: 0.5px solid #d8e0e8 !important;
        font-size: 8.8px !important;
        line-height: 1.15 !important;
    }

    .report-print-table th {
        background: #19796f !important;
        color: #fff !important;
        font-weight: 800 !important;
    }

    .report-print-table .report-component-group-row td {
        padding: 1.1mm 1.5mm !important;
        border: 0.5px solid #d8e0e8 !important;
        background: #eef2f6 !important;
        color: #263746 !important;
        font-size: 8.8px !important;
        font-weight: 800 !important;
    }

    .report-print-table tbody tr:not(.report-component-group-row):nth-child(even) td {
        background: #fafcfd !important;
    }

    .report-print-comment {
        padding: 1.8mm 2mm !important;
        border: 0.5px solid #d8e0e8 !important;
        border-left: 1mm solid #7893a8 !important;
        border-radius: 0.7mm !important;
        background: #fafcfd !important;
    }
}

/* Print the report with the same visual structure as the show page */
.report-brand-header {
    display: none;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
}

.report-brand-company {
    width: auto;
    max-width: none;
    margin: 0;
}

.report-brand-code-row {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    width: auto;
    margin-top: 8px;
    gap: 5px;
}

.report-brand-barcodes,
.report-brand-code-row strong {
    margin-right: 0;
    margin-left: 0;
}

@media print {
    @page {
        size: A4;
        margin: 5mm 7mm;
    }

    body {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .report-print-sheet {
        width: 100% !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
    }

    .report-brand-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 5mm !important;
        align-items: start !important;
        min-height: 0 !important;
        margin: 0 0 3mm !important;
        padding: 2.5mm 3mm 3mm !important;
        border: 0.5px solid #d8e0e8 !important;
        border-radius: 1mm !important;
        background: #fff !important;
    }

    .report-brand-company {
        display: flex !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        gap: 3mm !important;
        align-items: center !important;
    }

    .report-brand-logo {
        flex: 0 0 17mm !important;
        width: 17mm !important;
        height: 17mm !important;
    }

    .report-brand-logo img {
        max-width: 17mm !important;
        max-height: 17mm !important;
    }

    .report-brand-details h1 {
        margin: 0 0 0.7mm !important;
        font-size: 16px !important;
        line-height: 1.05 !important;
    }

    .report-brand-details p {
        margin: 0 0 0.3mm !important;
        font-size: 7.5px !important;
        line-height: 1.15 !important;
    }

    .report-brand-details .report-brand-tagline {
        font-size: 8.3px !important;
    }

    .report-brand-code-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: flex-start !important;
        width: auto !important;
        margin: 2mm 0 0 !important;
        gap: 1mm !important;
    }

    .report-brand-barcodes {
        margin: 0 !important;
        gap: 1.5mm !important;
    }

    .report-brand-barcodes span {
        width: 18mm !important;
        height: 8mm !important;
    }

    .report-brand-code-row strong {
        margin: 0 !important;
        font-size: 8px !important;
    }

    .report-print-patient-card {
        margin: 0 0 3mm !important;
        padding: 3mm !important;
        border: 0.5px solid #d8e0e8 !important;
        border-radius: 1.5mm !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    .report-print-patient-title {
        margin: 0 0 2mm !important;
        padding: 0 0 1.5mm !important;
        border-bottom: 0.6px solid #258b80 !important;
        color: #147267 !important;
        font-size: 11px !important;
        font-weight: 800 !important;
    }

    .report-print-patient-grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 2mm !important;
    }

    .report-print-patient-grid div {
        min-height: 13mm !important;
        padding: 2mm 2.2mm !important;
        border: 0.5px solid #dbe3eb !important;
        border-radius: 0.8mm !important;
        background: #f8fafc !important;
    }

    .report-print-patient-grid span {
        margin-bottom: 1mm !important;
        color: #64748b !important;
        font-size: 8px !important;
        font-weight: 700 !important;
    }

    .report-print-patient-grid strong {
        color: #111827 !important;
        font-size: 9.5px !important;
        font-weight: 800 !important;
    }

    .report-print-patient-wide {
        grid-column: span 2 !important;
    }

    .report-print-section {
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    .report-print-section > .card-body {
        padding: 3.5mm !important;
        border: 0.5px solid #e0e6ec !important;
        border-radius: 1.5mm !important;
        background: #fff !important;
    }

    .report-print-test-card {
        overflow: hidden !important;
        margin: 0 0 5mm !important;
        border: 0.5px solid #d8e0e8 !important;
        border-radius: 1.2mm !important;
        background: #fff !important;
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-print-test-card:last-child {
        margin-bottom: 0 !important;
    }

    .report-print-test-head {
        display: flex !important;
        min-height: 10mm !important;
        padding: 2mm 3mm !important;
        border-bottom: 0.5px solid #d8e0e8 !important;
        background: #fff !important;
    }

    .report-print-test-head label {
        color: #111827 !important;
        font-size: 10px !important;
        font-weight: 800 !important;
    }

    .report-print-test-head .report-print-check,
    .report-print-test-head .report-print-tools {
        display: none !important;
    }

    .report-print-test-body {
        display: block !important;
        padding: 3mm !important;
        background: #fff !important;
    }

    .report-test-title-box {
        margin: 0 0 1.5mm !important;
        padding: 1.8mm 2mm !important;
        border: 0.5px solid #d5e2e0 !important;
        border-left: 1mm solid #19796f !important;
        border-radius: 0 !important;
        background: #f2f8f7 !important;
        color: #173c38 !important;
        text-align: left !important;
        font-size: 9.5px !important;
        font-weight: 800 !important;
    }

    .report-print-table {
        width: 100% !important;
        border-collapse: collapse !important;
        table-layout: fixed !important;
        background: #fff !important;
    }

    .report-print-table th,
    .report-print-table td {
        padding: 1.8mm 1.6mm !important;
        border: 0.5px solid #d8e0e8 !important;
        font-size: 8.8px !important;
        line-height: 1.2 !important;
    }

    .report-print-table th {
        background: #19796f !important;
        color: #fff !important;
        font-weight: 800 !important;
    }

    .report-print-table .report-component-group-row td {
        padding: 1.5mm 2mm !important;
        background: #eaf0f5 !important;
        color: #263746 !important;
        font-weight: 800 !important;
    }

    .report-print-table tbody tr:not(.report-component-group-row):nth-child(even) td {
        background: #fafcfd !important;
    }
}

/* Compact report print spacing to keep longer tests on fewer pages */
@media print {
    @page {
        size: A4;
        margin: 3mm 5mm;
    }

    .report-brand-header {
        gap: 3mm !important;
        margin-bottom: 1.8mm !important;
        padding: 1.5mm 2mm !important;
    }

    .report-brand-company {
        gap: 2mm !important;
    }

    .report-brand-logo {
        flex-basis: 15mm !important;
        width: 15mm !important;
        height: 15mm !important;
    }

    .report-brand-logo img {
        max-width: 15mm !important;
        max-height: 15mm !important;
    }

    .report-brand-code-row {
        margin-top: 1mm !important;
        gap: 0.5mm !important;
    }

    .report-print-patient-card {
        margin-bottom: 1.8mm !important;
        padding: 2mm !important;
    }

    .report-print-patient-title {
        margin-bottom: 1mm !important;
        padding-bottom: 0.8mm !important;
    }

    .report-print-patient-grid {
        gap: 1mm !important;
    }

    .report-print-patient-grid div {
        min-height: 10mm !important;
        padding: 1.2mm 1.5mm !important;
    }

    .report-print-patient-grid span {
        margin-bottom: 0.4mm !important;
    }

    .report-print-section > .card-body {
        padding: 2mm !important;
    }

    .report-print-test-card {
        overflow: visible !important;
        margin-bottom: 2.5mm !important;
        break-inside: auto !important;
        page-break-inside: auto !important;
    }

    .report-print-test-head {
        min-height: 7mm !important;
        padding: 1.2mm 2mm !important;
        break-after: avoid-page;
        page-break-after: avoid;
    }

    .report-print-test-body {
        padding: 1.8mm !important;
    }

    .report-test-title-box {
        margin-bottom: 0.8mm !important;
        padding: 1mm 1.5mm !important;
        break-after: avoid-page;
        page-break-after: avoid;
    }

    .report-print-table thead {
        display: table-header-group;
    }

    .report-print-table tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-print-table th,
    .report-print-table td {
        padding: 1.1mm 1.3mm !important;
    }

    .report-print-table .report-component-group-row td {
        padding: 0.9mm 1.5mm !important;
    }

    .report-signature-line {
        min-height: 9mm !important;
        padding-top: 1.5mm !important;
    }
}

/* Simplify printed report borders */
@media print {
    .report-brand-header {
        border: 0 !important;
        border-bottom: 0.5px solid #d8e0e8 !important;
        border-radius: 0 !important;
    }

    .report-print-patient-card {
        padding-right: 0 !important;
        padding-left: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
    }

    .report-print-patient-grid div {
        border: 0 !important;
        border-radius: 0.5mm !important;
        background: #f7f9fb !important;
    }

    .report-print-section > .card-body {
        padding-right: 0 !important;
        padding-left: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
    }

    .report-print-test-card {
        border: 0 !important;
        border-radius: 0 !important;
    }

    .report-print-test-head {
        padding-right: 0 !important;
        padding-left: 0 !important;
        border: 0 !important;
        border-bottom: 0.5px solid #d8e0e8 !important;
    }

    .report-print-test-body {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .report-test-title-box {
        border-top: 0 !important;
        border-right: 0 !important;
        border-bottom: 0 !important;
    }

    .report-print-table {
        border: 0 !important;
    }

    .report-print-table th,
    .report-print-table td {
        border-right: 0 !important;
        border-left: 0 !important;
        border-color: #dfe6ec !important;
    }

    .report-print-table th {
        border-color: #19796f !important;
    }
}

/* Use one shared report heading and compact continuous test rows */
.report-shared-heading,
.report-test-results-table {
    width: 100%;
    margin-bottom: 0;
    table-layout: fixed;
}

.report-shared-heading tbody {
    display: none;
}

.report-print-table .report-col-test {
    width: 32%;
}

.report-print-table .report-col-observation {
    width: 18%;
}

.report-print-table .report-col-result {
    width: 14%;
}

.report-print-table .report-col-unit {
    width: 12%;
}

.report-print-table .report-col-range {
    width: 16%;
}

.report-print-table .report-col-status {
    width: 8%;
}

.report-shared-heading th,
.report-test-results-table td {
    overflow-wrap: anywhere;
}

@media print {
    .report-print-patient-card {
        margin-bottom: 1mm !important;
        padding-top: 1mm !important;
        padding-bottom: 1mm !important;
    }

    .report-print-patient-title {
        margin-bottom: 0.5mm !important;
        padding-bottom: 0.5mm !important;
        font-size: 9px !important;
    }

    .report-print-patient-grid {
        gap: 0 1.5mm !important;
    }

    .report-print-patient-grid div {
        min-height: 6.5mm !important;
        padding: 0.5mm 0.8mm !important;
        border-radius: 0 !important;
        background: #f8fafc !important;
    }

    .report-print-patient-grid span {
        margin-bottom: 0.1mm !important;
        font-size: 7px !important;
        line-height: 1 !important;
    }

    .report-print-patient-grid strong {
        font-size: 8.3px !important;
        line-height: 1.05 !important;
    }

    .report-shared-heading {
        margin: 0 !important;
        break-after: avoid-page;
        page-break-after: avoid;
    }

    .report-shared-heading th {
        padding: 0.9mm 1.2mm !important;
    }

    .report-print-test-card {
        margin-bottom: 1mm !important;
    }

    .report-print-test-head {
        display: none !important;
    }

    .report-print-test-body {
        padding: 0 !important;
    }

    .report-test-title-box {
        margin: 0 !important;
        padding: 0.8mm 1.2mm !important;
        border-left-width: 0.7mm !important;
        font-size: 8.8px !important;
        line-height: 1.05 !important;
    }

    .report-test-results-table {
        margin: 0 !important;
    }

    .report-test-results-table td {
        padding: 0.75mm 1.2mm !important;
        line-height: 1.05 !important;
    }

    .report-print-table .report-component-group-row td {
        padding: 0.65mm 1.2mm !important;
        line-height: 1 !important;
    }
}

.report-shared-heading th,
.report-test-results-table td {
    width: auto !important;
}
/* Fixed report signature footer */
.report-signature-footer {
    display: none;
}

.report-signature-person {
    width: min(100%, 270px);
    color: #111;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.12;
}

.report-signature-prepared {
    justify-self: start;
    text-align: center;
}

.report-signature-technologist {
    justify-self: start;
    text-align: center;
}

.report-signature-doctor {
    justify-self: end;
    text-align: center;
}

.report-signature-space {
    width: 100%;
    height: 38px;
    margin-bottom: 4px;
    border-bottom: 1px solid #222;
}

.report-signature-person strong,
.report-signature-person span {
    display: block;
}

.report-signature-person strong {
    font-size: 13px;
    font-weight: 800;
}

.report-signature-person span {
    font-size: 11px;
    font-weight: 700;
}

.report-signature-printed {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    margin-top: 5px;
    padding-top: 4px;
    border-top: 1px solid #d6dde1;
    text-align: center;
}

@media print {
    @page {
        size: A4;
        margin: 3mm 5mm 4mm;
    }

    .report-print-sheet {
        overflow: visible !important;
    }

    .report-signature-footer {
        position: fixed !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        left: 5mm;
        right: 5mm;
        bottom: 2.5mm;
        z-index: 10 !important;
        height: 24mm;
        margin: 0 !important;
        column-gap: 18mm;
        row-gap: 1mm;
        align-items: end;
        background: #fff !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-signature-person {
        width: 64mm;
        color: #000 !important;
        line-height: 1.05 !important;
    }

    .report-signature-technologist {
        grid-column: 1;
    }

    .report-signature-doctor {
        grid-column: 2;
    }

    .report-signature-space {
        height: 7mm;
        margin-bottom: 0.8mm;
        border-bottom: 0.3mm solid #222 !important;
    }

    .report-signature-person strong {
        font-size: 9px !important;
        line-height: 1.05 !important;
    }

    .report-signature-person span {
        font-size: 7.8px !important;
        line-height: 1.08 !important;
    }

    .report-signature-printed {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        margin-top: 0 !important;
        padding-top: 0.8mm !important;
        font-size: 10px !important;
        border-top: 0.2mm solid #d6dde1 !important;
        text-align: center !important;
        color: #000 !important;
    }

    .report-signature-line {
        display: none !important;
    }
}
/* Keep report branding and watermark exclusive to the printed A4 page */
.report-brand-header,
.report-watermark-image {
    display: none;
}

@media print {
    .report-brand-header {
        display: grid !important;
    }

    .report-watermark-image {
        position: absolute !important;
        display: flex !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        width: 35mm !important;
        height: 35mm !important;
        align-items: center;
        justify-content: center;
        transform: translate(-50%, -50%) !important;
        z-index: 0 !important;
        display: flex !important;
        opacity: 0.11 !important;
        pointer-events: none;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .report-watermark-image img {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: contain !important;
    }
}
/* Report patient sample status */
.report-print-patient-grid strong.text-success {
    color: #198754 !important;
}

.report-print-patient-grid strong.text-danger {
    color: #dc3545 !important;
}

@media print {
    .report-print-patient-grid strong.text-success,
    .report-print-patient-grid strong.text-danger {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Report print table text alignment */
.report-print-table th,
.report-print-table td {
    text-align: left !important;
}

@media print {
    .report-print-table th,
    .report-print-table td {
        text-align: left !important;
    }
}


/* Simple report test heading and sample line */
.report-test-heading-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 6px 0 12px;
    padding: 0 10px;
}

.report-test-heading-title {
    color: #111827;
    text-align: center;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: uppercase;
}

.report-test-sample-line {
    align-self: flex-end;
    margin-top: 16px;
    color: #111827;
    text-align: right;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
}

.report-test-sample-line span {
    font-weight: 900;
}

@media print {
    .report-test-heading-row {
        margin: 1mm 0 1.8mm !important;
        padding: 0 2mm !important;
        break-after: avoid-page;
        page-break-after: avoid;
    }

    .report-test-heading-title {
        color: #000 !important;
        font-size: 14px !important;
        font-weight: 900 !important;
        line-height: 1.1 !important;
        text-align: center !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .report-test-sample-line {
        margin-top: 4mm !important;
        color: #000 !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        text-align: right !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}


/* Non admin dashboard cards */
.dashboard-page.staff-dashboard .dashboard-stat-grid,
.dashboard-page.staff-dashboard .dashboard-money-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-page.staff-dashboard .dashboard-top-card,
.dashboard-page.staff-dashboard .dashboard-money-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    overflow: hidden;
    padding: 12px 10px 10px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, #113f52 0%, #2f8d82 100%);
    color: #fff;
    box-shadow: 0 14px 26px rgba(17, 63, 82, 0.18);
}

.dashboard-page.staff-dashboard .dashboard-top-card:nth-child(2),
.dashboard-page.staff-dashboard .dashboard-money-card:nth-child(2) {
    background: linear-gradient(135deg, #145064 0%, #2e9489 100%);
}

.dashboard-page.staff-dashboard .dashboard-top-card:nth-child(3),
.dashboard-page.staff-dashboard .dashboard-money-card:nth-child(3) {
    background: linear-gradient(135deg, #0f8278 0%, #39c2b4 100%);
}

.dashboard-page.staff-dashboard .dashboard-top-card:nth-child(4),
.dashboard-page.staff-dashboard .dashboard-money-card:nth-child(4) {
    background: linear-gradient(135deg, #123f54 0%, #159a8b 100%);
}

.dashboard-page.staff-dashboard .dashboard-top-card:hover,
.dashboard-page.staff-dashboard .dashboard-money-card:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(17, 63, 82, 0.24);
}

.dashboard-page.staff-dashboard .dashboard-top-card div,
.dashboard-page.staff-dashboard .dashboard-money-card div {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.dashboard-page.staff-dashboard .dashboard-top-card strong,
.dashboard-page.staff-dashboard .dashboard-money-card strong {
    display: block;
    order: -1;
    margin: 0;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
}

.dashboard-page.staff-dashboard .dashboard-money-card strong {
    font-size: 28px;
}

.dashboard-page.staff-dashboard .dashboard-top-card span,
.dashboard-page.staff-dashboard .dashboard-money-card span {
    display: block;
    margin-top: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.dashboard-page.staff-dashboard .dashboard-top-card > i,
.dashboard-page.staff-dashboard .dashboard-money-card > i {
    position: absolute;
    right: 22px;
    top: 30px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.18);
    font-size: 66px;
}

.dashboard-page.staff-dashboard .dashboard-top-card small {
    position: relative;
    z-index: 2;
    display: block;
    min-height: auto;
    background: transparent;
    color: #fff;
    text-align: center;
    font-size: 15px;
    font-weight: 900;
}

@media (max-width: 991px) {
    .dashboard-page.staff-dashboard .dashboard-stat-grid,
    .dashboard-page.staff-dashboard .dashboard-money-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .dashboard-page.staff-dashboard .dashboard-stat-grid,
    .dashboard-page.staff-dashboard .dashboard-money-grid {
        grid-template-columns: 1fr;
    }
}

/* Merge non admin dashboard card groups into one 6-column desktop grid */
.dashboard-page.staff-dashboard .wsit-content {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-page.staff-dashboard .dashboard-heading,
.dashboard-page.staff-dashboard .dashboard-panel,
.dashboard-page.staff-dashboard .dashboard-accordion-panel {
    grid-column: 1 / -1;
}

.dashboard-page.staff-dashboard .dashboard-stat-grid,
.dashboard-page.staff-dashboard .dashboard-money-grid {
    display: contents;
}

.dashboard-page.staff-dashboard .dashboard-top-card,
.dashboard-page.staff-dashboard .dashboard-money-card {
    width: 100%;
    min-width: 0;
    margin: 0;
}

@media (max-width: 991px) {
    .dashboard-page.staff-dashboard .wsit-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .dashboard-page.staff-dashboard .wsit-content {
        grid-template-columns: 1fr;
    }
}

/* Align non admin income cards like the top dashboard cards */
.dashboard-page.staff-dashboard .dashboard-money-card {
    align-items: flex-start;
    text-align: left;
}

.dashboard-page.staff-dashboard .dashboard-money-card div {
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

.dashboard-page.staff-dashboard .dashboard-money-card strong {
    text-align: left;
    font-size: 30px;
}

.dashboard-page.staff-dashboard .dashboard-money-card span {
    text-align: left;
    margin-top: 16px;
}

/* Dashboard filters */
.dashboard-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.dashboard-filter-field label {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.dashboard-filter-actions {
    display: flex;
    gap: 8px;
}

.dashboard-filter-actions .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.dashboard-page.staff-dashboard .dashboard-filter-form {
    grid-column: 1 / -1;
}

@media (max-width: 991px) {
    .dashboard-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .dashboard-filter-form {
        grid-template-columns: 1fr;
    }

    .dashboard-filter-actions {
        flex-direction: column;
    }
}

/* Report department meta and selected-test print pages */
.report-test-meta-lines {
    align-self: flex-end;
    margin-top: 12px;
    text-align: right;
    font-family: Georgia, 'Times New Roman', serif;
}

.report-test-department-line,
.report-test-sample-line {
    color: #111827;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.report-test-department-line span,
.report-test-sample-line span {
    font-weight: 900;
}

.report-test-meta-lines .report-test-sample-line {
    margin-top: 4px;
}

.report-test-results-table th {
    color: #fff;
    background: #127d72;
    font-weight: 800;
}

@media print {
    .report-print-test-card:not(.is-report-selected) {
        display: none !important;
    }

    .report-print-test-card.is-report-selected {
        display: block !important;
        break-after: page !important;
        page-break-after: always !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .report-print-test-card.is-last-print-card {
        break-after: auto !important;
        page-break-after: auto !important;
    }

    .report-test-department-line,
    .report-test-sample-line {
        color: #000 !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        line-height: 1.1 !important;
        text-align: right !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .report-test-meta-lines {
        margin-top: 3mm !important;
    }

    .report-test-meta-lines .report-test-sample-line {
        margin-top: 1mm !important;
    }

    .report-test-results-table thead {
        display: table-header-group;
    }

    .report-test-results-table th {
        padding: 0.9mm 1.2mm !important;
        color: #fff !important;
        background: #127d72 !important;
        border-color: #127d72 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

.report-test-print-header {
    display: none;
}

@media print {
    .report-print-sheet > .report-brand-header,
    .report-print-sheet > .report-print-patient-card {
        display: none !important;
    }

    .report-test-print-header {
        display: block !important;
    }

    .report-test-print-header .report-brand-header {
        display: grid !important;
    }

    .report-test-print-header .report-print-patient-card {
        display: block !important;
    }
}

/* Place report department on the left side of the sample row */
.report-test-meta-lines {
    display: flex;
    width: 100%;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
}

.report-test-department-line {
    text-align: left;
}

.report-test-meta-lines .report-test-sample-line {
    align-self: auto;
    margin-top: 0;
    margin-left: auto;
    text-align: right;
}

@media print {
    .report-test-meta-lines {
        display: flex !important;
        width: 100% !important;
        align-items: flex-end !important;
        justify-content: space-between !important;
        gap: 4mm !important;
        text-align: left !important;
    }

    .report-test-department-line {
        text-align: left !important;
    }

    .report-test-meta-lines .report-test-sample-line {
        align-self: auto !important;
        margin-top: 0 !important;
        margin-left: auto !important;
        text-align: right !important;
    }
}

@media print {
    .report-footer-image {
        display: block !important;
        position: relative !important;
        z-index: 11 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .report-footer-image img {
        display: block !important;
        width: 100% !important;
        object-fit: contain !important;
    }
}

/* Report print edge spacing */
@media print {
    @page {
        size: A4;
        margin: 7mm 5mm 8mm;
    }

    .report-test-print-header .report-brand-header,
    .report-print-sheet > .report-brand-header {
        margin-top: 2mm !important;
        display: none !important;
    }

    .report-signature-footer {
        bottom: 8mm !important;
    }

    .report-footer-image {
        margin-bottom: 2mm !important;
    }
}

/* Static report service title */
.report-service-title {
    margin: 8px 0 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #222;
    color: #111;
    text-align: center;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
}

@media print {
    .report-service-title {
        margin: 1.8mm 0 1mm !important;
        padding-bottom: 0.8mm !important;
        border-bottom: 0.25mm solid #111 !important;
        color: #000 !important;
        text-align: center !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        line-height: 1.05 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Show laboratory services only in report print patient header */
.report-service-title {
    display: none;
}

@media print {
    .report-test-print-header .report-service-title {
        display: block !important;
    }
}

/* Final report print readability and page side gap */
@media print {
    @page {
        size: A4;
        margin: 7mm 9mm 8mm;
    }

    .report-print-sheet,
    .report-print-test-card.is-report-selected {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .report-service-title {
        font-size: 12px !important;
        padding-top:100px !important;
    }

    .report-print-patient-title {
        font-size: 10.2px !important;
        line-height: 1.1 !important;
    }

    .report-print-patient-grid div {
        min-height: 7.5mm !important;
        padding: 0.8mm 1mm !important;
    }

    .report-print-patient-grid span {
        font-size: 8.2px !important;
        line-height: 1.05 !important;
    }

    .report-print-patient-grid strong {
        font-size: 9.6px !important;
        line-height: 1.12 !important;
    }

    .report-test-heading-title {
        font-size: 16px !important;
        line-height: 1.12 !important;
    }

    .report-test-department-line,
    .report-test-sample-line {
        font-size: 11px !important;
        line-height: 1.15 !important;
    }

    .report-test-results-table th {
        font-size: 9.5px !important;
        line-height: 1.1 !important;
    }

    .report-test-results-table td,
    .report-print-table .report-component-group-row td {
        font-size: 9.2px !important;
        line-height: 1.16 !important;
    }

    .report-signature-person strong {
        font-size: 9.8px !important;
    }

    .report-signature-person span {
        font-size: 8.5px !important;
    }
}

/* Staff dashboard money/payment cards match top stat card design */
.dashboard-page.staff-dashboard .dashboard-money-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 140px;
    padding: 12px 10px 0;
    overflow: hidden;
    border-radius: 9px;
    background: linear-gradient(135deg, #113f52 0%, #2f8d82 100%);
    color: #fff;
    box-shadow: 0 14px 26px rgba(17, 63, 82, 0.18);
}

.dashboard-page.staff-dashboard .dashboard-money-card div {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-height: 91px;
    padding: 0;
    text-align: left;
}

.dashboard-page.staff-dashboard .dashboard-money-card strong {
    order: -1;
    margin: 0;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    text-align: left;
}

.dashboard-page.staff-dashboard .dashboard-money-card span {
    margin-top: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.15;
    text-align: left;
}

.dashboard-page.staff-dashboard .dashboard-money-card > i {
    position: absolute;
    right: 22px;
    top: 30px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.18);
    font-size: 66px;
}

.dashboard-page.staff-dashboard .dashboard-money-card small {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% + 20px);
    min-height: 31px;
    margin: auto -10px 0;
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    text-align: center;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}

.dashboard-page.staff-dashboard .dashboard-money-card:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(17, 63, 82, 0.24);
}

/* Let income/payment cards continue inside the same dashboard stat grid */
.dashboard-stat-grid > .dashboard-money-grid {
    display: contents !important;
    margin: 0 !important;
}

.dashboard-stat-grid > .dashboard-money-grid > .dashboard-money-card {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.dashboard-page .dashboard-stat-grid > .dashboard-money-grid > .dashboard-money-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 140px;
    padding: 12px 10px 0;
    overflow: hidden;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, #113f52 0%, #2f8d82 100%);
    color: #fff;
    box-shadow: 0 14px 26px rgba(17, 63, 82, 0.18);
}

.dashboard-page .dashboard-stat-grid > .dashboard-money-grid > .dashboard-money-card div {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-height: 91px;
    padding: 0;
    text-align: left;
}

.dashboard-page .dashboard-stat-grid > .dashboard-money-grid > .dashboard-money-card strong {
    order: -1;
    margin: 0;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    text-align: left;
}

.dashboard-page .dashboard-stat-grid > .dashboard-money-grid > .dashboard-money-card span {
    margin-top: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.15;
    text-align: left;
}

.dashboard-page .dashboard-stat-grid > .dashboard-money-grid > .dashboard-money-card > i {
    position: absolute;
    right: 22px;
    top: 30px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.18);
    font-size: 66px;
}

.dashboard-page .dashboard-stat-grid > .dashboard-money-grid > .dashboard-money-card small {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% + 20px);
    min-height: 31px;
    margin: auto -10px 0;
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    text-align: center;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}

/* Report print readability */
@media print {
    .report-print-patient-grid span {
        font-size: 9.2px !important;
        line-height: 1.1 !important;
    }

    .report-print-patient-grid strong {
        font-size: 10.8px !important;
        line-height: 1.15 !important;
    }

    .report-test-results-table th {
        font-size: 10.8px !important;
        line-height: 1.15 !important;
    }

    .report-test-results-table td,
    .report-print-table .report-component-group-row td {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .report-signature-person strong {
        font-size: 10.8px !important;
    }

    .report-signature-person span {
        font-size: 9.5px !important;
    }
}

/* Emphasize report Normal Range values */
.report-test-results-table:has(col.report-col-range):not(:has(col.report-col-status)) th:last-child,
.report-test-results-table:has(col.report-col-range):not(:has(col.report-col-status)) td:last-child,
.report-test-results-table:has(col.report-col-range):has(col.report-col-status) th:nth-last-child(2),
.report-test-results-table:has(col.report-col-range):has(col.report-col-status) td:nth-last-child(2) {
    font-size: 13px !important;
    line-height: 1.3 !important;
}

@media print {
    .report-test-results-table:has(col.report-col-range):not(:has(col.report-col-status)) th:last-child,
    .report-test-results-table:has(col.report-col-range):not(:has(col.report-col-status)) td:last-child,
    .report-test-results-table:has(col.report-col-range):has(col.report-col-status) th:nth-last-child(2),
    .report-test-results-table:has(col.report-col-range):has(col.report-col-status) td:nth-last-child(2) {
        font-size: 12.5px !important;
        line-height: 1.25 !important;
    }
}
/* Dashboard topbar calculator */
.wsit-header .dashboard-calculator-toggle {
    background: var(--secondary-color);
    color: #ffffff;
    cursor: pointer;
    padding-left: 14px;
    padding-right: 14px;
}

.wsit-header .dashboard-calculator-toggle:hover, .wsit-header .dashboard-calculator-toggle:focus {
    background: transparent !important;
    color: #ffffff !important;
}

.dashboard-calculator-panel {
    position: fixed;
    top: 60px;
    right: 74px;
    z-index: 1095;
    width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.18s ease;
}

.dashboard-calculator-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dashboard-calculator-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #d8e3e8;
    box-shadow: 0 18px 45px rgba(9, 33, 49, 0.22);
    overflow: hidden;
}

.dashboard-calculator-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 10px 12px;
}

.dashboard-calculator-head h6 {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.dashboard-calculator-close {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}


.dashboard-calculator-screen {
    display: none;
    padding: 10px;
}

.dashboard-calculator-screen.active {
    display: block;
}

.dashboard-calculator-input,
.dashboard-calculator-result {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #d6e2e8;
    background: #f8fbfc;
    text-align: right;
    color: #0f2f3f;
}

.dashboard-calculator-input {
    height: 42px;
    padding: 8px 10px;
    font-size: 20px;
    font-weight: 700;
}

.dashboard-calculator-result {
    margin-top: 6px;
    padding: 7px 10px;
    min-height: 34px;
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-color);
}

.dashboard-calculator-keys {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding: 0 10px 12px;
}

.dashboard-calculator-keys button {
    min-height: 42px;
    border: 1px solid #d6e2e8;
    border-radius: 6px;
    background: #ffffff;
    color: #10384a;
    font-size: 16px;
    font-weight: 800;
}

.dashboard-calculator-keys button:hover,
.dashboard-calculator-keys button:focus {
    background: #eef8f7;
    color: var(--secondary-color);
}

.dashboard-calculator-keys .equals {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;
}

@media (max-width: 575.98px) {
    .dashboard-calculator-panel {
        top: 58px;
        right: 10px;
        left: 10px;
        width: auto;
    }
}
/* Doctor form select2 input group alignment */
.doctor-form-page .patient-input-group {
    flex-wrap: nowrap;
    align-items: stretch;
}

.doctor-form-page .patient-input-group .input-group-text {
    height: 38px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.doctor-form-page .patient-input-group .select2-container {
    flex: 1 1 auto;
    width: 1% !important;
    min-width: 0;
}

.doctor-form-page .patient-input-group .select2-container .select2-selection--single {
    height: 38px;
    border-color: #cfd6e3;
    border-left: 0;
    border-radius: 0 4px 4px 0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
}

.doctor-form-page .patient-input-group .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #000;
    line-height: 38px;
    padding-left: 12px;
    padding-right: 32px;
}

.doctor-form-page .patient-input-group .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    right: 6px;
}

.doctor-form-page .patient-input-group .select2-container--default.select2-container--focus .select2-selection--single,
.doctor-form-page .patient-input-group .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #b7c3d4;
    box-shadow: none;
}
/* Final report print table readability override */
@media print {
    .report-test-results-table td {
        font-size: 14px !important;
    }

    .report-test-results-table tbody tr:not(.report-component-group-row) td:first-child {
        padding-top: 8px !important;
    }
}
/* Backend topbar website name */
.wsit-header .topbar-site-name {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 18px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 767.98px) {
    .wsit-header .topbar-site-name {
        font-size: 14px;
        padding: 0 10px;
    }
}
/* Payment entry history list */
.payment-history-empty {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
}

.payment-history-list {
    min-width: 190px;
    max-width: 260px;
}

.payment-history-list > span {
    display: inline-flex;
    margin-bottom: 5px;
    padding: 3px 8px;
    border-radius: 4px;
    background: #eef8f7;
    color: var(--table-accent-dark);
    font-size: 12px;
    font-weight: 800;
}

/* Technologist pending sample notifications */
.wsit-header .technologist-notification {
    position: relative;
}

.wsit-header .technologist-notification-toggle {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
}

.wsit-header .technologist-notification-toggle > i {
    margin-right: 5px;
    color: #fff;
    font-size: 19px;
}

.wsit-header .technologist-notification-toggle:hover,
.wsit-header .technologist-notification-toggle:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.technologist-notification-badge {
    position: absolute;
    top: 5px;
    left: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    height: 20px;
    padding: 9px 5px 6px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    justify-content: center;
}

.technologist-notification-panel {
    position: absolute;
    top: calc(100% - 2px);
    right: 0;
    z-index: 1100;
    width: 360px;
    overflow: hidden;
    border: 1px solid #dce3ec;
    border-radius: 10px;
    background: #fff;
    color: #172033;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.technologist-notification:hover .technologist-notification-panel,
.technologist-notification:focus-within .technologist-notification-panel,
.technologist-notification.is-open .technologist-notification-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.technologist-notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    background: linear-gradient(135deg, var(--table-accent), var(--table-accent-dark));
    color: #fff;
}

.technologist-notification-header strong,
.technologist-notification-header small {
    display: block;
}

.technologist-notification-header strong {
    font-size: 14px;
    font-weight: 800;
}

.technologist-notification-header small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
}

.technologist-notification-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.technologist-notification-list {
    max-height: 335px;
    overflow-y: auto;
    background: #fff;
}

.technologist-notification-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 12px 16px;
    border-bottom: 1px solid #edf1f5;
    background: #fff;
}

.technologist-notification-item:last-child {
    border-bottom: 0;
}

.technologist-notification-item:hover {
    background: #f2f8f7;
}

.technologist-notification-icon {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5f4f2;
    color: var(--table-accent-dark);
}

.technologist-notification-icon i {
    margin: 0 !important;
    color: inherit !important;
    font-size: 17px;
}

.technologist-notification-details {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.technologist-notification-details strong,
.technologist-notification-details small {
    display: block;
}

.technologist-notification-details strong {
    color: #172033;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.technologist-notification-details small {
    margin-top: 3px;
    overflow: hidden;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.technologist-notification-empty {
    padding: 30px 16px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.technologist-notification-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    border-top: 1px solid #dce3ec;
    background: #f8fafc;
    color: var(--table-accent-dark);
    font-size: 12px;
    font-weight: 800;
}

.technologist-notification-footer:hover,
.technologist-notification-footer:focus {
    background: #eaf5f3;
    color: var(--table-accent-dark);
}

@media (max-width: 575.98px) {
    .technologist-notification-panel {
        position: fixed;
        top: 52px;
        right: 8px;
        left: 8px;
        width: auto;
    }

    .technologist-notification-details small {
        white-space: normal;
    }
}

.payment-history-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.payment-history-list li {
    display: grid;
    grid-template-columns: minmax(70px, auto) minmax(82px, 1fr);
    gap: 2px 8px;
    padding: 4px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    font-size: 12px;
    line-height: 1.2;
}

.payment-history-list li:last-child {
    border-bottom: 0;
}

.payment-history-list li strong {
    color: var(--table-accent-dark);
    font-size: 12px;
}

.payment-history-list li span {
    color: #374151;
    white-space: nowrap;
}

.payment-history-list li em {
    grid-column: 1 / -1;
    color: #6b7280;
    font-style: normal;
    font-size: 11px;
}
/* DataTable total footer */
.data-table-card table.dataTable tfoot .datatable-total-row th,
.data-table-card table tfoot .datatable-total-row th {
    background: #f8fbfb;
    border-top: 2px solid #0f8075;
    border-bottom: 1px solid #cfe1df;
    color: #06223a;
    font-weight: 700;
    padding: 10px 12px;
    white-space: nowrap;
}

.data-table-card table.dataTable tfoot .datatable-total-row th[id],
.data-table-card table tfoot .datatable-total-row th[id] {
    color: #ff123d;
    text-align: center;
}
.invoice-test-department-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #dce9e7;
    border-radius: 10px;
    background: #f7fbfa;
}

.report-test-watermark-image {
    display: none;
}

@media print {
    .report-print-test-card {
        position: relative !important;
        isolation: isolate;
    }

    .report-test-watermark-image {
        position: fixed !important;
        top: 50vh !important;
        left: 50vw !important;
        right: auto !important;
        bottom: auto !important;
        z-index: 50 !important;
        display: flex !important;
        width: 55mm !important;
        height: 55mm !important;
        align-items: center;
        justify-content: center;
        transform: translate(-50%, -50%) !important;
        opacity: 0.05 !important;
        pointer-events: none;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .report-test-watermark-image img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .report-print-sheet > .report-watermark-image {
        display: none !important;
    }
}

.invoice-department-option {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.invoice-department-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.invoice-department-option span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid #cedbd9;
    border-radius: 20px;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    transition: all .2s ease;
}

.invoice-department-option span::before {
    content: '';
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border: 2px solid #98aaa7;
    border-radius: 50%;
    transition: all .2s ease;
}

.invoice-department-option:hover span {
    border-color: #147d74;
    color: #147d74;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 125, 116, .1);
}

.invoice-department-option input:checked + span {
    border-color: #147d74;
    background: #147d74;
    color: #fff;
    box-shadow: 0 5px 14px rgba(20, 125, 116, .22);
}

.invoice-department-option input:checked + span::before {
    border-color: #fff;
    background: #fff;
    box-shadow: inset 0 0 0 2px #147d74;
}

.invoice-department-option input:focus-visible + span {
    outline: 3px solid rgba(20, 125, 116, .2);
    outline-offset: 2px;
}

@media (max-width: 575px) {
    .invoice-test-department-filter {
        gap: 8px;
        padding: 10px;
    }

    .invoice-department-option span {
        min-height: 34px;
        padding: 7px 12px;
        font-size: 12px;
    }
}
