.form-control:focus {
    box-shadow: none !important;
}

.ui-timepicker-container {
    top: 288px !important;
}

.ck-editor__editable {
    min-height: 200px;
}

.login-block {
    background: none;
    background: #99a5b952;
}

.error {
    color: red;
}

.form-control.error {
    border-color: red;
    color: #495057;
    ;
}

.input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.input-wrapper .unit {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #666;
    background: white;
    pointer-events: none;
    white-space: nowrap;
    z-index: 3;
}

.input-wrapper .form-control {
    width: 100%;
    padding-left: 140px;
    /* Default, overridden by JS */
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

label.error {
    margin-top: 4px;
    /* reduce spacing */
    font-size: 0.875rem;
    /* optional: match Bootstrap small text */
    color: red;
}

/* .form-group .error {
    margin-bottom: 2px;
    font-size: 0.875rem;
    color: red;
    top: 17px !important;
} */

.table th a {
    color: #fff;
}

.table th a:hover {
    color: #fff;
}

.dd-item {
    position: relative;
}

.dd-item a {
    position: absolute;
    right: -20px;
    top: 5px;
}

.disabled {
    pointer-events: none;
}

.decription-review p {
    font-size: 17px;
}




.review img {
    width: 50px;
    height: 50px;
    border-radius: 100px;
}

.review {
    display: flex;
    align-items: self-start;
    gap: 15px;
    margin: 1rem 0rem;
}

.review .review-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review .review-author,
.riviews .review-time {
    color: #151618;
    font-size: 16px;
    font-weight: 500;
}

.review .review-text {
    margin-top: 3px;
    font-size: 14px;
    color: #363a41;
    margin-bottom: 3px;
}

.review .review-content {
    width: 100%;
}

.review .review-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review .review-actions button {
    font-size: 14px;
    color: #363a41;
}

.review .review-actions button:hover {
    text-decoration: underline;
}

.review.reply {
    margin-left: 4rem;
}

.review-editor {
    display: none;
}

.reply-editor {
    display: none;
}

.start-time-container {
    z-index: 99999999999 !important;
    top: 260px !important;
    /* Bootstrap modal is z-index 1050 */
}

.end-time-container {
    z-index: 99999999999 !important;
    top: 340px !important;
    /* Bootstrap modal is z-index 1050 */
}

.test {
    z-index: 1500;
}

.custom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: auto;
}

.custom-modal-content {
    background: white;
    margin: 10% auto;
    padding: 20px;
    width: 500px;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* dropzone styling */

.dropzone-area {
    border: 2px dashed #4a90e2;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    color: #666;
    background: #fafafa;
    transition: background 0.3s ease;
}

.dropzone-area.dragover {
    background: #e6f0ff;
}

#fileList {
    margin-top: 10px;
    font-size: 14px;
}

.form-check {
    position: relative;
    display: block;
    padding-left: 1.25rem;
}

.fasting-check .form-check-input {
    border-radius: 0;
    border: 2px solid #01a9ac !important;
    cursor: pointer;
    display: inline-block;
    height: 20px;
    margin-right: 0.5em;
    position: relative;
    width: 20px;
    margin-top: 0;
}

.fasting-check .form-check {
    align-items: center;
    display: flex;
}

