﻿/* =========================================================
   CAMERA OVERVIEW PAGE - RADZEN CHART VERSION
   Put this at the VERY END of digifort-dashboard.css
========================================================= */

.df-camera-page {
    max-width: 1780px;
}

.df-camera-heading {
    margin-bottom: 24px;
}

.df-camera-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(170px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.df-camera-kpi-card {
    min-height: 156px;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%), var(--df-card);
    border: 1px solid var(--df-border);
    box-shadow: var(--df-shadow);
    color: var(--df-text);
    overflow: hidden;
}

.df-camera-kpi-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.df-camera-kpi-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 22px;
    background: rgba(24, 214, 232, 0.12);
    color: var(--df-primary);
}

    .df-camera-kpi-icon.cyan {
        background: rgba(24, 214, 232, 0.12);
        color: var(--df-primary);
    }

    .df-camera-kpi-icon.blue {
        background: rgba(38, 140, 255, 0.13);
        color: var(--df-blue);
    }

    .df-camera-kpi-icon.purple {
        background: rgba(139, 92, 246, 0.14);
        color: var(--df-purple);
    }

    .df-camera-kpi-icon.red {
        background: rgba(239, 68, 68, 0.14);
        color: var(--df-red);
    }

.df-camera-kpi-copy {
    min-width: 0;
}

.df-camera-kpi-title {
    font-size: 13px;
    color: var(--df-muted);
    margin-bottom: 4px;
}

.df-camera-kpi-value {
    font-size: 30px;
    line-height: 1.1;
    font-weight: 850;
    color: var(--df-text);
}

.df-camera-positive {
    margin-top: 10px;
    color: var(--df-success);
    font-size: 13px;
}

.df-camera-primary-text {
    margin-top: 10px;
    color: var(--df-primary);
    font-size: 13px;
}

.df-camera-muted {
    margin-top: 10px;
    color: var(--df-muted);
    font-size: 13px;
}

.df-camera-warning {
    margin-top: 10px;
    color: var(--df-warning);
    font-size: 13px;
}

.df-camera-danger {
    margin-top: 10px;
    color: var(--df-danger);
    font-size: 13px;
}

.df-camera-kpi-footer {
    margin-top: 30px;
    color: var(--df-primary);
    font-size: 13px;
}

.df-camera-spark {
    height: 48px;
    margin-top: 16px;
    overflow: hidden;
}

/* Radzen chart global inside camera page */

.df-camera-page .rz-chart {
    background: transparent !important;
}

    .df-camera-page .rz-chart svg {
        overflow: visible;
    }

    .df-camera-page .rz-chart text {
        fill: var(--df-muted) !important;
        font-family: Inter, "Segoe UI", sans-serif !important;
    }

.df-camera-spark .rz-chart .rz-axis,
.df-camera-spark .rz-chart .rz-grid-line,
.df-camera-spark .rz-chart text {
    display: none !important;
}

.df-camera-spark .rz-chart {
    margin: -10px -8px 0;
}

/* main cards */

.df-camera-top-grid {
    display: grid;
    /*grid-template-columns: 0.92fr 1.18fr 1.18fr;*/
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px;
    margin-bottom: 18px;
}

.df-camera-bottom-grid {
    display: grid;
    /*grid-template-columns: minmax(0, 2.35fr) minmax(320px, 0.65fr);*/
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px;
    /*align-items: start;*/
}

.df-camera-list-grid {
    display: grid;
    gap: 18px;
    align-items: start;
    padding-top:20px;
}
.df-camera-side {
    display: grid;
    gap: 18px;
}

.df-camera-card {
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%), var(--df-card);
    border: 1px solid var(--df-border);
    box-shadow: var(--df-shadow);
    color: var(--df-text);
    overflow: hidden;
}

