html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Request pop-up windows: hide the site chrome so only the request editor shows (class added per-window by
   mspPopup.init — each popup is its own document, so this never affects the main app window). */
html.msp-popup nav.topnav,
html.msp-popup .impersonation-banner {
    display: none !important;
}

html.msp-popup .content {
    padding-top: 0.75rem;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgO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z4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Admin impersonation ("log in as") banner — always visible while acting as another user. */
.impersonation-banner {
    position: sticky;
    top: 0;
    z-index: 1080;
    background: #b35900;
    color: #fff;
    padding: 0.4rem 0.75rem;
    text-align: center;
    font-size: 0.9rem;
}

    .impersonation-banner a.btn {
        vertical-align: baseline;
    }
/* Blazor unhandled-error / lost-circuit banner. GLOBAL (not layout-scoped) so it is hidden by default on
   BOTH the internal app and the customer portal; the framework sets display:block only when a circuit error
   occurs. (Previously this lived in MainLayout.razor.css and so was never hidden on CustomerLayout, leaving a
   permanent "Reconnecting…" banner on the customer portal.) */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* --------------------------------------------------------------------------
   Shared inline "dot" action buttons — a compact copy/reveal/change vocabulary
   used across the customer info lists (IT Admin Info, Vendors, Shared Links,
   Wifi, Network, VPN, SSLVPN, Users) to match the Master Devices list.
   Round C = copy a value · U = copy username · P = copy password (audited) ·
   R = reveal/hide a secret on screen · triangle = change/set a secret.
   -------------------------------------------------------------------------- */
.copy-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    margin-left: 0.25rem;
    padding: 0;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1;
    color: #556;
    background: #fff;
    border: 1px solid #b7b7c2;
    border-radius: 50%;
    cursor: pointer;
    vertical-align: middle;
}

.copy-dot:hover {
    background: #eef1ff;
    border-color: #8a8ad0;
    color: #223;
}

.copy-dot:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Password copy/reveal reads as a credential action. */
.copy-dot-pw {
    color: #a11550;
    border-color: #d79ab6;
}

.copy-dot-pw:hover {
    background: #fdeef4;
    border-color: #b3557f;
    color: #7a0f3c;
}

/* Change/set-secret triangle. */
.change-tri {
    margin-left: 0.3rem;
    padding: 0 0.15rem;
    font-size: 0.8rem;
    line-height: 1;
    color: #333;
    background: transparent;
    border: none;
    cursor: pointer;
    vertical-align: middle;
}

.change-tri:hover {
    color: #0d6efd;
}

.change-tri:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Tighter, denser rows for the customer info lists (matches the Master Devices list). */
.tight-list table.table > :not(caption) > * > * {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

/* Dense single-row edit grid for the customer info panels' "detailed" (open-row) editor — keeps every field
   on one row on wide screens instead of Bootstrap rows that wrap and stretch. A panel sets the wide-screen
   column count with an inline `style="--cols: N"` (defaults to 8) so all its fields fit on one row; on
   narrower screens it steps down to 4 then 2 columns so it never overflows horizontally. */
.tight-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem 0.6rem;
    align-items: start;
}

@media (min-width: 768px) {
    .tight-edit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
    .tight-edit-grid { grid-template-columns: repeat(var(--cols, 8), minmax(0, 1fr)); }
}

/* Let a field span more than one column (e.g. a multi-select or a wider text box). */
.tight-edit-cell-2 { grid-column: span 2; }
.tight-edit-cell-3 { grid-column: span 3; }

/* Zebra striping: a light-gray tint on alternating data-table rows so rows are easier to follow across wide
   tables. Uses Bootstrap's own striped variable (--bs-table-bg-type) so per-row STATE backgrounds still win:
   the inline-edit highlight (table-active) and the mailbox status colors (table-warning/table-danger) set
   --bs-table-bg-state, which takes precedence over the stripe. */
.table > tbody > tr:nth-of-type(even) > * {
    --bs-table-bg-type: var(--bs-table-striped-bg);
}

/* Calendar view-mode buttons: separated (not a joined button group) and all the same width as the widest
   label ("All Open Tasks"), so they read as an even row of distinct buttons. */
.view-btn {
    min-width: 7.5rem;
}

/* Request "pop-up" button: a small even square sitting right after the request # (before the company). */
.req-pop {
    width: 1.6rem;
    height: 1.6rem;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    font-size: 0.9rem;
    margin-left: 0.35rem;
}

/* Request-detail: equal-width button groups. */
.qi-btn { min-width: 7.5rem; }        /* Quick info buttons */
.req-actbtn { min-width: 8.5rem; }    /* Start timer / Add response */
.req-statusbtn { min-width: 8rem; }   /* Not completed / Hold / Completed / Invoiced / Personal / Future To-do */
.nr-actbtn { min-width: 10rem; }      /* New Request: Create request / Personal task / Cancel */

/* Rendered (sanitized) HTML email body in the conversation thread: keep images/tables within the box. */
.conv-html { overflow-x: auto; }
.conv-html img { max-width: 100%; height: auto; }
.conv-html table { max-width: 100%; }
.conv-html p:last-child { margin-bottom: 0; }

/* Dashboard stat cards double as links to the filtered History/Completed view — hover affordance. */
.stat-card { transition: background-color .1s, box-shadow .1s; }
.stat-card:hover { background-color: rgba(0, 0, 0, 0.03); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }

/* Dashboard team report: fixed layout so the weekly and monthly tables' columns align vertically; the spacer
   column between Finished Requests and Billed Hours is borderless so it reads as a gap. */
.report-table { table-layout: fixed; }
/* Keep every value (e.g. "22h 30m") on one line — no wrapping at the space. */
.report-table td, .report-table th { white-space: nowrap; }
.report-table td.report-gap,
.report-table th.report-gap {
    border: 0;
    background: transparent;
    padding: 0;
}
