﻿
.button-9 {
    appearance: button;
    backface-visibility: hidden;
    background-color: #405cf5;
    border-radius: 6px;
    border-width: 0;
    box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset,rgba(50, 50, 93, .1) 0 2px 5px 0,rgba(0, 0, 0, .07) 0 1px 1px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-family: -apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Ubuntu,sans-serif;
    font-size: 100%;
    height: 44px;
    line-height: 1.15;
    margin: 12px 0 0;
    outline: none;
    overflow: hidden;
    padding: 0 25px;
    position: relative;
    text-align: center;
    text-transform: none;
    transform: translateZ(0);
    transition: all .2s,box-shadow .08s ease-in;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    }

.button-9:disabled {
    cursor: default;
}

.button-9:focus {
    box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset, rgba(50, 50, 93, .2) 0 6px 15px 0, rgba(0, 0, 0, .1) 0 2px 2px 0, rgba(50, 151, 211, .3) 0 0 0 4px;
}

.button-sub {
    font-size: 14px;
    font-family: Arial;
    width: 140px;
    height: 40px;
    border-width: 1px;
    color: #333;
    border-color: rgba(50, 50, 93, .1);
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

    .button-sub:hover {
        background: linear-gradient(#f6f6f6, #ffffff);
    }

:root {
    --font-ui: ui-sans-serif;
    --pb-green: #22c55e;
    --pb-green-dark: #16a34a;
    --pb-track: #eef2f7;
    --pb-text: #0f172a;
    --pb-muted: #64748b;
    --card-bg: #ffffff;
    --card-bd: #e5e7eb;
    --card-shadow: 0 10px 25px rgba(2, 6, 23, .06), 0 4px 10px rgba(2, 6, 23, .04);
}

.progress-card {
    background: var(--card-bg);
    border: 1px solid var(--card-bd);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 16px 16px 14px;
}

.progress-card__head {
    margin-bottom: 12px;
}

.progress-card__title {
    font-weight: 700;
    color: var(--pb-text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: .2px;
}

.icon-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--pb-green);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, .15);
    display: inline-block;
}

.progress-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-weight: 600;
    border-radius: 999px;
    color: #065f46;
    background: rgba(16, 185, 129, .14);
    border: 1px solid rgba(16, 185, 129, .25);
}

/* Mô tả nhỏ dưới thanh tiến trình */
.progress-hint {
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--pb-muted);
}

/* ====== PROGRESS BAR (Telerik) ====== */
/* Track nền */
.RadProgressBar .rpbTrack {
    background: var(--pb-track);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(2, 6, 23, .06);
}

/* Giá trị đã chạy */
.RadProgressBar.pb-success .rpbStateSelected,
.RadProgressBar.pb-success .rpbValue {
    background: linear-gradient(180deg, var(--pb-green) 0%, var(--pb-green-dark) 100%) !important;
    color: #fff;
}

/* Stripe chuyển động */
.pb-animated .rpbStateSelected,
.pb-animated .rpbValue {
    position: relative;
    isolation: isolate;
}

    .pb-animated .rpbStateSelected::after,
    .pb-animated .rpbValue::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(45deg, rgba(255,255,255,.28) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.28) 75%, transparent 75%, transparent);
        background-size: 1rem 1rem;
        animation: pbStripes 1s linear infinite;
        mix-blend-mode: screen;
        pointer-events: none;
        border-radius: inherit;
    }

/* Bo góc mượt */
.RadProgressBar.pb-animated,
.RadProgressBar.pb-animated .rpbTrack {
    border-radius: 999px;
    overflow: hidden;
}

/* Label trên thanh */
.RadProgressBar .rpbLabel {
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(0,0,0,.12);
}

/* Kích thước nhỏ gọn */
.pb-sm {
    height: 18px;
}

    .pb-sm .rpbStateSelected, .pb-sm .rpbValue, .pb-sm .rpbTrack {
        height: 100% !important;
    }

/* Focus/hover để thân thiện bàn phím/chuột */
.RadProgressBar:focus-visible {
    outline: 3px solid rgba(34,197,94,.35);
    outline-offset: 2px;
}

.RadProgressBar:hover .rpbStateSelected,
.RadProgressBar:hover .rpbValue {
    filter: brightness(1.02);
}

/* Giảm chuyển động cho người dùng không thích animation */
@media (prefers-reduced-motion: reduce) {
    .pb-animated .rpbStateSelected::after,
    .pb-animated .rpbValue::after {
        animation: none;
    }
}

@keyframes pbStripes {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 1rem 0;
    }
}

/* ====== FALLBACK CHO RENDER CŨ (không Lightweight) ====== */
.pb-success .rpbValue {
    background-color: var(--pb-green);
    color: #fff;
}

