/* _content/ESmartCamera/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-4k4ozf9qg6] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-4k4ozf9qg6] {
    flex: 1;
}

.sidebar[b-4k4ozf9qg6] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-4k4ozf9qg6] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-4k4ozf9qg6]  a, .top-row[b-4k4ozf9qg6]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-4k4ozf9qg6]  a:hover, .top-row[b-4k4ozf9qg6]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-4k4ozf9qg6]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-4k4ozf9qg6] {
        justify-content: space-between;
    }

    .top-row[b-4k4ozf9qg6]  a, .top-row[b-4k4ozf9qg6]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-4k4ozf9qg6] {
        flex-direction: row;
    }

    .sidebar[b-4k4ozf9qg6] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-4k4ozf9qg6] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-4k4ozf9qg6]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-4k4ozf9qg6], article[b-4k4ozf9qg6] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-4k4ozf9qg6] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-4k4ozf9qg6] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/ESmartCamera/Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-vwljyuefgw] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-vwljyuefgw] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-vwljyuefgw] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-vwljyuefgw] {
    font-size: 1.1rem;
}

.bi[b-vwljyuefgw] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-vwljyuefgw] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-vwljyuefgw] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-vwljyuefgw] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-vwljyuefgw] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-vwljyuefgw] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-vwljyuefgw] {
        padding-bottom: 1rem;
    }

    .nav-item[b-vwljyuefgw]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-vwljyuefgw]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-vwljyuefgw]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-vwljyuefgw] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-vwljyuefgw] {
    display: block;
}

.nav-user[b-vwljyuefgw] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .5rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.nav-user__name[b-vwljyuefgw] {
    color: #d7d7d7;
    font-size: .85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user__logout[b-vwljyuefgw] {
    appearance: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: #d7d7d7;
    border-radius: 4px;
    padding: .3rem .6rem;
    font-size: .8rem;
    cursor: pointer;
    white-space: nowrap;
}

    .nav-user__logout:hover[b-vwljyuefgw] {
        background-color: rgba(255,255,255,0.1);
        color: white;
    }

@media (min-width: 641px) {
    .navbar-toggler[b-vwljyuefgw] {
        display: none;
    }

    .nav-scrollable[b-vwljyuefgw] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* _content/ESmartCamera/Components/Pages/Devices.razor.rz.scp.css */
.ec-page[b-y3lyu3dxwo] {
    padding: 1.5rem 2rem;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2430;
}

.ec-header[b-y3lyu3dxwo] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

    .ec-header h1[b-y3lyu3dxwo] {
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0;
    }

.ec-subtitle[b-y3lyu3dxwo] {
    color: #7c8494;
    margin: .25rem 0 0;
    font-size: .9rem;
}

/* ---- Buttons ---- */
.ec-btn[b-y3lyu3dxwo] {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 8px;
    padding: .55rem 1rem;
    font-size: .9rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    background: #fff;
    color: #1f2430;
}

.ec-btn--sm[b-y3lyu3dxwo] {
    padding: .4rem .75rem;
    font-size: .82rem;
}

.ec-btn--primary[b-y3lyu3dxwo] {
    background: #3b6df0;
    color: #fff;
}

    .ec-btn--primary:hover[b-y3lyu3dxwo] {
        background: #2f59d1;
    }

.ec-btn--outline[b-y3lyu3dxwo] {
    border-color: #3b6df0;
    color: #3b6df0;
    background: #fff;
}

    .ec-btn--outline:hover[b-y3lyu3dxwo] {
        background: #eef2ff;
    }

.ec-btn--ghost[b-y3lyu3dxwo] {
    background: transparent;
    color: #5b6272;
}

    .ec-btn--ghost:hover[b-y3lyu3dxwo] {
        background: #f1f2f5;
    }

