/* Dashboard item styles (.dw-*). Moved out of Usr_Dashboard_Layout.razor so the desktop widgets that show
   dashboard items share the very same classes. */
/* ═══════════════════════════════════════════════════════════════
   DASHBOARD WIDGETS — shared design system (Exas.ca theme)
   Defined once here, since this component is always present
   wherever a dashboard renders — every Usr_Dashboard_* widget
   reuses these .dw-* classes rather than redefining them
   (these style blocks are plain global CSS, not isolated per
   component, so this is safe to rely on).
   ═══════════════════════════════════════════════════════════════ */

.dw-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 2px 14px;
}

.dw-toolbar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #212121;
}

.dw-toolbar-count {
    font-size: 12px;
    font-weight: 700;
    color: #259B24;
    background: rgba(37,155,36,0.10);
    border: 1px solid rgba(37,155,36,0.24);
    border-radius: 999px;
    padding: 2px 10px;
}

.dw-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dw-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: background 0.14s, border-color 0.14s, opacity 0.14s;
}

.dw-btn-primary {
    background: #259B24;
    color: #fff;
}

    .dw-btn-primary:hover {
        opacity: 0.9;
    }

.dw-btn-ghost {
    background: #fff;
    color: #5F6368;
    border-color: #E5E7EB;
}

    .dw-btn-ghost:hover {
        background: #F9F9F9;
        border-color: #D1D5DB;
    }

/* ── Panel card shell ── */
.dw-card {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(28,28,30,0.05);
    overflow: hidden;
}

.dw-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
    background: #FCFCFB;
}

.dw-card-title {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #212121;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dw-card-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    position: relative;
}

/* Edit menu (Edit/Delete) sitting in the header row */
.dw-menu-btn.e-dropdown-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px !important;
    color: #9AA0A6 !important;
    flex-shrink: 0;
}

    .dw-menu-btn.e-dropdown-btn:hover {
        background: #F3F4F1 !important;
        color: #5F6368 !important;
    }

/* Small floating action button used INSIDE a widget's own content area
   (Refresh / Add X …) — sits in the content area's own top-right
   corner, clear of the panel header above it. */
.dw-content-menu.e-dropdown-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px !important;
    color: #9AA0A6 !important;
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 1px 3px rgba(28,28,30,0.06);
}

    .dw-content-menu.e-dropdown-btn:hover {
        background: #F9F9F9 !important;
        color: #5F6368 !important;
    }

/* ── Empty state ── */
.dw-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9AA0A6;
    font-size: 13px;
    text-align: center;
    padding: 20px;
}

/* ── Data table (Domains / Orders / Support Tickets grids) ── */
.dw-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto', sans-serif;
}

    .dw-table thead th {
        text-align: left;
        font-size: 10.5px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #9AA0A6;
        padding: 0 10px 8px;
        border-bottom: 1px solid #E5E7EB;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 1;
    }

    .dw-table tbody td {
        padding: 10px;
        font-size: 13px;
        color: #212121;
        border-bottom: 1px solid #F1F2F0;
    }

    .dw-table tbody tr:hover td {
        background: #F9F9F9;
    }

.dw-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.dw-row-view-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #5F6368;
    background: #F3F4F1;
    border: 1px solid #E5E7EB;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.14s, color 0.14s, border-color 0.14s;
}

    .dw-row-view-btn:hover {
        background: #EAF6EA;
        color: #14361A;
        border-color: rgba(37,155,36,0.3);
    }

.dw-pager {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 4px 4px;
    border-top: 1px solid #F1F2F0;
    font-size: 12.5px;
    color: #5F6368;
    flex-shrink: 0;
}

/* ── Stat tile (Count / Amount) ── */
.dw-stat {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.dw-stat-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 6px;
}

.dw-stat-photo {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

    .dw-stat-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.dw-stat-label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-family: 'Roboto', sans-serif;
}

.dw-stat-value-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px 14px;
}

.dw-stat-value {
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    line-height: 1;
    font-size: clamp(28px, 6vw, 44px);
}

/* ── Item types added later: Agents status, Uptime status, Note, Clock, Quick links ── */
.dn-wrap {
    height: 100%;
    width: 100%;
    position: relative;
    font-family: 'Roboto', sans-serif;
    color: #212121;
}