.fasting-check {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Wrapper for scrolling */
.order-timeline-wrapper {
    max-height: 350px;
    /* adjust as needed */
    overflow-y: auto;
    padding: 20px;
}

/* Timeline base */
.timeline {
    position: relative;
    list-style: none;
    padding-left: 35px;
    margin-bottom: 0;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

/* Timeline item */
.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

/* Circle */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 3px solid #6c757d;
    border-radius: 50%;
}

/* Active state */
.timeline-item.active::before {
    background: #28a745;
    border-color: #28a745;
}

/* Date */
.timeline-date {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 6px;
}

/* Content */
.timeline-content {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 4px;
}
/* ==========================================================================
   Tablet + small laptop (768px – 1399px). Phones (<768) and large screens
   (>=1400) are not changed. Added 2026-10-08 — hospital staff use admin on tablets.
   ========================================================================== */

/* menu toggle: shown at every tablet/laptop width (was hidden from 992px up, so the
   sidebar could not be closed on a landscape tablet / small laptop, and at exactly
   992px the menu could not be opened at all). Large screens keep the old look. */
@media (min-width: 1400px) {
    .header-navbar .navbar-logo .menu-toggle-tablet {
        display: none !important;
    }
}

/* portrait tablet (theme "tablet" mode): logo sat on a second header row and
   covered the page title — put it in the middle of the top bar instead */
@media (min-width: 768px) and (max-width: 992px) {
    .header-navbar .navbar-container .header-logo {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 !important;
        z-index: 2;
    }

    .header-navbar .navbar-container .header-logo img {
        width: auto !important;
        height: 40px;
        margin: 8px 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 1399px) {

    /* list pages: filter bars wrap onto the next line instead of running off the edge */
    .card-header.d-flex {
        flex-wrap: wrap;
        gap: 10px;
    }

    .card-header form.d-flex,
    .card-header form .d-flex {
        flex-wrap: wrap;
        row-gap: 8px;
        max-width: 100%;
    }

    .card-header form .form-control {
        width: auto;
        flex: 1 1 150px;
        min-width: 140px;
    }

    /* long lists: keep the Action column (last) in view while the table scrolls sideways */
    .table-responsive > .table-styling th:last-child,
    .table-responsive > .table-styling td:last-child {
        position: sticky;
        right: 0;
        z-index: 1;
    }

    .table-responsive > .table-styling td:last-child {
        background-color: #fff;
        box-shadow: -4px 0 6px -4px rgba(0, 0, 0, 0.15);
    }

    .table-responsive > .table-styling th:last-child {
        background-color: inherit;
    }

    /* wide tables slide sideways: show a clear scrollbar under them (was thin / hidden, so in a
       browser at tablet width it looked like the list could not scroll) */
    .table-responsive {
        scrollbar-width: auto;
        scrollbar-color: #01a9ac #e9ecef;
    }

    .table-responsive::-webkit-scrollbar {
        height: 12px;
    }

    .table-responsive::-webkit-scrollbar-track {
        background: #e9ecef;
        border-radius: 6px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: #01a9ac;
        border-radius: 6px;
    }

    /* pinned Action column: smaller buttons so it covers less of the other columns */
    .table-responsive > .table-styling td:last-child .btn {
        padding: 6px 9px;
        margin-left: 2px !important;
        margin-right: 2px !important;
    }

    .table-responsive > .table-styling td:last-child .btn i {
        padding-left: 0 !important;
    }

    /* names cut with "…" showed the full text only on mouse hover — wrap them instead */
    td.text-truncate {
        white-space: normal;
        overflow: visible;
        word-break: break-word;
    }

    /* status switches: bigger tap area */
    .table .toggle.btn {
        transform: scale(1.2);
        transform-origin: left center;
        margin-right: 10px;
    }

    /* dropdowns never wider than their box (also after rotating the tablet) */
    .select2-container {
        max-width: 100%;
    }

    /* Add Booking / Add Consultation: member + address select (75% wide) and the
       "+ Add" button go on two lines in narrow columns */
    .form-group > .d-flex {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .form-group > .d-flex > [style*="75%"] {
        width: 100% !important;
        flex: 0 0 100%;
    }

    /* General Settings: long tab names wrap instead of running into the form */
    .settings-nav .settings-nav-link {
        white-space: normal;
    }

    /* menu builder: edit / delete icons easier to tap */
    .dd-item .dd-item-actions a,
    .dd-item > a {
        font-size: 18px;
        padding: 2px 4px;
    }
}

/* below a laptop's full width the two columns stack: show the main part
   (tests, payment, status, reports) first, customer details after it */
@media (min-width: 768px) and (max-width: 1199px) {
    .tablet-first {
        order: -1;
    }

    /* Homepage settings: fields were 4–5 per row (file inputs ~120px wide) → 2 per row */
    .homepage-settings-page .row > [class*="col-md-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* touch screens (body class set in layout.blade.php): side menu scrolls with the finger
   (theme custom scrollbar removed there — it blocked scrolling on tablets) */
body.touch-menu-scroll .pcoded-navbar .main-menu {
    height: calc(100vh - 56px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 40px;
}