.pb-animated .rpbValue {
    background-image: linear-gradient(45deg, rgba(255,255,255,.25) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.25) 50%, rgba(255,255,255,.25) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    animation: pbStripes 1s linear infinite;
    border-radius: 999px;
    overflow: hidden;
}
/* ====== TIÊU ĐỀ KHU VỰC ====== */
.table-title {
    margin: 12px 0 8px;
    font-weight: 800;
    color: #0f172a;
}

/* ====== RADGRID THEME (nhẹ, rõ) ====== */
.rg-elevated {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(2,6,23,.06), 0 4px 10px rgba(2,6,23,.04);
    overflow: hidden;
}

.rg-compact .rgMasterTable,
.rg-compact .rgAltRow td,
.rg-compact .rgRow td,
.rg-compact .rgHeader,
.rg-compact .rgRow,
.rg-compact .rgAltRow {
    font-size: 13.5px;
}

.rg-compact .rgHeader {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: .2px;
    border-bottom: 1px solid #e5e7eb;
}

.rg-compact .rgRow td,
.rg-compact .rgAltRow td {
    border-color: #f1f5f9;
    padding: 10px 12px;
}

.rg-compact .rgAltRow {
    background: #fcfdff;
}

    .rg-compact .rgRow:hover td,
    .rg-compact .rgAltRow:hover td {
        background: #f6fffb;
    }

/* Mono cho cột ID */
.cell-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12.5px;
    color: #334155;
}

/* Ellipsis cho tên file (tooltip ở title) */
.cell-ellipsis {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1; /* 1 dòng, chỉnh 2 nếu muốn */
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

/* Badge “mềm” cho loại dữ liệu */
.badge-soft {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #e0e7ff;
}

/* Status pill có màu theo data-status (dùng raw Status) */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid transparent;
    white-space: nowrap;
}

    .status-pill::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: currentColor;
        box-shadow: 0 0 0 4px rgba(2,6,23,.06);
    }

    /* Map màu theo status gốc trong DB (chuẩn hoá Upper) */
    .status-pill[data-status="SUCCESS"] {
        color: #15803d;
        background: rgba(22,163,74,.12);
        border-color: rgba(22,163,74,.28);
    }

    .status-pill[data-status="FAILED"],
    .status-pill[data-status="ERROR"] {
        color: #b91c1c;
        background: rgba(239,68,68,.12);
        border-color: rgba(239,68,68,.28);
    }

    .status-pill[data-status="JUST_ADDED"],
    .status-pill[data-status="PENDING"],
    .status-pill[data-status="QUEUED"] {
        color: #92400e;
        background: rgba(251,191,36,.16);
        border-color: rgba(251,191,36,.32);
    }

    .status-pill[data-status="PROCESSING"],
    .status-pill[data-status="RUNNING"],
    .status-pill[data-status="IN_PROGRESS"] {
        color: #155e75;
        background: rgba(56,189,248,.16);
        border-color: rgba(56,189,248,.32);
    }

/* Empty state */
.empty-state {
    padding: 24px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

    .empty-state .empty-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #22c55e;
        margin: 0 auto 8px;
        box-shadow: 0 0 0 8px rgba(34,197,94,.15);
    }

/* Pager gọn, bấm dễ */
.rgPager {
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

.rgNumPart a, .rgNumPart span {
    min-width: 28px;
    height: 28px;
    line-height: 28px;
    border-radius: 8px;
    /*  margin: 4px 2px;*/
    text-align: center;
    display: inline-block;
    font-weight: 600;
}

    .rgNumPart a:hover {
        background: #f1f5f9;
    }

.rgNumPart .rgCurrentPage {
    background: #e6f8ee;
    color: #14532d;
}
/* ==== FONT & WEIGHT OVERRIDES CHO RADGRID ==== */

/* 1) Chọn font UI cho toàn grid (cao hơn selector mặc định của Telerik) */
.RadGrid.rg-elevated,
.RadGrid.rg-elevated .rgMasterTable,
.RadGrid.rg-elevated .rgHeader,
.RadGrid.rg-elevated .rgRow td,
.RadGrid.rg-elevated .rgAltRow td {
    font-family: var(--font-ui), -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

    /* 2) Đậm tiêu đề cột */
    .RadGrid.rg-elevated .rgHeader {
        font-weight: 500; /* thử 700 nếu thấy dày quá */
        color: #0f172a;
    }

    /* 3) Đậm nội dung ô + dễ đọc hơn */
    .RadGrid.rg-elevated .rgRow td,
    .RadGrid.rg-elevated .rgAltRow td {
        font-weight: 600; /* tăng lên 700 nếu muốn đậm hơn nữa */
        color: #0f172a;
        line-height: 1.5;
    }

/* 4) Cột mono (ID) đậm hơn chút */
.cell-mono {
    font-weight: 700;
}

/* (tuỳ chọn) dùng !important nếu skin Telerik vẫn lấn:
.RadGrid.rg-elevated .rgRow td,
.RadGrid.rg-elevated .rgAltRow td { font-weight:600 !important; }
*/
