@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    font-family: 'DM Sans',system-ui,sans-serif;
    color: #16243a;
    background: #f5f7fb
}

* {
    box-sizing: border-box
}

body {
    margin: 0
}

a {
    text-decoration: none;
    color: inherit
}

.shell {
    display: flex;
    min-height: 100vh
}

.sidebar {
    width: 252px;
    background: #10233c;
    color: #c8d5e6;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh
}

.brand {
    font-size: 24px;
    font-weight: 700;
    color: white;
    padding: 29px 23px 26px;
    letter-spacing: -.7px
}

    .brand small {
        display: block;
        font-size: 9px;
        letter-spacing: 2.4px;
        color: #93a9c1;
        margin: 5px 0 0 39px
    }

.brand-mark {
    color: #4fcbcd;
    font-size: 30px
}

.sidebar nav {
    padding: 8px 13px;
    overflow: auto;
    flex: 1
}

    .sidebar nav a {
        display: block;
        padding: 12px 15px;
        border-radius: 9px;
        font-size: 13px;
        margin-bottom: 3px
    }

        .sidebar nav a:hover, .sidebar nav a.active {
            background: #223b59;
            color: #fff
        }

        .sidebar nav a.active {
            box-shadow: inset 3px 0 #46cfcb
        }

.nav-caption {
    color: #7992ad;
    font-size: 10px;
    letter-spacing: 1.4px;
    margin: 26px 14px 10px;
    font-weight: 700
}

.sidebar-footer {
    padding: 22px;
    color: #728ba6;
    font-size: 11px
}

.workspace {
    flex: 1;
    min-width: 0
}

.topbar {
    height: 76px;
    background: white;
    border-bottom: 1px solid #e5eaf2;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    padding: 0 38px
}

    .topbar strong {
        font-size: 14px
    }

.top-subtitle {
    display: block;
    font-size: 11px;
    color: #8490a1;
    margin-top: 4px
}

.identity {
    font-size: 12px;
    color: #66758a;
    margin-left: auto
}

.content {
    padding: 36px 40px;
    max-width: 1500px;
    margin: auto
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px
}

    .page-heading h1 {
        font-size: 29px;
        letter-spacing: -.8px;
        margin: 8px 0
    }

    .page-heading p, .muted {
        color: #758398;
        font-size: 14px
    }

.eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1b9f9c
}

.pill {
    border-radius: 20px;
    padding: 8px 14px;
    background: #e2f5f2;
    color: #117b78;
    font-size: 12px
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
    margin-bottom: 25px
}

.stat, .panel {
    background: white;
    border: 1px solid #e7edf4;
    border-radius: 14px;
    box-shadow: 0 4px 22px #172b4a06
}

.stat {
    padding: 24px;
    min-height: 145px
}

    .stat span {
        font-size: 14px;
        color: #607188;
        display: block
    }

    .stat strong {
        font-size: 32px;
        color: #17a6a1;
        display: block;
        margin: 12px 0
    }

    .stat small {
        color: #8190a2;
        font-size: 11px
    }

.panel {
    padding: 28px;
    margin-bottom: 22px
}

    .panel h2 {
        font-size: 18px;
        margin: 0 0 16px
    }

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px
}

    .quick-grid a, .operation-list a {
        background: #f6f9fc;
        border: 1px solid #eaf0f5;
        border-radius: 10px;
        padding: 18px;
        font-size: 13px;
        font-weight: 600
    }

        .quick-grid a:hover, .operation-list a:hover {
            background: #eaf8f7
        }

.info-banner {
    padding: 18px 22px;
    border: 1px solid #dbe8f0;
    border-radius: 10px;
    color: #62758b;
    font-size: 13px;
    background: #f0f7fc
}

.operation-list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px
}

    .operation-list a small {
        display: block;
        color: #8a98a9;
        font-size: 11px;
        font-weight: 400;
        margin-top: 7px
    }