.ec-btn--danger-outline[b-y3lyu3dxwo] {
    border-color: #e0435a;
    color: #e0435a;
    background: #fff;
}

    .ec-btn--danger-outline:hover[b-y3lyu3dxwo] {
        background: #fdeef0;
    }

.ec-icon[b-y3lyu3dxwo] {
    font-size: .95em;
    line-height: 1;
}

/* ---- Toolbar ---- */
.ec-toolbar[b-y3lyu3dxwo] {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ec-search[b-y3lyu3dxwo] {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid #e2e5eb;
    border-radius: 8px;
    padding: .5rem .8rem;
    min-width: 300px;
}

    .ec-search input[b-y3lyu3dxwo] {
        border: none;
        outline: none;
        flex: 1;
        font-size: .9rem;
        background: transparent;
    }

.ec-filter-group[b-y3lyu3dxwo] {
    display: flex;
    gap: .4rem;
}

.ec-chip[b-y3lyu3dxwo] {
    border: 1px solid #e2e5eb;
    background: #fff;
    color: #5b6272;
    border-radius: 999px;
    padding: .35rem .9rem;
    font-size: .82rem;
    cursor: pointer;
}

.ec-chip--active[b-y3lyu3dxwo] {
    background: #3b6df0;
    border-color: #3b6df0;
    color: #fff;
}

/* ---- Pending activation ---- */
.ec-pending[b-y3lyu3dxwo] {
    background: #fff8e8;
    border: 1px solid #f4d989;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
}

.ec-pending__title[b-y3lyu3dxwo] {
    font-weight: 700;
    font-size: .9rem;
    color: #8a6100;
    margin-bottom: .7rem;
}

.ec-pending__list[b-y3lyu3dxwo] {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.ec-pending__item[b-y3lyu3dxwo] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #f0e2b2;
    border-radius: 8px;
    padding: .6rem .9rem;
}

.ec-pending__imei[b-y3lyu3dxwo] {
    font-weight: 600;
    font-size: .88rem;
}

.ec-pending__meta[b-y3lyu3dxwo] {
    font-size: .76rem;
    color: #9aa0a6;
}

/* ---- Grid & cards ---- */
.ec-empty[b-y3lyu3dxwo] {
    text-align: center;
    color: #9aa0a6;
    padding: 3rem 1rem;
}

.ec-empty__icon[b-y3lyu3dxwo] {
    font-size: 2rem;
    margin-bottom: .5rem;
}

.ec-grid[b-y3lyu3dxwo] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1rem;
}

.ec-card[b-y3lyu3dxwo] {
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 1px 2px rgba(20, 22, 30, .04);
    transition: box-shadow .15s ease, transform .15s ease;
}

    .ec-card:hover[b-y3lyu3dxwo] {
        box-shadow: 0 8px 20px rgba(20, 22, 30, .09);
        transform: translateY(-1px);
    }

.ec-card__top[b-y3lyu3dxwo] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .35rem;
}

.ec-card__plate[b-y3lyu3dxwo] {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .3px;
}

.ec-card__name[b-y3lyu3dxwo] {
    font-size: .88rem;
    color: #444;
    margin-bottom: .1rem;
}

.ec-card__imei[b-y3lyu3dxwo] {
    font-size: .78rem;
    color: #9aa0a6;
    margin-bottom: .7rem;
}

/* status pill (reused in card + form) */
.ec-status[b-y3lyu3dxwo] {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .74rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 999px;
}

.ec-status__dot[b-y3lyu3dxwo] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.ec-status--active[b-y3lyu3dxwo] {
    background: #e4f8ea;
    color: #1a9146;
}

.ec-status--maintenance[b-y3lyu3dxwo] {
    background: #fff4de;
    color: #b9720b;
}

.ec-status--inactive[b-y3lyu3dxwo] {
    background: #f0f1f3;
    color: #767c88;
}

.ec-card__cams[b-y3lyu3dxwo] {
    display: flex;
    gap: .45rem;
    margin-bottom: .8rem;
    flex-wrap: wrap;
}