.df-camera-card-header {
    min-height: 58px;
    padding: 18px 20px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

    .df-camera-card-header h3 {
        margin: 0;
        font-size: 17px;
        font-weight: 800;
        color: var(--df-text);
    }

.df-camera-card-body {
    padding: 12px 20px 20px;
}

.df-camera-light-btn,
.df-camera-square-btn {
    border-radius: 12px !important;
    background: rgba(148, 163, 184, 0.06) !important;
    border: 1px solid var(--df-border) !important;
    color: var(--df-text) !important;
    box-shadow: none !important;
}

.df-camera-add-btn {
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--df-primary), var(--df-blue)) !important;
    border: 0 !important;
    color: white !important;
    box-shadow: none !important;
}

/* donut sections */

.df-camera-donut-layout {
    min-height: 300px;
    display: grid;
    grid-template-columns: minmax(180px, 0.9fr) minmax(220px, 1fr);
    align-items: center;
    gap: 22px;
}

.df-camera-chart-box {
    min-width: 0;
}

.df-chart-center-title {
    text-align: center;
    color: var(--df-text);
}

    .df-chart-center-title strong {
        display: block;
        font-size: 30px;
        line-height: 1;
        font-weight: 900;
        color: var(--df-text);
    }

    .df-chart-center-title span {
        display: block;
        margin-top: 6px;
        font-size: 12px;
        color: var(--df-muted);
    }

.df-camera-legend {
    display: grid;
    gap: 20px;
}

.df-camera-legend-row {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    align-items: center;
    gap: 12px;
    color: var(--df-text);
    font-size: 14px;
}

    .df-camera-legend-row strong {
        color: var(--df-text);
        font-weight: 750;
    }

.df-camera-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

    .df-camera-dot.green {
        background: var(--df-success);
    }

    .df-camera-dot.cyan {
        background: var(--df-primary);
    }

    .df-camera-dot.blue {
        background: var(--df-blue);
    }

    .df-camera-dot.purple {
        background: var(--df-purple);
    }

    .df-camera-dot.orange {
        background: #fb7a4b;
    }

    .df-camera-dot.slate {
        background: var(--df-muted-2);
    }

.df-camera-column-chart {
    padding-top: 4px;
}

/* table */

.df-camera-list-card {
    min-height: 560px;
}

.df-camera-list-header {
    align-items: center;
}

.df-camera-table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.df-camera-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 20px 10px;
}

.df-camera-quick-filter {
    border-radius: 999px !important;
    border: 1px solid var(--df-border, var(--df-card-border)) !important;
    background: rgba(148, 163, 184, 0.06) !important;
    color: var(--df-muted) !important;
}

.df-camera-quick-filter.active {
    background: rgba(24, 214, 232, 0.14) !important;
    border-color: rgba(24, 214, 232, 0.45) !important;
    color: var(--df-primary) !important;
}

.df-camera-search {
    width: 260px;
}

.df-camera-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.df-camera-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
}

    .df-camera-table th,
    .df-camera-table td {
        padding: 14px 12px;
        border-bottom: 1px solid var(--df-line);
        color: var(--df-text);
        font-size: 13px;
        vertical-align: middle;
    }

    .df-camera-table th {
        background: rgba(148, 163, 184, 0.06);
        color: var(--df-muted);
        font-weight: 700;
        text-align: left;
    }

    .df-camera-table .check-col {
        width: 42px;
        text-align: center;
    }

    .df-camera-table .action-col {
        width: 112px;
    }

.df-camera-name {
    font-weight: 750;
    color: var(--df-text);
}

.df-camera-name-previewable {
    color: var(--df-primary);
    cursor: pointer;
    text-underline-offset: 3px;
}

    .df-camera-name-previewable:hover {
        text-decoration: underline;
    }

.df-camera-preview-popover {
    position: fixed;
    z-index: 10000;
    width: min(340px, calc(100vw - 24px));
    border-radius: 14px;
    border: 1px solid rgba(24, 214, 232, .34);
    background: rgba(7, 16, 29, .96);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .38);
    color: var(--df-text);
    overflow: hidden;
    pointer-events: none;
}