.login-screen {
    min-height: 100vh;
    background: linear-gradient(135deg,#0c2038,#1d4b63);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.login-card {
    background: white;
    border-radius: 18px;
    padding: 40px;
    width: min(430px,100%);
    box-shadow: 0 22px 80px #0003
}

.login-icon {
    font-size: 40px;
    color: #15a8a3
}

.login-card h1 {
    margin-bottom: 5px
}

.login-card p {
    color: #738296;
    font-size: 14px;
    margin-bottom: 28px
}

label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin: 15px 0 7px
}

input, select {
    width: 100%;
    border: 1px solid #d8e1ea;
    border-radius: 8px;
    padding: 12px;
    background: white;
    font: inherit;
    font-size: 13px
}

.primary {
    border: 0;
    background: #159f9c;
    color: white;
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 18px
}

.wide {
    width: 100%
}

.outline {
    background: white;
    border: 1px solid #dce5ef;
    padding: 9px 15px;
    border-radius: 8px;
    cursor: pointer
}

.note {
    font-size: 11px !important;
    line-height: 1.6
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin-top: 18px
}

.error {
    color: #a22;
    background: #fff2f2;
    padding: 14px;
    margin-top: 15px;
    border-radius: 8px
}

.table-wrap {
    overflow: auto;
    margin-top: 20px
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px
}

td, th {
    padding: 12px;
    border-bottom: 1px solid #e7edf4;
    text-align: left
}

th {
    background: #f5f8fb
}

@media(max-width:1000px) {
    .stat-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .sidebar {
        width: 210px
    }

    .content {
        padding: 24px
    }

    .quick-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@media(max-width:700px) {
    .shell {
        display: block
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto
    }

        .sidebar nav {
            display: flex;
            overflow: auto
        }

            .sidebar nav a {
                white-space: nowrap
            }

    .nav-caption, .sidebar-footer {
        display: none
    }

    .topbar {
        padding: 0 16px
    }

    .content {
        padding: 18px
    }

    .stat-grid, .quick-grid, .operation-list, .form-grid {
        grid-template-columns: 1fr
    }
}
/* Sky-Bell UI preview: module pages and interactive presentation-only dialogs */
.module-header {
    gap: 18px;
    align-items: flex-start
}

.preview-pill {
    white-space: nowrap;
    background: #edf4ff;
    color: #365c87
}

.module-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    border: 1px solid #e7edf4;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 18px
}

.module-toolbar-title strong {
    display: block;
    font-size: 16px
}

.module-toolbar-title span {
    display: block;
    color: #8490a1;
    font-size: 12px;
    margin-top: 5px
}

.toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px
}

    .toolbar-actions button {
        white-space: nowrap
    }

.module-panel {
    padding: 0;
    overflow: hidden
}

.tab-strip {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    border-bottom: 1px solid #e7edf4;
    padding: 12px 18px 0
}

.tab {
    font: inherit;
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    color: #758398;
    padding: 13px 15px;
    font-size: 13px
}

    .tab.active {
        color: #0b8584;
        border-bottom-color: #0eaaa4;
        font-weight: 700
    }

    .tab:hover {
        color: #0b8584
    }

.filter-strip {
    display: flex;
    align-items: end;
    gap: 20px;
    padding: 20px 24px
}

.filter-search {
    flex: 1;
    max-width: 450px
}

    .filter-search label {
        margin-top: 0
    }

.filter-context {
    margin-left: auto;
    min-width: 140px
}

    .filter-context strong, .subtle-label {
        display: block;
        font-size: 12px
    }

.subtle-label {
    color: #8a98a9;
    margin-bottom: 7px
}

.module-table {
    margin: 0
}

    .module-table table {
        margin: 0
    }

