/* Public live demo inside the real dashboard frame (demo/partials/preview-kit.blade.php). */
.wz-demo-bar { display: none; margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: #eef4ff; border: 1px solid #bfd3fb; color: #0f1b34; }
.wz-demo-bar.is-ready { display: block; }
.wz-demo-bar__main { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.wz-demo-bar__ic { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; display: grid; place-items: center; background: #1d4ed8; color: #fff; }
.wz-demo-bar__txt { flex: 1 1 260px; min-width: 0; }
.wz-demo-bar__txt b { display: block; font-size: 1rem; color: #0b1f44; }
.wz-demo-bar__txt span { font-size: .9rem; color: #3c4a63; }
.wz-demo-bar__cta { display: flex; flex-wrap: wrap; gap: 8px; }
.wz-demo-bar__btn { display: inline-flex; align-items: center; min-height: 40px; padding: .45rem .9rem; border-radius: 10px; border: 1px solid #bfd3fb;
    background: #fff; color: #1d4ed8; font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.wz-demo-bar__btn:hover, .wz-demo-bar__btn:focus-visible { background: #e2ebfd; color: #1d4ed8; text-decoration: none; }
.wz-demo-bar__btn--primary { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.wz-demo-bar__btn--primary:hover, .wz-demo-bar__btn--primary:focus-visible { background: #1e40af; color: #fff; }
.wz-demo-bar__roles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #bfd3fb; }
.wz-demo-bar__label { font-size: .82rem; font-weight: 700; color: #3c4a63; margin-right: 2px; }
.wz-demo-chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 34px; padding: .25rem .7rem; border-radius: 999px; border: 1px solid #cfdcf5;
    background: #fff; color: #0b1f44; font-size: .84rem; font-weight: 600; text-decoration: none; }
.wz-demo-chip:hover, .wz-demo-chip:focus-visible { border-color: #1d4ed8; color: #1d4ed8; text-decoration: none; }
.wz-demo-chip.is-active { background: #0b1f44; border-color: #0b1f44; color: #fff; }
.wz-demo-chip--ghost { background: transparent; }
.wz-demo-bar a:focus-visible, .wz-demo-iconbtn:focus-visible, .wz-demo-search:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; }

/* Demo table bits that the real pages draw with DataTables. */
.wz-demo-tabletitle { font-size: 1.05rem; font-weight: 800; color: #0b1f44; margin: 0 0 12px; }
.wz-demo-search { min-height: 38px; padding: .4rem .7rem; border: 1px solid #dfe5ef; border-radius: 10px; font: inherit; min-width: 0; flex: 1 1 160px; max-width: 260px; }
.wz-demo-table td, .wz-demo-table th { vertical-align: middle; }
.wz-demo-rowacts { white-space: nowrap; }
.wz-demo-iconbtn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid #dfe5ef; background: #fff; color: #3c4a63; cursor: pointer; }
.wz-demo-iconbtn:hover { background: #eef4ff; color: #1d4ed8; }
.wz-demo-count { margin: 10px 0 0; font-size: .85rem; color: #5f6b86; }
.wz-demo-formnote { margin: 6px 0 0; font-size: .85rem; color: #5f6b86; }
.wz-demo-toast { position: fixed; right: 16px; bottom: 16px; z-index: 2000; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 12px;
    background: #0b1f44; color: #fff; font-size: .9rem; box-shadow: 0 14px 34px rgba(11, 31, 68, .3); }
.wz-demo-toast { right: auto; left: 16px; }

@media (max-width: 575px) {
    .wz-demo-bar { padding: 12px; }
    .wz-demo-bar__cta { width: 100%; }
    .wz-demo-bar__btn { flex: 1 1 auto; justify-content: center; }
    .wz-demo-search { max-width: none; }
}

/* The creator frame (layout.mainlayout) uses class="main-wrapper", not the id the real
   table/toolbar rules target (#main-wrapper), so the demo repeats those rules for it. */
.main-wrapper .wz-dash .wz-invite-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 18px; }
.main-wrapper .wz-dash .wz-export-btn,
.main-wrapper .wz-dash .wz-refresh-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid #dbe3ef; background: #fff;
    color: #334d77; border-radius: 10px; font-weight: 600; font-size: .88rem; cursor: pointer; }
.main-wrapper .wz-dash .wz-export-btn:hover,
.main-wrapper .wz-dash .wz-refresh-btn:hover { border-color: #1d4ed8; color: #1d4ed8; background: #eff5ff; }
.main-wrapper .wz-dash table.wz-demo-table thead th { background: #f4f7fc; color: #0b2350; font-size: .74rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .03em; border: 0; border-bottom: 1px solid #e6ecf5; padding: 12px 14px; white-space: nowrap; }
.main-wrapper .wz-dash table.wz-demo-table tbody td { padding: 12px 14px; font-size: .88rem; color: #334155; border-top: 0; border-bottom: 1px solid #eef2f7; }
.main-wrapper .wz-dash .wz-dt-filter { min-height: 38px; padding: .4rem .7rem; border: 1px solid #dbe3ef; border-radius: 10px; background: #fff; }

/* Organizations / Notifications in the top-navbar layout (layouts.orgs-page-layout). */
.pro-org-container .wz-demo-orgsearch { display: flex; justify-content: flex-end; margin: 18px 0 10px; }
.pro-org-container .wz-demo-orgsearch label { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #3c4a63; }
.pro-org-container .wz-demo-count { margin-top: 12px; }
.pro-org-container .wz-demo-bar { margin-bottom: 22px; }
.pro-org-container table.wz-demo-table thead th { background: #e9edf3; color: #0b1f44; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; border: 0; padding: 14px 12px; }
.pro-org-container table.wz-demo-table thead tr th:first-child { border-top-left-radius: 12px; }
.pro-org-container table.wz-demo-table thead tr th:last-child { border-top-right-radius: 12px; }
.pro-org-container table.wz-demo-table { table-layout: auto !important; width: 100%; }
.pro-org-container table.wz-demo-table td { white-space: normal; word-break: normal; overflow-wrap: anywhere; vertical-align: middle; }
/* The orgs-page layout does not load the dashboard stylesheet, so the status badges are drawn here. */
.pro-org-container .wz-badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #eef2f7; color: #334155; }
.pro-org-container .wz-badge--ok { background: #e6f4ee; color: #0f6b45; }
.pro-org-container .wz-badge--danger { background: #fdecea; color: #b42318; }
.pro-org-container .wz-badge--warn { background: #fdf2e1; color: #8a4b06; }
.pro-org-container .wz-badge--info { background: #e8f0fe; color: #1d4ed8; }