.ec-cam-pill[b-y3lyu3dxwo] {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .72rem;
    font-weight: 600;
    color: #7c8494;
    background: #f4f5f7;
    padding: .25rem .55rem;
    border-radius: 999px;
}

    .ec-cam-pill small[b-y3lyu3dxwo] {
        font-weight: 700;
        opacity: .8;
    }

.ec-cam-pill--live[b-y3lyu3dxwo] {
    background: #e8f9ee;
    color: #1a9146;
}

.ec-cam-pill__dot[b-y3lyu3dxwo] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c3c7cf;
}

.ec-cam-pill--live .ec-cam-pill__dot[b-y3lyu3dxwo] {
    background: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, .25);
}

.ec-card__meta[b-y3lyu3dxwo] {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    font-size: .74rem;
    color: #9aa0a6;
    margin-bottom: .9rem;
}

.ec-card__actions[b-y3lyu3dxwo] {
    display: flex;
    gap: .5rem;
}

/* ---- Drawer (thay cho modal, tránh đụng class .modal-backdrop của Bootstrap) ---- */
.ec-overlay[b-y3lyu3dxwo] {
    position: fixed;
    inset: 0;
    background: rgba(15, 17, 23, .45);
    z-index: 1000;
}

.ec-drawer[b-y3lyu3dxwo] {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 400px;
    max-width: 92vw;
    background: #fff;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 30px rgba(0, 0, 0, .15);
    animation: ec-slide-in .18s ease-out;
}

@@keyframes ec-slide-in {
    from[b-y3lyu3dxwo] {
        transform: translateX(100%);
    }

    to[b-y3lyu3dxwo] {
        transform: translateX(0);
    }
}

.ec-drawer__header[b-y3lyu3dxwo] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.3rem;
    border-bottom: 1px solid #eceef2;
}

    .ec-drawer__header h3[b-y3lyu3dxwo] {
        margin: 0;
        font-size: 1.1rem;
    }

.ec-drawer__close[b-y3lyu3dxwo] {
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #9aa0a6;
    cursor: pointer;
}

.ec-drawer__body[b-y3lyu3dxwo] {
    padding: 1.1rem 1.3rem;
    overflow-y: auto;
    flex: 1;
}

.ec-drawer__footer[b-y3lyu3dxwo] {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 1rem 1.3rem;
    border-top: 1px solid #eceef2;
}

.ec-spacer[b-y3lyu3dxwo] {
    flex: 1;
}

.ec-label[b-y3lyu3dxwo] {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #444;
    margin: 1rem 0 .35rem;
}

.ec-required[b-y3lyu3dxwo] {
    color: #e0435a;
}

.ec-input[b-y3lyu3dxwo] {
    width: 100%;
    border: 1px solid #e2e5eb;
    border-radius: 8px;
    padding: .55rem .7rem;
    font-size: .9rem;
    box-sizing: border-box;
    outline: none;
}

    .ec-input:focus[b-y3lyu3dxwo] {
        border-color: #3b6df0;
    }

    .ec-input:disabled[b-y3lyu3dxwo] {
        background: #f7f7f8;
        color: #9aa0a6;
    }

.ec-textarea[b-y3lyu3dxwo] {
    min-height: 70px;
    resize: vertical;
}

.ec-hint[b-y3lyu3dxwo] {
    font-size: .74rem;
    color: #9aa0a6;
    margin-top: .3rem;
}

.ec-radio-group[b-y3lyu3dxwo] {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.ec-radio-group--inline[b-y3lyu3dxwo] {
    flex-direction: row;
    gap: 1.25rem;
}

.ec-radio[b-y3lyu3dxwo] {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
}

.ec-error[b-y3lyu3dxwo] {
    margin-top: 1rem;
    background: #fdeef0;
    color: #c8283f;
    padding: .55rem .7rem;
    border-radius: 8px;
    font-size: .85rem;
}