.module-empty {
    text-align: center;
    padding: 60px 20px 70px;
    color: #738296
}

    .module-empty strong {
        display: block;
        color: #263c56;
        font-size: 16px
    }

    .module-empty p {
        margin: 9px auto 5px;
        max-width: 520px;
        font-size: 13px
    }

    .module-empty small {
        font-size: 11px;
        color: #a0aebd
    }

.empty-icon {
    font-size: 36px;
    color: #0ea6a1;
    margin-bottom: 12px
}

.dialog-scrim {
    position: fixed;
    inset: 0;
    background: #0b1c33a8;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px
}

.editor-dialog {
    background: white;
    width: min(720px,100%);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 26px 30px;
    box-shadow: 0 25px 90px #0004
}

.dialog-heading {
    display: flex;
    align-items: start;
    justify-content: space-between
}

    .dialog-heading h2 {
        margin: 8px 0 10px;
        font-size: 23px
    }

.dialog-close {
    background: transparent;
    border: 0;
    font-size: 28px;
    color: #63778c;
    cursor: pointer
}

.editor-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px 18px
}

.editor-field textarea {
    width: 100%;
    font: inherit;
    font-size: 13px;
    border: 1px solid #d8e1ea;
    border-radius: 8px;
    padding: 12px;
    resize: vertical
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 20px
}

    .dialog-footer .primary {
        margin: 0
    }

.preview-notice {
    padding: 12px 15px;
    background: #eaf8f7;
    color: #117b78;
    border-radius: 8px;
    font-size: 13px
}

@media(max-width:900px) {
    .module-toolbar {
        align-items: stretch;
        flex-direction: column
    }

    .filter-strip {
        flex-wrap: wrap
    }

    .filter-context {
        margin-left: 0
    }
}

@media(max-width:600px) {
    .editor-grid {
        grid-template-columns: 1fr
    }

    .module-header {
        display: block
    }

    .preview-pill {
        display: inline-block;
        margin-top: 8px
    }

    .filter-search {
        max-width: none;
        width: 100%
    }

    .editor-dialog {
        padding: 20px
    }

    .toolbar-actions {
        gap: 6px
    }
}

/* Digi Software Solutions logo */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    letter-spacing: normal;
}

