/* ==========================================================================
   LABSONUC - MODERN THEME (Sharp / No-Radius Version)
   ========================================================================== */

/* --- 1. GLOBAL AYARLAR --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    background-color: #ffffff;
    background-image: none;
    font-family: 'Inter', sans-serif;
    color: #333333;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.lab-header {
    background-color: #00325B;
    padding: 12px 0;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.lab-header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.lab-header .header-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.lab-header .header-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.3px;
}

.lab-header .header-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lab-header .header-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 0;
    /* RADIUS REMOVED */
    transition: all 0.2s;
}

.lab-header .header-nav a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   MAIN CONTENT WRAPPER
   ========================================================================== */
.lab-main {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.lab-main-narrow {
    max-width: 600px;
}

/* ==========================================================================
   PAGE HEADER / WELCOME
   ========================================================================== */
.lab-page-header {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.lab-page-header h1 {
    font-size: 30px;
    color: #00325B;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.lab-page-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   FORM CARD (INQUIRY / LOGIN)
   ========================================================================== */
.lab-form-card {
    background-color: #ffffff;
    border: 1px solid #e1eaf5;
    border-radius: 0;
    /* RADIUS REMOVED */
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    width: 100%;
    margin-bottom: 30px;
}

/* --- Tabs (TC / Foreign) --- */
.lab-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
}

.lab-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    font-family: 'Inter', sans-serif;
}

.lab-tab:hover {
    color: #00325B;
    background-color: #f9f9f9;
}

.lab-tab.active {
    color: #00325B;
    border-bottom: 2px solid #00325B;
    background: none;
}

/* --- Radio Buttons (query type) --- */
.lab-radio-group {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 0;
    /* RADIUS REMOVED */
    border: 1px solid #e9ecef;
}

.lab-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    padding: 8px 15px;
    border-radius: 0;
    /* RADIUS REMOVED */
    transition: all 0.2s;
    flex: 1;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    background: none;
    border: none;
}

.lab-radio-option:hover {
    background-color: #eef3f8;
    color: #00325B;
}

.lab-radio-option input[type="radio"] {
    accent-color: #00325B;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* --- Form Groups --- */
.lab-form-group {
    margin-bottom: 20px;
    width: 100%;
}

.lab-form-group label,
.lab-form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #00325B;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.lab-form-label-hint {
    font-size: 11px;
    color: #999;
    font-style: italic;
    font-weight: 400;
    margin-left: 4px;
}

.lab-form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cccccc;
    border-radius: 0;
    /* RADIUS REMOVED */
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    color: #333;
    background-color: #fff;
    height: 48px;
    line-height: normal;
}

.lab-form-control:focus {
    border-color: #00325B;
    outline: none;
    box-shadow: none;
}

.lab-form-control::placeholder {
    color: #aaa;
    font-weight: 400;
}

/* --- Captcha --- */
.lab-captcha-group {
    background-color: #f9fbfd;
    padding: 20px;
    border: 1px solid #e1eaf5;
    border-radius: 0;
    /* RADIUS REMOVED */
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
}

.lab-captcha-group img {
    border-radius: 0;
    /* RADIUS REMOVED */
    flex-shrink: 0;
}

.lab-captcha-group .lab-form-control {
    flex: 1;
}

.lab-captcha-refresh {
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 0;
    /* RADIUS REMOVED */
    transition: transform 0.2s;
    flex-shrink: 0;
    border: none;
    background: none;
    padding: 0;
}

.lab-captcha-refresh:hover {
    transform: rotate(45deg);
}

/* --- KVKK --- */
.lab-kvkk-area {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 0;
    /* RADIUS REMOVED */
    border: 1px solid #e9ecef;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.lab-kvkk-area input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #00325B;
    flex-shrink: 0;
}

.lab-kvkk-area label {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.lab-kvkk-area a {
    color: #0071CE;
    text-decoration: underline;
}

.lab-kvkk-area a:hover {
    color: #00325B;
}

/* --- Primary Button --- */
.lab-btn-primary {
    width: 100%;
    padding: 16px;
    background-color: #0071CE;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    /* RADIUS REMOVED */
    transition: background-color 0.2s ease;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-image: none;
    text-align: center;
}

.lab-btn-primary:hover {
    background-color: #005a9e;
}

.lab-btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ==========================================================================
   PATIENT INFO CARD (REPORT PAGE)
   ========================================================================== */
.lab-patient-info {
    background-color: #00325B;
    color: #ffffff;
    border-radius: 0;
    /* RADIUS REMOVED */
    padding: 30px 35px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    box-shadow: 0 4px 15px rgba(0, 50, 91, 0.15);
}

.lab-patient-info .info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 180px;
}

