html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

 
body.dark-mode {
    background-color: #121212;
    color: #f1f1f1;
}

.sidebar {
    min-height: 100vh;
}
 
.offcanvas-custom-width {
    width: 75% !important; /* or whatever width you prefer */
}
.badge-status {
    font-size: 0.9rem;
    padding: 0.4em 0.7em;
}

.discharged {
    background-color: #dc3545;
    color: white;
}

.admitted {
    background-color: #198754;
    color: white;
}

.payment-sidebar {
    max-height: 600px;
    overflow-y: auto;
    background-color: #f8f9fa;
    border-left: 1px solid #ddd;
    padding: 1rem;
}

.popover-lightred .popover-body {
    background-color: #f8d7da; /* light red / pink */
    color: #721c24; /* dark red text */
    font-weight: 600;
}

.popover-lightred.bs-popover-top .arrow::before {
    border-top-color: #f8d7da; /* arrow color matches background */
}



.report-container {
    font-family: Cambria, "Times New Roman", serif;
    font-size: 12px;
    color: #000;
}

h5 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 15px;
    text-decoration: underline;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

    .report-table th,
    .report-table td {
        border: 1px solid #000;
        padding: 5px;
        text-align: left;
    }

    .report-table.no-border td {
        border: none !important;
    }

.print-hide {
    margin-bottom: 10px;
}

@media print {
    body {
        font-family: Cambria, "Times New Roman", serif;
        font-size: 12pt; /* Optional: sets a readable font size */
    }
    .print-hide {
        display: none !important;
    }

    @page {
        size: A4;
        margin: 15mm;
    }
}

@media print {
    .print-check {
        color: green;
        font-weight: bold;
    }

    .print-cross {
        color: red;
        font-weight: bold;
    }

    /* Optional: remove any background/colors not needed for printing */
    body {
        background: #fff !important;
        color: #000 !important;
    }
}


/* Match Tom Select to Bootstrap form-control-sm */
.tomselect.form-select-sm .ts-control {
    min-height: calc(1.5em + 0.5rem + 2px); /* height similar to form-control-sm */
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem; /* same as .form-control-sm */
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* Adjust dropdown item size */
.tomselect.form-select-sm .ts-dropdown .option,
.tomselect.form-select-sm .ts-dropdown .item {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}
 
img.rounded-circle {
    border-radius: 50% !important;
}

.form-label.small {
    font-size: .85rem;
}

#medicineGrid td, #medicineGrid th {
    vertical-align: middle;
}

.ts-control {
    min-height: 34px;
}
.xdsoft_month[disabled],
.xdsoft_year[disabled] {
    color: #000; /* normal text color */
    background: transparent;
    border: none;
    pointer-events: none; /* prevent interaction */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.switch-wrapper {
    display: flex;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #28a745; /* green when ON */
}

    input:checked + .slider:before {
        transform: translateX(24px);
    }

.switch-label {
    font-weight: 500;
}


/* Apply only to dosage dropdown, inputs, and table cells */
#dosageCombo, #dosageCombo option,
input.fraction-box, td.fraction-cell {
    font-family: "Cambria", "Times New Roman", "Noto Sans Symbols", "DejaVu Serif", serif;
    font-weight: bold;
    color: #156e37; /* optional: dark green */
    font-size: 14px;
}