.df-camera-preview-header {
    padding: 10px 12px 8px;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}

    .df-camera-preview-header strong,
    .df-camera-preview-header span {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .df-camera-preview-header strong {
        font-size: 13px;
        color: #fff;
        font-weight: 850;
    }

    .df-camera-preview-header span {
        margin-top: 2px;
        font-size: 11px;
        color: var(--df-muted);
    }

.df-camera-preview-body {
    position: relative;
    background: #020617;
}

    .df-camera-preview-body video {
        display: block;
        width: 100%;
        height: 190px;
        object-fit: cover;
        background: #020617;
    }

.df-camera-preview-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(2, 6, 23, .72);
    color: #d8faff;
    font-size: 11px;
    font-weight: 800;
}

    .df-camera-preview-badge::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 999px;
        background: var(--df-success);
        box-shadow: 0 0 12px rgba(53, 208, 127, .7);
    }

.df-camera-status {
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 750;
}

    .df-camera-status span {
        width: 7px;
        height: 7px;
        border-radius: 999px;
    }

    .df-camera-status.active {
        background: rgba(34, 197, 94, 0.12);
        color: var(--df-success);
    }

        .df-camera-status.active span {
            background: var(--df-success);
        }

    .df-camera-status.inactive {
        background: rgba(139, 92, 246, 0.14);
        color: var(--df-purple);
    }

        .df-camera-status.inactive span {
            background: var(--df-purple);
        }

.df-camera-rec-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    margin-right: 7px;
    border-radius: 999px;
    background: var(--df-red);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.55);
}

.df-camera-storage-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 155px;
}

.df-camera-storage-bar {
    width: 82px;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    overflow: hidden;
}

    .df-camera-storage-bar div {
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, var(--df-primary), var(--df-blue));
    }

.df-camera-uptime {
    color: var(--df-success);
    font-weight: 700;
}

.df-camera-row-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

    .df-camera-row-actions .rz-button {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: var(--df-primary) !important;
    }

        .df-camera-row-actions .rz-button:disabled,
        .df-camera-row-actions .rz-button.rz-state-disabled {
            opacity: .38 !important;
            color: var(--df-muted) !important;
            cursor: not-allowed !important;
        }

.df-camera-grid-pager {
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid var(--df-border, var(--df-card-border));
    background: rgba(15, 31, 52, .72);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--df-muted);
}

.df-camera-grid-pager-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--df-text);
    font-weight: 800;
}

.df-camera-browsing-note {
    margin-left: 10px;
    color: var(--df-primary);
    font-weight: 800;
}

@media (max-width: 900px) {
    .df-camera-grid-pager {
        align-items: flex-start;
        flex-direction: column;
    }
}

.df-camera-table-footer {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 16px;
    color: var(--df-muted);
    font-size: 13px;
}

.df-camera-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .df-camera-pagination button {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        border: 1px solid var(--df-border);
        background: rgba(148, 163, 184, 0.06);
        color: var(--df-text);
    }

        .df-camera-pagination button.active {
            color: white;
            border-color: rgba(24, 214, 232, 0.55);
            background: rgba(24, 214, 232, 0.18);
        }

        .df-camera-pagination button:disabled {
            opacity: 0.45;
        }

.df-camera-page-size {
    width: 110px;
}


section:has(.df-camera-model-card):has(.df-camera-media-card) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px;
    align-items: stretch;
}

    section:has(.df-camera-model-card):has(.df-camera-media-card) > * {
        min-width: 0;
        height: 100%;
    }

section:has(.df-camera-model-card) > *,
section:has(.df-camera-media-card) > * {
    display: flex;
    flex-direction: column;
}
/* side cards */

.df-camera-storage-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    /*height:200px;*/
}

.df-camera-mini-ring {
    width: 112px;
    height: 112px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, var(--df-card) 0 56%, transparent 57%), conic-gradient(var(--df-primary) calc(var(--value) * 1%), rgba(148, 163, 184, 0.18) 0);
}

    .df-camera-mini-ring div {
        text-align: center;
    }

    .df-camera-mini-ring strong {
        display: block;
        font-size: 26px;
        line-height: 1;
        color: var(--df-text);
    }

    .df-camera-mini-ring span {
        margin-top: 4px;
        display: block;
        color: var(--df-muted);
        font-size: 12px;
    }

