﻿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;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
.Render-Body {
    margin-top: 80px !important;
    margin-left: 0px;
}
body, html {
    overflow-x: hidden !important;
}
/*--users index--*/


.user-table td, .user-table th {
    vertical-align: middle;
}

/* ---------- MOBILE CARD VIEW ---------- */
@media (max-width: 768px) {
    /* Hide entire table header on mobile */
    .user-table thead {
        display: none !important;
    }
    /* Each row acts as a card */
    .user-table tbody tr {
        display: block;
        background: #fff;
        border-radius: 12px;
        padding: 15px 15px 5px 15px;
        margin-bottom: 15px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.06);
        border: 1px solid #f1f1f1;
    }
        /* Each cell becomes a line with label + value */
        .user-table tbody tr td {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
            font-size: 1rem;
            border: none !important;
        }
            /* Label on the left */
            .user-table tbody tr td::before {
                content: attr(data-label);
                font-weight: 600;
                color: #777;
                padding-right: 10px;
            }
    /* Actions take full width */
    .actions-responsive {
        justify-content: flex-end !important;
        margin-top: 10px;
        gap: 8px;
    }

        .actions-responsive a {
            padding: 6px 10px !important;
        }
        /* Icons responsive */
        .actions-responsive i {
            font-size: 1.3rem !important;
        }
}


/*--buissnes index--*/
/* Desktop normal look */
.location-table td, .location-table th {
    vertical-align: middle;
}

/* ---------- MOBILE CARD VIEW ---------- */
@media (max-width: 768px) {
    /* Hide header completely */
    .location-table thead {
        display: none !important;
    }
    /* Each row turns into card */
    .location-table tbody tr {
        display: block;
        background: #fff;
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 15px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.06);
        border: 1px solid #eee;
    }
        /* Each cell becomes label + value */
        .location-table tbody tr td {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
            font-size: 1rem;
            border: none !important;
        }

            .location-table tbody tr td::before {
                content: attr(data-label);
                font-weight: 600;
                color: #666;
                padding-right: 10px;
            }
    /* Actions full width */
    .actions-responsive {
        justify-content: flex-end !important;
        margin-top: 12px;
        gap: 10px;
    }

        .actions-responsive a {
            padding: 6px 10px !important;
        }

        .actions-responsive i {
            font-size: 1.3rem !important;
        }
}

/*--deletion index--*/
@media (max-width: 768px) {

    table thead {
        display: none;
    }

    table tbody tr {
        display: block;
        background: #fff;
        border-radius: 10px;
        border: 1px solid #ddd;
        margin-bottom: 15px;
        padding: 10px;
    }

        table tbody tr td {
            display: flex;
            justify-content: space-between;
            padding: 8px 5px;
            border: none !important;
        }

            table tbody tr td:before {
                content: attr(data-label);
                font-weight: bold;
                flex-basis: 45%;
                color: #333;
            }

    .actions-responsive a {
        margin: 2px;
    }
}

@media (max-width: 768px) {
    dl.row dt {
        font-size: 14px;
    }

    dl.row dd {
        font-size: 14px;
    }
}

/*--Customization idex--*/
@media (max-width: 768px) {

    table thead {
        display: none;
    }

    table tbody tr {
        display: block;
        background: #fff;
        border-radius: 10px;
        border: 1px solid #ddd;
        margin-bottom: 15px;
        padding: 10px;
    }

        table tbody tr td {
            display: flex;
            justify-content: space-between;
            padding: 8px 5px;
            border: none !important;
        }

            table tbody tr td:before {
                content: attr(data-label);
                font-weight: bold;
                flex-basis: 45%;
                color: #333;
            }

    .actions-responsive a {
        margin: 2px;
    }
}
/*--BarCode Index--*/
@media (max-width: 768px) {

    table thead {
        display: none;
    }

    table tbody tr {
        display: block;
        background: #fff;
        border-radius: 10px;
        border: 1px solid #ddd;
        margin-bottom: 15px;
        padding: 10px;
    }

        table tbody tr td {
            display: flex;
            justify-content: space-between;
            padding: 8px 5px;
            border: none !important;
        }

            table tbody tr td:before {
                content: attr(data-label);
                font-weight: bold;
                flex-basis: 45%;
                color: #333;
            }

    .actions-responsive a {
        margin: 2px;
    }
}