.brand-logo {
    display: block;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

    .brand-text strong {
        font-size: 20px;
        color: white;
        line-height: 1.2;
    }

.brand .brand-text small {
    display: block;
    margin: 5px 0 0;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #93a9c1;
}
/* SKY-BELL modal action buttons: append at the VERY END of wwwroot/app.css.
   This sets matching fixed dimensions for BOTH cancel and confirm buttons.
   Only modal footer controls are targeted; general page actions are untouched. */
:is(.schedule-modal-actions, .broadcast-modal-actions, .device-modal-actions, .account-actions, .loc-buttons, .warning-dialog-actions, .period-modal-actions, .period-actions, .setting-actions, .schedule-time-dialog > div[style*="justify-content:flex-end"]) > button:not(.schedule-poster-close) {
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    width: auto !important;
    min-width: 90px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border-radius: 9px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-align: center !important;
    text-decoration: none !important;
    background-image: none !important;
}

/* Cancel is a neutral secondary action, never a teal primary button. */
button:is(.schedule-cancel-button, .schedule-poster-secondary, .period-cancel-button, .device-secondary, .account-cancel, .loc-cancel, .warning-secondary, .broadcast-cancel, .settings-outline-button) {
    appearance: none !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 90px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    background: #f1f5f9 !important;
    color: #25364a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    caret-color: transparent;
}

    button:is(.schedule-cancel-button, .schedule-poster-secondary, .period-cancel-button, .device-secondary, .account-cancel, .loc-cancel, .warning-secondary, .broadcast-cancel, .settings-outline-button):hover:not(:disabled) {
        background: #e2e8f0 !important;
        border-color: #94a3b8 !important;
    }

    button:is(.schedule-cancel-button, .schedule-poster-secondary, .period-cancel-button, .device-secondary, .account-cancel, .loc-cancel, .warning-secondary, .broadcast-cancel, .settings-outline-button):focus-visible {
        outline: 2px solid #159f9c !important;
        outline-offset: 2px !important;
    }

/* Sky-Bell October 2026 UI regression fixes: append at end of wwwroot/app.css */
button.sky-ui-outline,
button.period-edit-button,
button.period-cancel-button,
button.schedule-time-trigger {
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    box-sizing: border-box !important;
    min-height: 40px !important;
    height: 42px !important;
    max-height: 42px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #25364a !important;
    border-radius: 9px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

    button.sky-ui-outline:hover:not(:disabled), button.period-edit-button:hover:not(:disabled),
    button.period-cancel-button:hover:not(:disabled), button.schedule-time-trigger:hover:not(:disabled) {
        background: #e2e8f0 !important;
        border-color: #94a3b8 !important
    }

    button.sky-ui-outline:focus-visible, button.period-edit-button:focus-visible,
    button.period-cancel-button:focus-visible, button.schedule-time-trigger:focus-visible {
        outline: 2px solid #159f9c;
        outline-offset: 2px
    }

.sky-ui-retrieve-row {
    display: flex;
    justify-content: flex-end;
    padding-top: 18px
}

    .sky-ui-retrieve-row button {
        min-width: 145px;
        min-height: 42px
    }

.sky-ui-device-flags {
    display: grid;
    gap: 10px;
    margin: 12px 0 18px
}

    .sky-ui-device-flags label {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 600;
        color: #25364a
    }

    .sky-ui-device-flags input[type=checkbox] {
        width: 18px;
        height: 18px;
        flex: none
    }

/* Sky-Bell client-selectable dark theme. Stored locally in the browser. */
.identity-block { display:flex; flex-direction:column; align-items:flex-end; gap:3px; margin-left:auto; min-width:0; }
.identity-block .identity { margin-left:0; overflow-wrap:anywhere; }
.identity-role { font-size:11px; font-weight:700; color:#087f80; }
.theme-toggle { min-width:60px; border:1px solid #ced7e3; background:#f3f7fa; color:#21354a; border-radius:9px; padding:9px 11px; cursor:pointer; }
.theme-toggle:hover { background:#deeeef; }
html[data-sky-theme="dark"] { color-scheme:dark; background:#0a1424; color:#e4eaf3; }
html[data-sky-theme="dark"] body, html[data-sky-theme="dark"] .shell, html[data-sky-theme="dark"] .workspace {background:#0a1424;color:#e4eaf3;}
html[data-sky-theme="dark"] .sidebar { background:#081222; color:#c2d3e7; }
html[data-sky-theme="dark"] .sidebar nav a:hover, html[data-sky-theme="dark"] .sidebar nav a.active { background:#1e3a55; color:#fff; }
html[data-sky-theme="dark"] .topbar { background:#101f33; border-color:#2b4057; color:#e4eaf3; }
html[data-sky-theme="dark"] .top-subtitle, html[data-sky-theme="dark"] .identity {color:#adc0d5;}
html[data-sky-theme="dark"] .identity-role {color:#61dcd4;}
html[data-sky-theme="dark"] .theme-toggle {background:#253a51;border-color:#49617c;color:#f1f5fa;}
html[data-sky-theme="dark"] .content {color:#e4eaf3;}
html[data-sky-theme="dark"] .panel, html[data-sky-theme="dark"] .stat,
html[data-sky-theme="dark"] [class*="-panel"],html[data-sky-theme="dark"] [class*="-card"],
html[data-sky-theme="dark"] [class*="-tile"],html[data-sky-theme="dark"] [class*="-dialog"],
html[data-sky-theme="dark"] [class*="-modal"] {background-color:#15243a;color:#e4eaf3;border-color:#34465e;}
html[data-sky-theme="dark"] .page-heading p,html[data-sky-theme="dark"] .muted,
html[data-sky-theme="dark"] p,html[data-sky-theme="dark"] label,html[data-sky-theme="dark"] small {color:#b7c7d8;}
html[data-sky-theme="dark"] h1,html[data-sky-theme="dark"] h2,html[data-sky-theme="dark"] h3,
html[data-sky-theme="dark"] h4,html[data-sky-theme="dark"] strong {color:#eff5fc;}
html[data-sky-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
html[data-sky-theme="dark"] select,html[data-sky-theme="dark"] textarea {background:#0d1b2e;color:#e4eaf3;border:1px solid #455e77;}
html[data-sky-theme="dark"] input::placeholder,html[data-sky-theme="dark"] textarea::placeholder {color:#90a4bc;}
html[data-sky-theme="dark"] table,html[data-sky-theme="dark"] thead,html[data-sky-theme="dark"] tbody,
html[data-sky-theme="dark"] th,html[data-sky-theme="dark"] td {background-color:#15243a;color:#e4eaf3;border-color:#3a4a60;}
html[data-sky-theme="dark"] tr:hover td {background-color:#20354c;}
html[data-sky-theme="dark"] .quick-grid a,html[data-sky-theme="dark"] .operation-list a,
html[data-sky-theme="dark"] .info-banner {background:#20344a;color:#e4eaf3;border-color:#38516a;}
html[data-sky-theme="dark"] button.outline,html[data-sky-theme="dark"] button.sky-ui-outline,
html[data-sky-theme="dark"] .account-cancel {background:#243a52;color:#e4eaf3;border-color:#57718c;}
html[data-sky-theme="dark"] .pill {background:#173d40;color:#8ef1e3;}
@media(max-width:750px){.identity-block{max-width:150px;}.theme-toggle{min-width:44px;padding:8px;}}

/* =========================================
   Neutral textured wallpaper backgrounds
   ========================================= */

:root {
    --page-bg: #f5f7fb;
    --page-bg-pattern: rgba(16, 35, 60, 0.035);
    --login-bg-1: #0c2038;
    --login-bg-2: #1d4b63;
    --login-pattern: rgba(255, 255, 255, 0.045);
}

/* Main site background */
body {
    margin: 0;
    background-color: var(--page-bg);
    background-image: radial-gradient(circle at 1px 1px, var(--page-bg-pattern) 1px, transparent 0), linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.55));
    background-size: 22px 22px, 100% 100%;
    background-attachment: fixed;
}

/* Make sure page shells stay transparent where needed */
.shell,
.workspace,
.content {
    background: transparent;
}

/* Login page textured background */
.login-screen {
    min-height: 100vh;
    background: radial-gradient(circle at 1px 1px, var(--login-pattern) 1px, transparent 0), linear-gradient(135deg, var(--login-bg-1), var(--login-bg-2));
    background-size: 24px 24px, 100% 100%;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sky-link-provider-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
}

.sky-link-provider-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 14px;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 4px;
    box-shadow: none;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

    .sky-link-provider-button img {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

.sky-link-provider-google:hover {
    background: #f8faff;
    border-color: #c6c6c6;
}

.sky-link-provider-microsoft {
    color: #5e5e5e;
    border-color: #8c8c8c;
}

    .sky-link-provider-microsoft:hover {
        background: #f8f8f8;
        border-color: #5e5e5e;
    }

.sky-link-provider-button:focus-visible {
    outline: 3px solid #4285f4;
    outline-offset: 2px;
}

/* Digital signage preview — append to the existing wwwroot/app.css */
.signage-library-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(320px,.85fr);
    gap: 1rem;
    align-items: start;
}

    .signage-library-layout .table-wrap {
        min-width: 0;
    }

.signage-preview-panel {
    min-width: 0;
}

.signage-preview-stage, .signage-preview-placeholder {
    background: #111827;
    border-radius: 10px;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .signage-preview-stage img, .signage-preview-stage video {
        display: block;
        width: 100%;
        max-height: 430px;
        object-fit: contain;
    }

.signage-preview-placeholder {
    padding: 1.5rem;
    color: #cbd5e1;
    text-align: center;
}

.signage-preview-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: .8rem;
    flex-wrap: wrap;
}

@media (max-width:950px) {
    .signage-library-layout {
        grid-template-columns: minmax(0,1fr);
    }
}

/* Digital signage — append to existing wwwroot/app.css */
.signage-group-picker {
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid var(--border, #cbd5e1);
    border-radius: 10px;
    padding: 6px;
    display: grid;
    gap: 2px;
}

.signage-group-option {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 9px 12px;
    cursor: pointer;
    border-radius: 6px;
}

    .signage-group-option:hover {
        background: var(--surface-hover, rgba(127,127,127,.10));
    }

    .signage-group-option input {
        flex: 0 0 auto;
    }

.signage-slide-media {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 220px;
}

.signage-thumb-button {
    position: relative;
    display: block;
    flex: 0 0 88px;
    width: 88px;
    height: 54px;
    padding: 0;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--border, #cbd5e1);
    background: #111827;
    cursor: pointer;
}

.signage-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.signage-thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 0 1px 5px #000;
    pointer-events: none;
}

.signage-thumb-missing {
    display: grid;
    place-items: center;
    flex: 0 0 88px;
    width: 88px;
    height: 54px;
    background: rgba(127,127,127,.12);
    border-radius: 6px;
}

@media (max-width: 720px) {
    .signage-slide-media {
        min-width: 150px;
    }

    .signage-thumb-button, .signage-thumb-missing {
        flex-basis: 65px;
        width: 65px;
        height: 42px;
    }
}

/* Digital signage thumbnails – add at bottom of wwwroot/app.css */
.signage-management .signage-thumb-button,
.signage-management .signage-thumb-missing {
    width: 150px !important;
    height: 110px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    flex: 0 0 150px !important;
    overflow: hidden;
}

    .signage-management .signage-thumb,
    .signage-management .signage-thumb-button img,
    .signage-management .signage-thumb-button video {
        display: block;
        width: 100% !important;
        height: 100% !important;
        max-width: 150px !important;
        max-height: 150px !important;
        object-fit: cover !important;
    }

.signage-management .signage-slide-media {
    align-items: center;
}

@media (max-width: 720px) {
    .signage-management .signage-thumb-button, .signage-management .signage-thumb-missing {
        width: 100px !important;
        height: 75px !important;
        flex-basis: 100px !important;
    }
}

/* Sky-Bell Digital Signage: target device group picker.
   Append to the END of wwwroot/app.css; no Razor changes required. */
.signage-group-picker {
    display: block !important;
    box-sizing: border-box;
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px;
    border: 1px solid var(--border, #cbd5e1);
    border-radius: 10px;
    background: transparent;
}

    .signage-group-picker .signage-group-option {
        display: flex !important;
        box-sizing: border-box;
        width: 100%;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        margin: 0;
        padding: 10px 12px;
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: inherit;
        font-weight: 400;
        line-height: 1.4;
        cursor: pointer;
        text-align: left;
    }

        .signage-group-picker .signage-group-option + .signage-group-option {
            border-top: 1px solid rgba(127,127,127,.12);
        }

        .signage-group-picker .signage-group-option:hover,
        .signage-group-picker .signage-group-option:focus-within {
            background: rgba(127,127,127,.10);
        }

        .signage-group-picker .signage-group-option input[type="checkbox"] {
            display: block !important;
            flex: 0 0 18px;
            width: 18px;
            height: 18px;
            min-width: 18px;
            margin: 0;
            padding: 0;
            accent-color: var(--accent, #159f9c);
            cursor: pointer;
        }

        .signage-group-picker .signage-group-option span {
            display: block;
            flex: 1 1 auto;
            min-width: 0;
            overflow-wrap: anywhere;
        }