.df-camera-storage-metrics {
    display: grid;
    gap: 14px;
    /*flex: 1;*/
}

    .df-camera-storage-metrics div {
        display: flex;
        justify-content: space-between;
        gap: 18px;
        color: var(--df-muted);
        font-size: 14px;
    }

    .df-camera-storage-metrics strong {
        color: var(--df-text);
        font-weight: 800;
    }

.df-camera-inner-link {
    margin: 18px -20px -20px;
    padding: 14px 20px;
    border-top: 1px solid var(--df-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--df-primary);
    font-size: 14px;
}

.df-camera-health-list {
    display: grid;
    gap: 14px;
}

    .df-camera-health-list > div {
        display: grid;
        grid-template-columns: 30px 1fr auto;
        align-items: center;
        gap: 12px;
        color: var(--df-text);
        font-size: 14px;
    }

    .df-camera-health-list strong {
        color: var(--df-text);
    }

.df-camera-alert {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
}

    .df-camera-alert.red {
        background: rgba(239, 68, 68, 0.14);
        color: var(--df-red);
    }

    .df-camera-alert.amber {
        background: rgba(245, 158, 11, 0.16);
        color: var(--df-amber);
    }

    .df-camera-alert.green {
        background: rgba(34, 197, 94, 0.14);
        color: var(--df-success);
    }


/*Center Text*/
.df-camera-radzen-donut {
    width: 150px;
    height: 150px;
    flex: 0 0 150px;
}

.df-camera-donut-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    color: var(--df-text);
}

    .df-camera-donut-center strong {
        font-size: 28px;
        font-weight: 800;
        color: #f8fafc;
    }

    .df-camera-donut-center span {
        margin-top: 6px;
        font-size: 13px;
        color: #9ca3af;
    }

    /*Health*/
.df-camera-health-card {
    min-height: 320px;
}

.df-camera-health-list {
    display: flex;
    flex-direction: column;
    
    padding: 18px;
}

.df-camera-health-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;
}

.df-camera-health-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
}

    .df-camera-health-icon .rz-icon {
        font-size: 26px;
    }

.df-camera-health-title {
    color: var(--df-text);
    font-size: 15px;
    font-weight: 400;
    /*line-height: 1;*/
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 14px;
}

.df-camera-health-count {
    justify-self: end;
    min-width: 36px;
    text-align: right;
    color: #f8fafc;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.df-camera-health-icon.danger {
    color: #f87171;
    background: rgba(239, 68, 68, .16);
}

.df-camera-health-icon.warning {
    color: #fbbf24;
    background: rgba(245, 158, 11, .16);
}

.df-camera-health-icon.success {
    color: #5ee37a;
    background: rgba(34, 197, 94, .15);
}

.df-camera-health-icon.blue {
    color: var(--df-blue);
    background: rgba(38, 140, 255, 0.13);
}



/* Responsive */

