/*
 * انتخابگرِ ساعت (هم‌سان با داشبورد) — پشتیبانی از 24:00
 * روی هر input با کلاسِ .lab-time فعال می‌شود.
 */
.lab-time {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='%238a93a3' stroke-width='1.6' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 8px center;
    padding-left: 28px !important;
}

.lab-tp {
    position: fixed;
    z-index: 3000;
    width: 230px;
    background: #fff;
    border: 1px solid #e7ebf1;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(20, 40, 80, .18);
    overflow: hidden;
    display: none;
}

.lab-tp.open { display: block; }

.lab-tp__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: linear-gradient(241deg, #2395FF -18%, #024685 110%);
    color: #fff;
}

.lab-tp__head small { font-size: 12px; opacity: .85; }
.lab-tp__val { font-size: 18px; font-weight: 700; letter-spacing: 1px; direction: ltr; }

.lab-tp__cols { display: flex; height: 188px; direction: ltr; }

.lab-tp__col { flex: 1; overflow-y: auto; padding: 6px; scrollbar-width: thin; }
.lab-tp__col + .lab-tp__col { border-left: 1px solid #f1f3f6; }

.lab-tp__label {
    position: sticky;
    top: 0;
    background: #fff;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #9aa3b2;
    padding: 4px 0 6px;
}

.lab-tp__opt {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #44506a;
    cursor: pointer;
    direction: ltr;
    transition: .12s;
}

.lab-tp__opt:hover { background: #eef4ff; color: #0b6bd3; }
.lab-tp__opt:focus { outline: none; }
.lab-tp__opt.sel { background: linear-gradient(241deg, #2395FF -18%, #024685 130%); color: #fff; }
.lab-tp__opt[disabled] { opacity: .3; cursor: not-allowed; }

.lab-tp__foot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #f1f3f6; }

.lab-tp__btn {
    flex: 1;
    border: none;
    border-radius: 9px;
    padding: 9px 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.lab-tp__btn.clear { background: #f1f3f6; color: #5b6577; }
.lab-tp__btn.done { background: #16a34a; color: #fff; }
.lab-tp__btn:focus { outline: none; }

.lab-tp__backdrop {
    position: fixed;
    inset: 0;
    z-index: 2999;
    background: transparent;
    display: none;
}

.lab-tp__backdrop.open { display: block; }

@media (max-width: 575.98px) {
    .lab-tp {
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        bottom: 0 !important;
        transform: translateX(-50%);
        width: 100%;
        max-width: 420px;
        border-radius: 18px 18px 0 0;
    }

    .lab-tp__backdrop.open { background: rgba(15, 23, 42, .35); }
    .lab-tp__cols { height: 40vh; }
}