.dn-scroll {
    height: 100%;
    overflow: auto;
    padding: 10px 12px 12px;
}

.dn-hint {
    font-size: 11.5px;
    color: #9AA0A6;
    line-height: 1.3;
}

.dn-tone-good { color: #067647; background: #ECFDF3; border-color: #ABEFC6; }
.dn-tone-bad  { color: #B42318; background: #FEF3F2; border-color: #FECDCA; }
.dn-tone-warn { color: #B54708; background: #FFFAEB; border-color: #FEDF89; }
.dn-tone-dim  { color: #5F6368; background: #F3F4F1; border-color: #E5E7EB; }

.dn-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 8px;
}

.dn-tile {
    border: 1px solid;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
    min-width: 0;
}

.dn-tile-num {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
}

.dn-tile-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* a status box that opens the list it counts (Uptime status: Up / Down / Warning) */
a.dn-tile--link { display: block; text-decoration: none; cursor: pointer; transition: transform .15s, filter .15s, box-shadow .15s; }
a.dn-tile--link:hover { text-decoration: none; filter: brightness(0.97); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08); }
a.dn-tile--link:focus-visible { outline: 2px solid #259B24; outline-offset: 2px; }
a.dn-tile--link.dn-tone-good, a.dn-tile--link.dn-tone-good:hover { color: #067647; }
a.dn-tile--link.dn-tone-bad, a.dn-tile--link.dn-tone-bad:hover { color: #B42318; }
a.dn-tile--link.dn-tone-warn, a.dn-tile--link.dn-tone-warn:hover { color: #B54708; }
a.dn-tile--link.dn-tone-dim, a.dn-tile--link.dn-tone-dim:hover { color: #5F6368; }

.dn-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 2px 0;
}

.dn-more {
    color: #259B24;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

    .dn-more:hover {
        text-decoration: underline;
        color: #259B24;
    }

.dn-list {
    margin-top: 8px;
}

.dn-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 4px;
    border-bottom: 1px solid #F1F2F0;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

    .dn-line:hover {
        background: #F9F9F9;
        color: inherit;
    }

.dn-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #9AA0A6;
}

.dn-dot-good { background: #12B76A; }
.dn-dot-bad  { background: #F04438; }
.dn-dot-warn { background: #F79009; }

.dn-line-text {
    flex: 1;
    min-width: 0;
}

.dn-line-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #212121;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dn-line-sub {
    display: block;
    font-size: 11.5px;
    color: #9AA0A6;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dn-badge {
    flex-shrink: 0;
    border: 1px solid;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.dn-clock {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    color: #212121;
}

.dn-clock-time {
    font-size: clamp(34px, 9vw, 56px);
    font-weight: 300;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.dn-clock-ampm {
    font-size: 0.4em;
    font-weight: 500;
    margin-left: 6px;
    color: #5F6368;
}

.dn-clock-date {
    margin-top: 6px;
    font-size: 13px;
    color: #5F6368;
}

.dn-clock-label {
    margin-top: 2px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9AA0A6;
}

.dn-note {
    height: 100%;
    overflow: auto;
    padding: 12px 14px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: #212121;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.dn-links {
    height: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px 12px;
}

.dn-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FCFCFB;
    color: #212121;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

    .dn-link span {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dn-link:hover {
        background: #EAF6EA;
        border-color: rgba(37,155,36,0.3);
        color: #14361A;
    }

/* ---- Item settings editor (Usr_DashOptions): shared by the dashboard's item dialog and the desktop widget editors ---- */
.dopt {
    --dopt-line: rgba(128,128,128,0.4);
    --dopt-accent: #259B24;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: inherit;
}

.dopt-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.dopt-lbl {
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    opacity: 0.85;
}

.dopt-hint {
    font-size: 11px;
    opacity: 0.65;
}

.dopt-count {
    font-size: 11px;
    opacity: 0.6;
    text-align: right;
}

.dopt-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin: 0;
    cursor: pointer;
}

    .dopt-check input {
        width: 16px;
        height: 16px;
        accent-color: var(--dopt-accent);
    }

.dopt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 150px;
    overflow-y: auto;
    padding: 2px;
}

.dopt-chip {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 3px 10px;
    border: 1px solid var(--dopt-line);
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

    .dopt-chip input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
        pointer-events: none;
    }

    .dopt-chip.is-on {
        background: var(--dopt-accent);
        border-color: var(--dopt-accent);
        color: #fff;
    }

    .dopt-chip:focus-within {
        outline: 2px solid var(--dopt-accent);
        outline-offset: 1px;
    }

.dopt-in {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    font-size: 13px;
    color: inherit;
    background: transparent;
    border: 1px solid var(--dopt-line);
    border-radius: 6px;
}

    .dopt-in:focus {
        outline: 2px solid var(--dopt-accent);
        outline-offset: 0;
    }

.dopt-in--num {
    width: 110px;
}

.dopt-area {
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
}

select.dopt-in option {
    color: #212121;
    background: #fff;
}

[data-theme=dark] select.dopt-in option {
    color: #eee;
    background: #2b2b2b;
}

.dopt-colour {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dopt-swatch {
    width: 38px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--dopt-line);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.dopt-btn {
    padding: 3px 10px;
    font-size: 12px;
    color: inherit;
    background: transparent;
    border: 1px solid var(--dopt-line);
    border-radius: 6px;
    cursor: pointer;
}

    .dopt-btn:hover {
        border-color: var(--dopt-accent);
    }

/* ── Buttons, rows and messages shared by the clocked-in boards (.ck-*). The two clock widgets themselves have their own glass look, see exa-widgets.css. ── */
.ck {
    box-sizing: border-box;
    height: 100%;
    overflow: auto;
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: 'Roboto', sans-serif;
    color: #212121;
}

.ck-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ck-dot {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.ck-status .ck-icon {
    margin-left: auto;
    flex: 0 0 auto;
}

.ck-status b {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.ck-status small {
    display: block;
    margin-top: 1px;
    font-size: 12px;
    color: #5F6368;
}

.ck-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ck-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #259B24;
    cursor: pointer;
}

    .ck-btn:hover:not(:disabled) {
        filter: brightness(1.08);
    }

    .ck-btn:disabled {
        opacity: 0.55;
        cursor: default;
    }

.ck-btn--danger { background: #D92D20; }
.ck-btn--warn { background: #D97706; }
.ck-btn--primary { background: #2563EB; }
.ck-btn--ghost { background: #F3F4F1; color: #212121; border-color: #E5E7EB; }
.ck-btn--sm { height: 28px; padding: 0 10px; font-size: 12px; }

.ck-msg {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.35;
}

.ck-msg.ck-good { color: #067647; background: #ECFDF3; }
.ck-msg.ck-bad { color: #B42318; background: #FEF3F2; }

.ck-at {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #F3F4F1;
}

    .ck-at label {
        font-size: 12px;
        color: #5F6368;
    }

.ck-time {
    height: 30px;
    padding: 0 8px;
    border: 1px solid #D0D5DD;
    border-radius: 6px;
    font-size: 13px;
    color: #212121;
    background: #fff;
}

.ck-head > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ck-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5F6368;
}

.ck-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    font-size: 13px;
    color: #5F6368;
    background: transparent;
    cursor: pointer;
}

    .ck-icon:hover:not(:disabled) {
        background: #F3F4F1;
        color: #212121;
    }

    .ck-icon:disabled {
        opacity: 0.45;
        cursor: default;
    }

.ck-search {
    height: 30px;
    padding: 0 10px;
    border: 1px solid #D0D5DD;
    border-radius: 8px;
    font-size: 13px;
    color: #212121;
    background: #fff;
}

.ck-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ck-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ck-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #fff;
}

.ck-row--in {
    border-color: #ABEFC6;
    background: #ECFDF3;
}

.ck-pic {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    display: grid;
    place-items: center;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    color: #5F6368;
    background: #F3F4F1;
}

    .ck-pic img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.ck-main {
    flex: 1 1 150px;
    min-width: 0;
}

/* a widget column is only about 330 px wide: the buttons drop to their own line instead of squeezing the name */
.ck-row,
.cin-row {
    flex-wrap: wrap;
    row-gap: 6px;
}

    .ck-row .ck-acts,
    .cin-row .ck-acts {
        margin-left: auto;
    }

.cin-row .ck-main {
    flex: 1 1 100px;
}

/* in a widget column the Clock Out button is just its icon (the name needs the room); the confirm step keeps its words */
@container (max-width: 400px) {
    .cin-row .cin-out {
        width: 28px;
        padding: 0;
        justify-content: center;
    }

        .cin-row .cin-out .cin-lbl {
            display: none;
        }
}

.cin-namerow {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

    .cin-namerow b {
        flex: 0 1 auto;
        min-width: 0;
        display: block;
        font-size: 13px;
        font-weight: 700;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.ck-main small.cin-at {
    color: #212121;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .ck-main b {
        display: block;
        font-size: 13px;
        font-weight: 700;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ck-main small {
        display: block;
        font-size: 11.5px;
        color: #5F6368;
    }

.ck-row--in .ck-main small { color: #067647; }

.ck-acts {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.ck-pic--sm {
    width: 22px;
    height: 22px;
    font-size: 11px;
}

/* ── The clocked-in boards: Clocked-in employees, Clocked In Employee Client Hours, by client ── */
.cin {
    container-type: inline-size;
    box-sizing: border-box;
    height: 100%;
    overflow: auto;
    padding: 10px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
    color: #212121;
}

.cin-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 22px 10px;
    font-size: 13px;
    color: #9AA0A6;
}

.cin-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cin-ghead {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 4px 2px;
    border-bottom: 1px solid #E5E7EB;
}

    .cin-ghead b {
        flex: 1;
        min-width: 0;
        font-size: 13px;
        font-weight: 700;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.cin-count {
    min-width: 20px;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    color: #067647;
    background: #ECFDF3;
}

.cin-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border: 1px solid #ABEFC6;
    border-radius: 10px;
    background: #F6FEF9;
}

.cin-row--stale {
    border-color: #FEDF89;
    background: #FFFCF5;
}

.cin-tag {
    flex: 0 0 auto;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}

.cin-tag--warn {
    color: #B54708;
    background: #FFFAEB;
    border: 1px solid #FEDF89;
}

.cin-foot {
    margin-top: auto;
    padding-top: 2px;
    font-size: 11px;
    color: #9AA0A6;
    text-align: right;
}

/* ───────────── One uptime monitor (Usr_Dashboard_UptimeMonitor) ─────────────
   Drawn from the glass tokens of the shell (--text, --gtile, --stroke, the tone colours ...) with a light fallback after each one, so the card also reads on a plain page.
   The tone (good / bad / warn / info / muted) is the status colour of the monitor: it tints the orb, the badge, the one-line reason and the corner glow. */
.um1-wrap { padding: 10px; }

.um1 {
    --tone: var(--text2, #5F6368);
    --tone-soft: var(--gtile, #F3F4F1);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 14px 12px;
    border-radius: 22px;
    overflow: hidden;
    isolation: isolate;
    background: var(--gtile, #FFFFFF);
    border: 1px solid var(--stroke, #E5E7EB);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--text, #212121) !important;
    text-decoration: none !important;
    transition: transform .18s cubic-bezier(.22, 1, .36, 1), box-shadow .2s;
}
.um1:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(20, 70, 30, .14), inset 0 1px 0 rgba(255, 255, 255, .55); }
.um1:active { transform: scale(.985); }
.um1:focus-visible { outline: 2px solid var(--bright, #2FB32E); outline-offset: 2px; }

/* a wash of the tone in the top-left corner */
.um1::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -22%;
    top: -46%;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--tone-soft), transparent);
    pointer-events: none;
}

.um1--good { --tone: var(--good, #136019); --tone-soft: var(--good-soft, rgba(47, 179, 46, .18)); }
.um1--bad { --tone: var(--warn, #981F19); --tone-soft: var(--warn-soft, rgba(220, 38, 38, .14)); }
.um1--warn { --tone: var(--amber, #724A05); --tone-soft: var(--amber-soft, rgba(217, 119, 6, .16)); }
.um1--info { --tone: var(--blue, #1742C4); --tone-soft: var(--blue-soft, rgba(37, 99, 235, .14)); }

.um1-head { display: flex; align-items: center; gap: 12px; min-width: 0; }

.um1-orb {
    position: relative;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: var(--tone);
    background: var(--tone-soft);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 30%, transparent);
}
/* a ring leaves the orb of a monitor that is up (slowly) or down (quickly) */
.um1--good .um1-orb::after, .um1--bad .um1-orb::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--tone);
    opacity: 0;
    animation: um1-ping 2.6s cubic-bezier(.2, .6, .3, 1) infinite;
}
.um1--bad .um1-orb::after { animation-duration: 1.4s; }
@keyframes um1-ping {
    0% { transform: scale(1); opacity: .55; }
    80%, 100% { transform: scale(1.7); opacity: 0; }
}

.um1-id { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.um1-name { font-family: var(--fh, inherit); font-weight: 800; font-size: 15px; color: var(--text, #212121); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.um1-sub { font-size: 11.5px; color: var(--text3, #6B7280); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.um1-badge {
    flex: none;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    color: var(--tone);
    background: var(--tone-soft);
    border: 1px solid color-mix(in srgb, var(--tone) 28%, transparent);
}

.um1-detail { font-size: 12px; line-height: 1.35; color: var(--tone); background: var(--tone-soft); border-radius: 12px; padding: 6px 10px; overflow-wrap: anywhere; }

.um1-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 8px; }
.um1-stat { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 8px 10px; border-radius: 14px; background: color-mix(in srgb, var(--text, #000) 5%, transparent); }
.um1-stat b { font-family: var(--fh, inherit); font-weight: 800; font-size: 15px; color: var(--text, #212121); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.um1-stat span { font-size: 10.5px; color: var(--text3, #6B7280); }
.um1-v--good { color: var(--good, #136019) !important; }
.um1-v--warn { color: var(--amber, #724A05) !important; }
.um1-v--bad { color: var(--warn, #981F19) !important; }
.um1-v--muted { color: var(--text3, #6B7280) !important; }

/* the last 24 hours, one bar for each quarter of an hour */
.um1-bars { display: flex; align-items: stretch; gap: 2px; height: 26px; }
.um1-bar { flex: 1 1 0; min-width: 1px; border-radius: 2px; transform-origin: bottom; transition: transform .12s, filter .12s; background: color-mix(in srgb, var(--text, #000) 10%, transparent); }
.um1-bar--up { background: var(--bright, #2FB32E); }
.um1-bar--down { background: #E5484D; }
.um1-bar--partial { background: #F5A524; }
.um1-bar:hover { transform: scaleY(1.18); filter: brightness(1.12); }

.um1-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--text3, #6B7280); }

@media (prefers-reduced-motion: reduce) {
    .um1, .um1-bar { transition: none; }
    .um1--good .um1-orb::after, .um1--bad .um1-orb::after { animation: none; }
}

/* ───────────── Our locations (Usr_Dashboard_OurLocations): one glass row for each of the company's own sites ───────────── */
.ol-list { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.ol-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 9px 12px;
    border-radius: 16px;
    background: var(--gtile, #FFFFFF);
    border: 1px solid var(--stroke, #E5E7EB);
    color: var(--text, #212121) !important;
    text-decoration: none !important;
    transition: transform .18s cubic-bezier(.22, 1, .36, 1), box-shadow .2s;
}
a.ol-row:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(20, 70, 30, .12); }
a.ol-row:focus-visible { outline: 2px solid var(--bright, #2FB32E); outline-offset: 2px; }
.ol-ico { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 16px; color: var(--good, #136019); background: var(--good-soft, rgba(47, 179, 46, .18)); }
.ol-ico--off { color: var(--text3, #6B7280); background: color-mix(in srgb, var(--text, #000) 6%, transparent); }
.ol-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.ol-text b { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-text span { font-size: 11.5px; color: var(--text3, #6B7280); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-go { flex: none; font-size: 13px; color: var(--text3, #6B7280); }

@media (prefers-reduced-motion: reduce) {
    .ol-row { transition: none; }
}