.lab-patient-info .info-label {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lab-patient-info .info-value {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

/* ==========================================================================
   REPORT LIST
   ========================================================================== */
.lab-report-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1eaf5;
}

.lab-report-section-title svg {
    width: 24px;
    height: 24px;
    fill: #00325B;
    flex-shrink: 0;
}

.lab-report-section-title h2 {
    font-size: 20px;
    color: #00325B;
    font-weight: 700;
    margin: 0;
}

/* Report Type Cards / List Items */
.lab-report-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.lab-report-item {
    display: flex;
    align-items: center;
    background-color: #f4f9fd;
    border: 1px solid #e1eaf5;
    border-radius: 0;
    /* RADIUS REMOVED */
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.lab-report-item:hover {
    background-color: #eaf6ff;
    border-color: #cce3ff;
}

.lab-report-item.selected {
    background-color: #00325B;
    color: #ffffff;
    border-color: #00325B;
}


.lab-report-item.selected .item-title,
.lab-report-item.selected .item-arrow,
.lab-report-item.selected span {
    color: #ffffff;
}

.lab-report-item .item-icon {
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    color: #00325B;
    border-radius: 0;
    /* RADIUS REMOVED (Was 50%) */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1eaf5;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 14px;
}

.lab-report-item.selected .item-icon {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.lab-report-item .item-title {
    font-size: 15px;
    font-weight: 600;
    color: #00325B;
    flex: 1;
}

.lab-report-item .item-arrow {
    color: #ccc;
    transition: all 0.3s;
}

.lab-report-item:hover .item-arrow {
    color: #0071CE;
    transform: translateX(3px);
}

.lab-report-item.selected .item-arrow {
    transform: rotate(90deg);
}

/* ==========================================================================
   DETAILS SECTION (card list / report content)
   ========================================================================== */
.lab-details-section {
    margin-top: 20px;
    animation: labFadeIn 0.4s ease;
}

@keyframes labFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.lab-footer {
    text-align: center;
    padding: 30px;
    background-color: #ffffff;
    color: #999;
    font-size: 12px;
    border-top: 1px solid #eee;
    margin-top: auto;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.lab-footer a {
    color: #0071CE;
    text-decoration: none;
}

.lab-footer a:hover {
    color: #00325B;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.lab-hidden {
    display: none;
}

.lab-text-center {
    text-align: center;
}

.lab-mt-20 {
    margin-top: 20px;
}

.lab-mb-20 {
    margin-bottom: 20px;
}

/* ==========================================================================
   COMPATIBILITY OVERRIDES (LEGACY SUPPORT)
   ========================================================================== */
body .shadow_top,
body .shadow_bottom {
    display: none;
}

body #main_table {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    float: none;
    border-collapse: collapse;
}

.info_input1,
.info_input2,
.info_input3,
.info_input4,
.info_input5,
.info_input6 {
    background-image: none;
    background: none;
}

.tab_control_title {
    background-image: none;
    background: none;
}

#main_div {
    background-image: none;
    background: none;
}

.content {
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.info_line {
    width: 100%;
    height: auto;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info_title {
    width: 100%;
    height: auto;
    float: none;
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #00325B;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    line-height: normal;
}

.info_input1 {
    width: 100%;
    float: none;
    height: auto;
    display: block;
}

.input1,
.input2,
.input3 {
    width: 100%;
    height: 48px;
    float: none;
    display: block;
    border: 1px solid #cccccc;
    border-radius: 0;
    /* RADIUS REMOVED */
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    padding: 14px 16px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    outline: none;
    background: #fff;
    color: #333;
    text-align: left;
}

.input1:focus,
.input2:focus,
.input3:focus {
    border-color: #00325B;
}

.info_input3 {
    width: 100%;
    float: none;
    height: 48px;
    margin: 10px 0 0 0;
    background-color: #0071CE;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    /* RADIUS REMOVED */
    transition: background-color 0.2s ease;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 48px;
}

.info_input3:hover {
    background-color: #005a9e;
}

.radio-text {
    width: auto;
    float: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 0;
    /* RADIUS REMOVED */
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-text:hover {
    background-color: #eef3f8;
    background-image: none;
}

.warning {
    position: relative;
    width: 100%;
    left: 0;
    top: 0;
    margin: 5px 0;
    padding: 10px;
    background: #fff3cd;
    background-image: none;
    border: 1px solid #ffc107;
    border-radius: 0;
    /* RADIUS REMOVED */
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #856404;
    text-align: center;
}

.kvkk-area {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 0;
    /* RADIUS REMOVED */
    border: 1px solid #e9ecef;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.kvkk-label {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

.kvkk-area a {
    color: #0071CE;
}

.info_input6 {
    width: auto;
    height: auto;
    float: none;
    margin: 0;
    background: none;
}

.form_title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #00325B;
    height: auto;
}

.form_title_hint {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #999;
    height: auto;
}

.form_title_line {
    width: 100%;
    float: none;
}

.list_title {
    font-family: 'Inter', sans-serif;
    padding: 18px 20px;
    color: #00325B;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    text-align: left;
}

.list_title a:link,
.list_title a:visited {
    color: #00325B;
}

.list_title a:hover {
    color: #0071CE;
}

.line_background1,
.line_background2 {
    background: #f4f9fd;
    background-image: none;
    border: 1px solid #e1eaf5;
    border-radius: 0;
    /* RADIUS REMOVED */
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.line_background1:hover,
.line_background2:hover {
    background: #eaf6ff;
    background-image: none;
    border-color: #cce3ff;
}

.line_background3 {
    background: #00325B;
    background-image: none;
    border-radius: 0;
    /* RADIUS REMOVED */
    margin-bottom: 8px;
}

.line_background3 .list_title,
.line_background3 .list_title a:link,
.line_background3 .list_title a:visited,
.line_background3 td {
    color: #ffffff;
}

.report_title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #00325B;
}

.info_text1 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    float: none;
}

.footer_note {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    padding: 20px;
}

.tab_control_title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    width: 50%;
    height: auto;
    padding: 12px;
    text-align: center;
    float: left;
    color: #999;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tab_control_title:hover {
    color: #00325B;
    background-color: #f9f9f9;
}

body .content .info_line .info_text1 {
    margin-top: 0;
}

body .content .info_line .form_title_line {
    margin-bottom: 0;
}

/* ==========================================================================
   CARD LIST / MULTI-COLUMN TABLE STYLES
   ========================================================================== */
.lab-card-list-container {
    background: #ffffff;
    border: 1px solid #e1eaf5;
    border-radius: 0;
    /* RADIUS REMOVED */
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.lab-card-header-row {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 2px solid #e1eaf5;
    padding: 12px 15px;
}

.lab-card-col {
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.lab-card-col-icon {
    flex: 0 0 50px;
    align-items: center;
}

.lab-card-col-date {
    flex: 0 0 120px;
}

.lab-card-col-report {
    flex: 2;
}

.lab-card-col-status {
    flex: 0 0 110px;
    text-align: center;
    align-items: center;
}

.lab-card-col-dept {
    flex: 1.5;
}

.lab-card-col-office {
    flex: 1.5;
}

.lab-card-col-action {
    flex: 0 0 60px;
    align-items: center;
    justify-content: center;
}

.lab-card-header-title {
    font-size: 13px;
    font-weight: 700;
    color: #00325B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lab-card-header-hint {
    font-size: 11px;
    color: #999;
    font-weight: 400;
    margin-top: 2px;
}

.lab-card-item-row {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.lab-card-item-row:hover {
    background-color: #f4f9fd;
}

.lab-card-item-row .lab-card-col {
    font-size: 14px;
    color: #555;
}

.lab-card-item-row .lab-card-col-date {
    font-weight: 600;
    color: #333;
}

.lab-card-item-row .lab-card-col-report {
    font-weight: 600;
    color: #00325B;
}

.lab-card-item-row .lab-card-col-status {
    font-weight: 700;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 0;
    /* RADIUS REMOVED */
    display: inline-block;
    text-align: center;
}

.status-approved {
    background-color: #e6fffa;
    color: #047857;
}

.status-unapproved {
    background-color: #fff5f5;
    color: #c53030;
}

.lab-sub-item-row {
    display: flex;
    padding: 15px 20px 15px 20px;
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #856404;
    font-weight: 600;
    margin: 5px 0 5px 20px;
    border-radius: 0;
    /* RADIUS REMOVED */
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.lab-sub-item-row:hover {
    background-color: #fff3cd;
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.lab-error-msg {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
    display: none;
}

.lab-error-msg:not(:empty) {
    display: block;
}

.lab-input-error {
    border-color: #e74c3c;
    background-color: #fff9f8;
}

.lab-input-error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

/* --- TABLET & SMALL LAPTOP (769px - 1199px) --- */
@media (min-width: 769px) and (max-width: 1199px) {
    .lab-header .header-container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .lab-main {
        padding: 30px 30px;
    }

    /* Grid layout for Patient Info on Tablet */
    .lab-patient-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .lab-patient-info .info-item {
        min-width: auto;
    }
}

/* --- MOBILE DEVICES (Max 768px) --- */
@media (max-width: 768px) {

    /* Header Adjustments */
    .lab-header .header-container {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .lab-header .header-title {
        font-size: 14px;
        text-align: center;
    }

    .lab-header .header-logo img {
        height: 35px;
    }

    /* Main Container */
    .lab-main {
        padding: 20px 15px;
    }

    .lab-page-header h1 {
        font-size: 22px;
    }

    /* Form Card */
    .lab-form-card {
        padding: 25px 20px;
        border-radius: 0;
        /* RADIUS REMOVED */
    }

    /* Stack Patient Info */
    .lab-patient-info {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .lab-patient-info .info-item {
        min-width: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 8px;
    }

    .lab-patient-info .info-item:last-child {
        border-bottom: none;
    }

    /* Form Elements */
    .lab-captcha-group {
        flex-wrap: wrap;
    }

    .lab-radio-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .lab-radio-option {
        width: 100%;
        justify-content: flex-start;
    }

    .lab-tabs {
        flex-direction: row;
        border-bottom: 2px solid #eee;
    }

    .lab-tab {
        flex: 1;
        text-align: center;
        padding: 12px;
    }

    .lab-tab.active {
        border-bottom: 2px solid #00325B;
        background: none;
    }

    /* --- LEGACY TABLE BUSTER (Critical for Mobile) --- */
    /* Forces tables to behave like blocks */
    body #main_table,
    body table,
    body tbody,
    body tr,
    body td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    body tr {
        margin-bottom: 15px;
    }

    body .info_line {
        flex-direction: column;
    }

    body .content {
        width: 100%;
        padding: 0;
    }

    body #main_div {
        width: 100%;
        padding: 5px;
    }

    /* Captcha row adjustments for mobile */
    #dl_cp.info_line {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    #dl_cp .info_input1 {
        width: 100%;
    }

    /* Card List Mobile View */
    .lab-card-header-row {
        display: none;
    }

    .lab-card-item-row {
        position: relative;
        /* Sabitleme için şart */
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 5px;
        /* Satırlar arası boşluğu azalttık */
    }

    .lab-card-col {
        padding: 0;
        width: 100%;
        flex: auto;
        display: block;
        text-align: left;
    }

    .lab-card-col-icon {
        display: none;
    }

    .lab-card-col-date {
        font-size: 13px;
        color: #999;
        margin-bottom: 2px;
    }

    .lab-card-col-report {
        font-size: 16px;
        margin-bottom: 5px;
        color: #0071CE;
        padding-right: 100px;
        /* Rozet için sağdan boşluk bırakıyoruz */
        width: 100%;
    }

    .lab-card-col-status {
        position: absolute !important;
        /* Akıştan çıkar */
        top: 20px;
        /* Kartın en tepesinden 20px aşağı */
        right: 20px;
        /* Kartın en sağından 20px içeri */
        width: auto !important;
        margin: 0 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        /* Mobilde biraz daha kibar dursun */
        padding: 4px 8px;
    }

    .lab-card-col-dept,
    .lab-card-col-office {
        width: 100%;
        margin-top: 2px;
    }

    .lab-card-col-dept::before {
        content: "Bölüm: ";
        font-weight: 600;
    }

    .lab-card-col-office::before {
        content: "Doktor: ";
        font-weight: 600;
    }

    .lab-sub-item-row {
        padding: 15px;
        background-color: #f9f9f9;
        flex-direction: column;
        align-items: flex-start;
        border-left: 4px solid #ddd;
        margin: 0;
        width: 100%;
    }
}

/* --- FLUID SCALE (Large Screens 2000px+) --- */
@media (min-width: 2000px) {

    /* Scale container width */
    .lab-header .header-container,
    .lab-main {
        max-width: 1600px;
    }

    /* Scale Typography */
    body {
        font-size: 18px;
        /* Base size increase */
    }

    .lab-main {
        padding-top: 60px;
    }

    .lab-page-header h1 {
        font-size: 42px;
    }

    .lab-form-control,
    .input1,
    .input2,
    .input3,
    .lab-btn-primary {
        height: 60px;
        font-size: 18px;
    }

    .lab-form-group label,
    .lab-form-label {
        font-size: 18px;
    }

    .lab-form-card {
        padding: 60px;
    }

    .lab-patient-info {
        padding: 40px;
    }

    .lab-patient-info .info-value {
        font-size: 20px;
    }

    .lab-card-item-row .lab-card-col {
        font-size: 16px;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {

    .lab-header,
    .lab-footer {
        display: none;
    }

    body {
        background: white;
    }

    .lab-main {
        padding: 0;
        max-width: 100%;
    }
}

.lab-loading-message {
    padding: 28px 16px;
    text-align: center;
    color: #00325b;
    font-weight: 600;
}

.lab-loading-error {
    color: #b42318;
}

.lab-card-item-row.is-loading,
.lab-sub-item-row.is-loading {
    cursor: wait;
    opacity: 0.65;
    pointer-events: none;
}