/* =========================================================
   CAMERA OVERVIEW - FINAL RESPONSIVE OVERRIDES
   Keep this at the very end of camera-overview.css
========================================================= */
@media (max-width: 1500px) {
    .df-camera-page .df-camera-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .df-camera-page .df-camera-top-grid,
    .df-camera-page .df-camera-bottom-grid {
        grid-template-columns: 1fr !important;
    }

    section.df-camera-top-grid:has(.df-camera-model-card):has(.df-camera-media-card),
    section:has(.df-camera-model-card):has(.df-camera-media-card) {
        grid-template-columns: 1fr !important;
    }

    .df-camera-page .df-camera-side {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .df-camera-card {
        min-width: 0;
    }
}

@media (max-width: 992px) {
    .df-camera-page .df-camera-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .df-camera-page .df-camera-side {
        grid-template-columns: 1fr !important;
    }

    .df-camera-donut-layout {
        grid-template-columns: 1fr !important;
    }

    .df-camera-storage-summary {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px;
    }
}

@media (max-width: 640px) {
    .df-camera-page {
        max-width: 100%;
        overflow-x: hidden;
    }

        .df-camera-page .df-camera-kpi-grid,
        .df-camera-page .df-camera-top-grid,
        .df-camera-page .df-camera-bottom-grid,
        .df-camera-page .df-camera-side,
        section.df-camera-top-grid:has(.df-camera-model-card):has(.df-camera-media-card),
        section:has(.df-camera-model-card):has(.df-camera-media-card) {
            grid-template-columns: 1fr !important;
        }

    .df-camera-kpi-card,
    .df-camera-card {
        min-width: 0;
        width: 100%;
    }

    .df-camera-card-header {
        padding: 16px 16px 8px;
    }

    .df-camera-card-body {
        padding: 10px 16px 16px;
    }

    .df-camera-radzen-grid {
        min-width: 0 !important;
        width: 100%;
        padding: 12px;
        overflow-x: auto;
    }

    .df-camera-list-card .rz-data-grid,
    .df-camera-list-card .rz-datatable-scrollable-wrapper,
    .df-camera-list-card .rz-grid-table {
        max-width: 100%;
    }

    .df-camera-table-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .df-camera-search {
        width: 100% !important;
    }
}



.df-camera-radzen-grid {
    background: transparent;
    border: none;
    color: #e5edf7;
    min-width: 980px;
    padding:20px;
}

    /*.df-camera-radzen-grid .rz-data-grid {
        background: transparent;
        border: none;
    }

    .df-camera-radzen-grid .rz-grid-table {
        background: transparent;
        border-collapse: separate;
        border-spacing: 0;
    }

        .df-camera-radzen-grid .rz-grid-table thead th {
            background: rgba(31, 42, 59, .92);
            color: #9ca3af;
            font-size: 13px;
            font-weight: 800;
            border: none;
            padding: 18px 18px;
        }

        .df-camera-radzen-grid .rz-grid-table tbody td {
            background: transparent;
            color: #e5edf7;
            border-bottom: 1px solid rgba(148, 163, 184, .12);
            padding: 18px 18px;
            font-size: 14px;
            vertical-align: middle;
        }

        .df-camera-radzen-grid .rz-grid-table tbody tr:hover td {
            background: rgba(34, 211, 238, .04);
        }

    .df-camera-radzen-grid .rz-paginator {
        background: transparent;
        border: none;
        color: #9ca3af;
        padding-top: 18px;
    }

        .df-camera-radzen-grid .rz-paginator .rz-paginator-element {
            background: rgba(15, 23, 42, .55);
            border: 1px solid rgba(148, 163, 184, .16);
            color: #e5edf7;
            border-radius: 10px;
            margin: 0 3px;
        }

        .df-camera-radzen-grid .rz-paginator .rz-state-active {
            background: rgba(34, 211, 238, .16);
            border-color: rgba(34, 211, 238, .45);
            color: #67e8f9;
        }*/

.df-camera-list-card .rz-datatable-scrollable-wrapper,
.df-camera-list-card .rz-data-grid {
    overflow-x: auto;
}

.df-devices-loading-text {
    color: var(--df-muted);
    font-size: 12px;
    font-weight: 700;
}


@media (max-width: 900px) {
    .df-camera-kpi-grid {
        grid-template-columns: 1fr;
    }

    .df-camera-donut-layout {
        grid-template-columns: 1fr;
    }

    .df-camera-side {
        grid-template-columns: 1fr;
    }

    .df-camera-table-footer {
        grid-template-columns: 1fr;
    }

    .df-camera-table-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .df-camera-search {
        width: 100%;
    }
}

/* =========================================================
   CAMERA OVERVIEW - progressive loading actions and dialogs
========================================================= */

.df-camera-action-card {
    overflow: visible;
}

.df-camera-card-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.df-camera-kpi-detail-link {
    margin-top: 14px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--df-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.df-camera-kpi-detail-link:hover {
    color: var(--df-blue);
}

.df-camera-kpi-detail-link .rz-icon {
    font-size: 16px;
}

.df-camera-dialog {
    display: grid;
    gap: 18px;
    color: var(--df-text);
}

.df-camera-dialog.small {
    gap: 10px;
}

.df-camera-dialog p {
    margin: 0;
    color: var(--df-muted);
    line-height: 1.65;
}

.df-camera-dialog h4 {
    margin: 0 0 -6px;
    color: var(--df-text);
    font-size: 0.95rem;
    font-weight: 850;
}

.df-camera-dialog-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.df-camera-dialog-summary > div {
    min-height: 82px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--df-border);
    background: rgba(148, 163, 184, 0.06);
}

.df-camera-dialog-summary span,
.df-camera-dialog-summary em {
    display: block;
    color: var(--df-muted);
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 800;
}

.df-camera-dialog-summary strong {
    display: block;
    margin-top: 6px;
    color: var(--df-text);
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 900;
}

.df-camera-dialog-summary em {
    margin-top: 8px;
    color: var(--df-primary);
}

.df-camera-dialog-table-wrap {
    /*max-height: 360px;*/
    overflow: auto;
    border: 1px solid var(--df-border);
    border-radius: 16px;
}

.df-camera-dialog-table-wrap.compact {
    max-height: 260px;
}

.df-camera-dialog-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.df-camera-dialog-table th,
.df-camera-dialog-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--df-line);
    color: var(--df-text);
    font-size: 0.82rem;
    vertical-align: middle;
    white-space: nowrap;
}

