﻿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;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    direction: rtl;
    font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif;
}


.single-line {
    white-space: nowrap; /* جلوگیری از شکستن خط */
    overflow-x: auto; /* در صورت طول زیاد، اسکرول افقی فعال شود */
    display: inline-block;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* جدول لایسنس‌ها */
.license-table {
    direction: rtl;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    border-collapse: collapse;
}

    /* استایل سلول‌ها */
    .license-table th,
    .license-table td {
        padding: 0.5rem;
        background: #fff;
        z-index: 1;
    }

        /* ستون جزئیات */
        .license-table th:nth-child(1),
        .license-table td:nth-child(1) {
            min-width: 90px;
        }

        /* ستون شناسه */
        .license-table th:nth-child(2),
        .license-table td:nth-child(2) {
            min-width: 50px;
        }

        /* ستون نام مرکز */
        .license-table th:nth-child(3),
        .license-table td:nth-child(3) {
            min-width: 140px;
        }

        /* ستون نام اتاق */
        .license-table th:nth-child(4),
        .license-table td:nth-child(4) {
            min-width: 140px;
        }

    /* سایر ستون‌ها */
    .license-table th,
    .license-table td {
        min-width: 110px;
    }

/* ✅ حالت موبایل */
@media (max-width: 768px) {
    .license-table {
        white-space: normal !important;
    }

        .license-table th,
        .license-table td {
            white-space: normal !important;
            word-wrap: break-word;
            font-size: 0.9rem;
            padding: 0.4rem;
        }

            /* 👇 کاهش عرض ستون‌های خاص در موبایل */
            .license-table th:nth-child(2),
            .license-table td:nth-child(2) {
                min-width: 40px !important; /* شناسه */
            }

            .license-table th:nth-child(3),
            .license-table td:nth-child(3) {
                min-width: 100px !important; /* نام مرکز */
            }
}