#unsavedModal .modal-dialog {
    margin-top: 200px;
}
@media (max-width: 768px) {
    #unsavedModal .modal-dialog {
        margin-top: 100px;
    }
}


/* =========================================================
   GLOBAL PAGE LOADER
   ========================================================= */

#page-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

    /* Smooth hide animation */
    #page-loader.fade-out {
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease, visibility .3s ease;
    }

/* =========================================================
   THREE BODY LOADER (Uiverse)
   ========================================================= */

.three-body {
    --uib-size: 35px;
    --uib-speed: 0.8s;
    --uib-color: #435ebe; /* primary color */

    position: relative;
    display: inline-block;
    height: var(--uib-size);
    width: var(--uib-size);
    animation: spin78236 calc(var(--uib-speed) * 2.5) infinite linear;
}

.three-body__dot {
    position: absolute;
    height: 100%;
    width: 30%;
}

    .three-body__dot::after {
        content: '';
        position: absolute;
        height: 0%;
        width: 100%;
        padding-bottom: 100%;
        background-color: var(--uib-color);
        border-radius: 50%;
    }

    /* Dot 1 */
    .three-body__dot:nth-child(1) {
        bottom: 5%;
        left: 0;
        transform: rotate(60deg);
        transform-origin: 50% 85%;
    }

        .three-body__dot:nth-child(1)::after {
            bottom: 0;
            left: 0;
            animation: wobble1 var(--uib-speed) infinite ease-in-out;
            animation-delay: calc(var(--uib-speed) * -0.3);
        }

    /* Dot 2 */
    .three-body__dot:nth-child(2) {
        bottom: 5%;
        right: 0;
        transform: rotate(-60deg);
        transform-origin: 50% 85%;
    }

        .three-body__dot:nth-child(2)::after {
            bottom: 0;
            left: 0;
            animation: wobble1 var(--uib-speed) infinite ease-in-out;
            animation-delay: calc(var(--uib-speed) * -0.15);
        }

    /* Dot 3 */
    .three-body__dot:nth-child(3) {
        bottom: -5%;
        left: 0;
        transform: translateX(116.666%);
    }

        .three-body__dot:nth-child(3)::after {
            top: 0;
            left: 0;
            animation: wobble2 var(--uib-speed) infinite ease-in-out;
        }

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes spin78236 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes wobble1 {
    0%, 100% {
        transform: translateY(0%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateY(-66%) scale(0.65);
        opacity: 0.8;
    }
}

@keyframes wobble2 {
    0%, 100% {
        transform: translateY(0%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateY(66%) scale(0.65);
        opacity: 0.8;
    }
}




.select2-container--bootstrap-5 .select2-selection {
    min-height: 38px;
    border-radius: 8px;
    padding: 4px 8px;
}

.select2-container--bootstrap-5 .select2-selection__rendered {
    line-height: 28px;
}

.select2-container--bootstrap-5 .select2-selection__arrow {
    height: 36px;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-radius: 8px;
}
/* ================= Select2 Smooth Scroll ================= */

.select2-results__options {
    max-height: 260px; /* تحكم في الارتفاع */
    overflow-y: auto;
    scroll-behavior: smooth; /* ⭐ Smooth Scroll */
}

    /* تحسين شكل الـ scrollbar (اختياري لكن جميل) */
    .select2-results__options::-webkit-scrollbar {
        width: 6px;
    }

    .select2-results__options::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 6px;
    }

    .select2-results__options::-webkit-scrollbar-thumb {
        background-color: #c1c7d0;
        border-radius: 6px;
    }

        .select2-results__options::-webkit-scrollbar-thumb:hover {
            background-color: #9aa4b2;
        }


/*============================ Barcode Font ==================*/
@font-face {
    font-family: 'LibreBarcode128';
    src: url('/fonts/Barcode/LibreBarcode128-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.barcode-font {
    font-family: 'LibreBarcode128', monospace;
    font-size: 32px;
    letter-spacing: 2px;
    line-height: 1.2;
}