.df-camera-dialog-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--df-card-strong);
    color: var(--df-muted);
    font-size: 0.76rem;
    font-weight: 850;
    text-align: left;
}

.df-camera-dialog-table td {
    background: rgba(15, 23, 42, 0.08);
}

.df-camera-dialog-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 850;
    white-space: nowrap;
}

.df-camera-dialog-pill.success {
    color: var(--df-success);
    background: rgba(34, 197, 94, 0.12);
}

.df-camera-dialog-pill.warning {
    color: var(--df-amber);
    background: rgba(245, 158, 11, 0.13);
}

.df-camera-dialog-pill.danger {
    color: var(--df-red);
    background: rgba(239, 68, 68, 0.13);
}

.df-camera-dialog-pill.muted {
    color: var(--df-muted);
    background: rgba(148, 163, 184, 0.10);
}

@media (max-width: 900px) {
    .df-camera-dialog-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .df-camera-dialog-summary {
        grid-template-columns: 1fr;
    }
}

.df-camera-status.disabled {
    background: rgba(148, 163, 184, 0.12);
    color: var(--df-muted);
}

.df-camera-status.disabled span {
    background: var(--df-muted);
}

.df-camera-status.unknown {
    background: rgba(100, 116, 139, 0.12);
    color: var(--df-muted-2);
}

.df-camera-status.unknown span {
    background: var(--df-muted-2);
}

.df-camera-dialog-server-row td {
    background: rgba(24, 214, 232, 0.10) !important;
    color: var(--df-text);
    font-weight: 850;
    letter-spacing: 0.01em;
}

.df-camera-dialog-server-row strong {
    display: inline-flex;
    align-items: center;
    color: var(--df-text);
    font-weight: 900;
}

.df-camera-dialog-server-row span {
    display: inline-flex;
    margin-left: 10px;
    color: var(--df-muted);
    font-size: 0.74rem;
    font-weight: 850;
}


.df-camera-dialog-grid {
    width: 100%;
}

.df-camera-dialog-server-grid-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

    .df-camera-dialog-server-grid-title strong {
        font-size: 0.9rem;
        font-weight: 800;
    }

    .df-camera-dialog-server-grid-title span {
        font-size: 0.78rem;
        opacity: 0.75;
    }

.df-camera-dialog-empty {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    opacity: 0.75;
}
