/*
 * Public, read-only panel demo.
 * The production dashboard stylesheet is loaded before this file on purpose:
 * these rules only provide the demo state and the small public-only labels.
 */

body.demo-body {
    overflow: hidden;
}

body.demo-body .shell {
    display: grid !important;
    visibility: visible !important;
    width: 100%;
    height: 100vh;
    min-height: 640px;
    max-width: 1600px;
    margin: 0 auto;
}

body.demo-body .shell.hidden {
    display: grid !important;
}

body.demo-body .sidebar,
body.demo-body .workspace,
body.demo-body .detail-panel {
    visibility: visible !important;
}

body.demo-body .sidebar-account-bar {
    display: none;
}

body.demo-body .demo-mode-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 2px;
    padding: 5px 9px;
    border: 1px solid rgba(241, 178, 74, 0.28);
    border-radius: 999px;
    color: var(--gold);
    background: rgba(241, 178, 74, 0.08);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.demo-mode-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(241, 178, 74, 0.12);
}

body.demo-body .demo-top-link {
    color: var(--cyan);
    border-color: rgba(30, 168, 199, 0.34);
    text-decoration: none;
}

body.demo-body .demo-top-link:hover {
    color: #fff;
}

body.demo-body .demo-top-link svg {
    color: var(--cyan);
}

body.demo-body .demo-disabled {
    cursor: not-allowed !important;
    opacity: 0.42;
}

body.demo-body .demo-disabled:hover {
    transform: none;
    box-shadow: none;
}

body.demo-body .inventory-row {
    cursor: default;
}

body.demo-body .inventory-row:hover {
    transform: none;
}

body.demo-body .inventory-row.active {
    cursor: default;
}

body.demo-body #asset-table-wrap {
    display: block;
}

body.demo-body #asset-table-wrap.hidden,
body.demo-body #activity-log-wrap.hidden {
    display: none !important;
}

body.demo-body .asset-search input,
body.demo-body #inventory-search {
    caret-color: var(--cyan);
}

body.demo-body .demo-table-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 32px 18px;
    padding: 9px 12px;
    border: 1px solid rgba(241, 178, 74, 0.2);
    border-radius: 9px;
    color: var(--muted);
    background: rgba(241, 178, 74, 0.045);
    font-size: 11px;
    line-height: 1.4;
}

body.demo-body .demo-table-note svg {
    width: 15px;
    height: 15px;
    flex: none;
    color: var(--gold);
}

body.demo-body .detail-demo-note {
    margin: 0 24px 20px;
    padding: 10px 11px;
    border: 1px solid rgba(30, 168, 199, 0.2);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(30, 168, 199, 0.05);
    font-size: 11px;
    line-height: 1.45;
}

body.demo-body .detail-demo-note strong {
    color: var(--cyan);
}

body.demo-body .detail-media a {
    display: block;
}

body.demo-body .detail-media img {
    display: block;
}

body.demo-body .detail-panel .demo-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

body.demo-body .detail-panel .demo-detail-actions .btn-subtle {
    margin-top: 0;
}

body.demo-body .detail-panel .demo-detail-actions label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    cursor: not-allowed;
    text-transform: none;
    letter-spacing: 0;
}

body.demo-body .detail-panel .demo-detail-actions input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--cyan);
}

body.demo-body .detail-panel .detail-media .demo-photo-caption {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

body.demo-body .detail-panel .field textarea,
body.demo-body .detail-panel .field input,
body.demo-body .detail-panel .field select {
    cursor: not-allowed;
}

body.demo-body .detail-panel .detail-empty {
    min-height: 100%;
}

body.demo-body .demo-activity-entry {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line-soft);
}

body.demo-body .demo-activity-entry:last-child {
    border-bottom: 0;
}

body.demo-body .demo-activity-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(30, 168, 199, 0.22);
    border-radius: 10px;
    color: var(--cyan);
    background: rgba(30, 168, 199, 0.07);
}

body.demo-body .demo-activity-icon svg {
    width: 16px;
    height: 16px;
}

body.demo-body .demo-activity-entry strong {
    display: block;
    color: var(--text);
    font-size: 13px;
}

body.demo-body .demo-activity-entry p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

body.demo-body .demo-activity-entry time {
    color: var(--faint);
    font-size: 11px;
    white-space: nowrap;
}

body.demo-body .demo-noscript {
    max-width: 760px;
    margin: 24px auto;
    padding: 16px;
    color: var(--text);
}

body.demo-body .demo-noscript a {
    color: var(--cyan);
}

@media (max-width: 1260px) {
    body.demo-body .shell {
        min-height: 0;
    }
}

@media (max-width: 991px) {
    body.demo-body {
        overflow: auto;
    }

    body.demo-body .shell {
        display: block !important;
        height: auto !important;
        min-height: 100dvh;
    }

    body.demo-body.inventory-selected .sidebar,
    body.demo-body.asset-selected .sidebar {
        display: none !important;
    }

    body.demo-body.inventory-selected .workspace,
    body.demo-body.asset-selected .workspace {
        display: flex !important;
    }

    body.demo-body:not(.inventory-selected) .workspace {
        display: none !important;
    }

    body.demo-body .demo-mode-label {
        display: none;
    }

    body.demo-body .demo-table-note {
        margin: 0 12px 12px;
    }
}

@media (max-width: 620px) {
    body.demo-body .demo-top-link {
        display: none;
    }

    body.demo-body .demo-activity-entry {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    body.demo-body .demo-activity-entry time {
        grid-column: 2;
    }
}
