﻿* {
    box-sizing: border-box;
    font-family: arial, helvetica, sans-serif;
    font-size: 14px;
}

:root {
    /* Easy to tweak */
    --popup-bg: #ffffff;
    --popup-text: #1f2937; /* slate-800 */
    --popup-border: #e5e7eb; /* gray-200 */
    --popup-accent: #2563eb; /* blue-600 (primary) */
    --popup-accent-contrast: #ffffff; /* text on accent button */
    --popup-shadow: 0 20px 60px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.12);
    --popup-overlay: rgba(17,24,39,.35); /* subtle dim */
}

/* legacy grid styles reused on Customers / Products / Access / DB / TableManager */
.tablestyle {
    font-size: small;
    border: solid 1px #7f7f7f;
}

.altrowstyle {
    background-color: #edf5ff;
}

.headerstyle th {
    background: url(img/sprite.png) repeat-x 0px 0px;
    border-color: #989898 #cbcbcb #989898 #989898;
    border-style: solid solid solid none;
    border-width: 1px 1px 1px medium;
    color: #000;
    padding: 4px 5px 4px 10px;
    text-align: center;
    vertical-align: bottom;
}

    .headerstyle th a {
        font-weight: normal;
        text-decoration: none;
        text-align: center;
        color: #000;
        display: block;
        padding-right: 10px;
    }

.rowstyle .sortaltrow, .altrowstyle .sortaltrow {
    background-color: #edf5ff;
}

.rowstyle .sortrow, .altrowstyle .sortrow {
    background-color: #dbeaff;
}

.rowstyle td, .altrowstyle td {
    padding: 4px 10px 4px 10px;
    border-right: solid 1px #cbcbcb;
}

.headerstyle .sortascheader,
.headerstyle .sortdescheader {
    background: url(img/sprite.png) repeat-x 0px -100px;
}

    .headerstyle .sortascheader a {
        background: url(img/dt-arrow-up.png) no-repeat right 50%;
    }

    .headerstyle .sortdescheader a {
        background: url(img/dt-arrow-dn.png) no-repeat right 50%;
    }

/* === Login page redesign === */
body.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(1200px 600px at 10% -10%, rgba(255,255,255,.25) 0%, rgba(255,255,255,0) 60%), linear-gradient(135deg,#0ea5e9 0%,#2563eb 45%,#1e3a8a 100%);
}

.login-card {
    width: min(92vw,420px);
    background: #fff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 25px 70px rgba(0,0,0,.20), 0 10px 20px rgba(0,0,0,.08);
    padding: 28px 24px 24px;
    animation: pop .22s ease-out;
}

@keyframes pop {
    from {
        transform: translateY(6px);
        opacity: .0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

.login-card header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.login-brand {
    width: 54px;
    height: 54px;
    background-image: url("../images/login.png");
    background-size: cover; /* or 'contain' if you want full visibility */
    background-position: center;
    background-repeat: no-repeat;
    margin-right: 10px;
}

.login-card h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.login-card p.sub {
    margin: .25rem 0 1rem 0;
    color: #6b7280;
    font-size: .95rem;
}

/* error/info */
.login-error {
    display: block;
    margin: .25rem 0 1rem 0;
    padding: .65rem .75rem;
    background: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fecaca;
    border-radius: 10px;
    line-height: 1.35;
    font-weight: 600;
}

.project-path-note {
    margin: 0 0 18px;
    color: #fff;
    line-height: 1.45;
}

.project-path-note code {
    color: inherit;
    background: none;
    padding: 0;
}

    .login-error:empty {
        display: none;
    }


/* form fields */
.login-form {
    display: grid;
    gap: .9rem;
    margin-top: .25rem;
}

.form-field label {
    display: block;
    font-size: .9rem;
    color: #374151;
    margin-bottom: .35rem;
}

/* Inputs */
.input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 5px;
    line-height: 1.3;
    background: #fff;
}

    .input:focus {
        outline-offset: 2px;
        outline: 1.5px solid blue;
        box-shadow: none;
        border-width: 1px;
        border: 1px solid #6B7789;
    }

/* button */
.btn-primary {
    width: 100%;
    padding: .8rem 1rem;
    border: 0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(37,99,235,.35);
}

    .btn-primary:hover {
        filter: brightness(1.03);
    }

    .btn-primary:active {
        transform: translateY(1px);
    }

/* Management dashboard */
body.mgmt-page {
    min-height: 100vh;
    margin: 0;
    padding: 36px 24px 56px;
    background: radial-gradient(1200px 600px at 10% -10%, rgba(255,255,255,.25) 0%, rgba(255,255,255,0) 60%), linear-gradient(135deg,#0ea5e9 0%,#2563eb 45%,#1e3a8a 100%);
    background-attachment: fixed;
}

/* Shared shell for all authenticated management pages */
.app-shell-bar {
    width: 100%;
    max-width: none;
    margin: 0 auto 24px;
}

.app-shell-bar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.app-shell-context {
    display: flex;
    grid-column: 1;
    align-items: center;
    justify-self: start;
    min-width: 0;
}

.app-shell-account-only {
    grid-template-columns: minmax(0, 1fr) max-content;
}

.mgmt-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.mgmt-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.mgmt-heading {
    min-width: 0;
}

.mgmt-title {
    margin: 0;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.mgmt-subtitle {
    max-width: 620px;
    margin: 8px 0 0;
    color: rgba(255,255,255,.86);
    font-size: 1rem;
    line-height: 1.45;
}

.mgmt-account {
    display: flex;
    grid-column: 2;
    align-items: center;
    justify-content: flex-start;
    justify-self: end;
    gap: 10px;
    width: max-content;
    max-width: 520px;
    padding: 6px 8px 6px 12px;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 12px;
    background: rgba(15,23,42,.18);
    box-shadow: 0 8px 22px rgba(15,23,42,.12);
    color: #fff;
    margin-left: 0;
}

.mgmt-account .mgmt-user {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mgmt-account .btn-ghost {
    flex: 0 0 auto;
    padding: .32rem .58rem;
}

.mgmt-user-label,
.mgmt-user-name {
    display: inline;
}

.mgmt-user-label {
    color: rgba(255,255,255,.72);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mgmt-user-name {
    margin-left: 6px;
    color: #fff;
    font-size: .88rem;
    font-weight: 800;
}

/* Fixed top-right overlay for credentials + sign out */
.mgmt-topright {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    z-index: 1000;
}

    .mgmt-topright .mgmt-user {
        color: #fff;
        font-weight: 600;
    }

.btn-ghost {
    background: transparent;
    text-shadow: 0px 0px 5px #00000044;
    color: #fff;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 8px;
    padding: .45rem .7rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.mgmt-topright .btn-ghost:hover,
.mgmt-account .btn-ghost:hover {
    background: rgba(255,255,255,.12);
}

@media (max-width: 680px) {
    .app-shell-bar-inner {
        align-items: center;
        gap: 10px;
    }

    .app-shell-context,
    .app-shell-context .btn-ghost {
        width: fit-content;
    }

    .app-shell-bar .mgmt-account {
        max-width: calc(100% - 10px);
        justify-self: end;
        margin-left: 0;
    }
}

.mgmt-sections {
    display: grid;
    gap: 30px;
}

.mgmt-section {
    min-width: 0;
}

.mgmt-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255,255,255,.35);
}

.mgmt-section-heading h2 {
    flex: 0 0 auto;
    margin: 0;
    color: #fff;
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mgmt-section-heading p {
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: .84rem;
    line-height: 1.4;
    text-align: right;
}

.mgmt-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mgmt-card {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 92px;
    gap: 15px;
    padding: 15px 46px 15px 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 9px 24px rgba(15,23,42,.15);
    color: #0f172a;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.mgmt-card::after {
    position: absolute;
    top: 50%;
    right: 18px;
    color: #64748b;
    content: "\2192";
    font-size: 1.25rem;
    transform: translateY(-50%);
    transition: transform .15s ease, color .15s ease;
}

.mgmt-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 13px 30px rgba(15,23,42,.22);
    transform: translateY(-2px);
}

.mgmt-card:hover::after {
    color: #2563eb;
    transform: translate(3px,-50%);
}

.mgmt-card:focus-visible {
    outline: 3px solid #fef08a;
    outline-offset: 3px;
}

.mgmt-card-icon {
    display: grid;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 13px;
    background: #eff6ff;
}

.mgmt-card-icon img.ico {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.mgmt-card-copy,
.mgmt-card-title,
.mgmt-card-description {
    display: block;
    min-width: 0;
}

.mgmt-card-title {
    color: #0f172a;
    font-size: 1.03rem;
    font-weight: 800;
    line-height: 1.25;
}

.mgmt-card-description {
    margin-top: 4px;
    color: #475569;
    font-size: .84rem;
    line-height: 1.38;
}

@media (max-width:760px) {
    body.mgmt-page {
        padding: 24px 16px 40px;
    }

    .mgmt-header,
    .mgmt-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .mgmt-header {
        gap: 18px;
    }

    .mgmt-account {
        justify-content: flex-start;
        max-width: 520px;
    }

    .mgmt-section-heading {
        gap: 4px;
    }

    .mgmt-section-heading p {
        text-align: left;
    }

    .mgmt-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Keep the legacy top-right controls on the table pages compact. */
@media (max-width:560px) {
    .mgmt-topright {
        top: 12px;
        right: 12px;
        gap: 8px;
    }

    .mgmt-title {
        font-size: 1.7rem;
    }

    .mgmt-account {
        align-items: center;
        flex-direction: row;
    }

    .mgmt-account .btn-ghost {
        text-align: center;
    }

    .mgmt-card {
        min-height: 84px;
        padding: 13px 42px 13px 13px;
    }

    .mgmt-card-icon {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
    }

    .mgmt-card-icon img.ico {
        width: 38px;
        height: 38px;
    }
}

/* Shared "general" pages (Customers, Products, Access, DB, TableManager) */

body.general-page {
    min-height: 100vh;
    padding: 32px 20px;
    background: radial-gradient(1200px 600px at 10% -10%, rgba(255,255,255,.25) 0%, rgba(255,255,255,0) 60%), linear-gradient(135deg,#0ea5e9 0%,#2563eb 45%,#1e3a8a 100%);
}

.general-title {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 25px auto;
}

.general-container {
    width: 100%;
    min-width: 0;
    max-width: none;
    font-weight: 600;
    font-size: 1.35rem;
    margin: 0 auto 14px;
}

.general-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 25px 70px rgba(0,0,0,.08), 0 10px 20px rgba(0,0,0,.04);
    padding: 16px;
}

.general-card-header {
    position: absolute;
    top: 18px;
    left: 28px;
    margin: 0;
    z-index: 5;
}

.general-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin: 10px 0 0;
}

    .general-actions .btn-primary {
        width: auto;
    }

/* Scrollable table wrapper so the grid never blows out the page width */
.table-scroll {
    overflow: auto;
    background: #fff;
}

/* Make CompleteGridView look nice inside the card */
.tablestyle.general-grid {
    width: 100% !important;
    border: 0; /* card provides the border */
    border-collapse: separate;
    border-spacing: 0;
}

/* Keep cells tidy; allow long GUIDs/comments to wrap instead of expanding width */
.general-grid td,
.general-grid th {
    white-space: nowrap;
}

/* Dynamic BoundField editors should use the available table-cell width. */
.general-grid td > input[type="text"],
.general-grid td > textarea {
    display: block;
    width: 100%;
    min-width: 0;
}

/* Read-only GridView boolean values are rendered as disabled checkboxes.
   Keep them unmistakable instead of inheriting the browser's faded disabled UI. */
.general-grid input[type="checkbox"]:disabled {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 2px solid #9ca3af;
    border-radius: 3px;
    background-color: #d1d5db;
    opacity: 1;
    vertical-align: middle;
}

.general-grid input[type="checkbox"]:disabled:checked {
    border-color: #111827;
    background-color: #111827;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5 6.5 12 13 4.5'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 13px 13px;
}

    .general-grid td.wrap,
    .general-grid th.wrap {
        white-space: normal;
        overflow-wrap: anywhere;
    }

/* Optional: sticky header when scrolling horizontally on small screens */
.headerstyle th {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Button color: accessible green against blue bg */
body.general-page .btn-primary {
    background: #16a34a; /* green-600 */
    border-color: #15803d;
    color: #fff;
    border: 1px;
}

    body.general-page .btn-primary:hover {
        background: #15803d; /* green-700 */
        border-color: #166534;
        border: 1px;
    }

/* Secondary "action" button used in TableManager / DB Manager */
.btn-primary2 {
    display: inline-block;
    padding: 8px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    background: #ffffff;
    color: #000000; /*color:#2563eb; */
    border: 1px solid #bfdbfe;
    box-shadow: 0px 10px 20px rgba(14,56,149,.40);
}

    .btn-primary2:hover {
        background: #eff6ff;
        box-shadow: 0 6px 16px rgba(14,56,149,.50);
    }

    .btn-primary2:active {
        transform: translateY(1px);
        box-shadow: 0 3px 8px rgba(14,56,149, 0.2);
    }

.general-actions .btn-primary2 {
    width: auto;
}

.floating-license-create-card {
    max-width: 880px;
    margin: 0 auto 18px;
    color: #111827;
}

.floating-license-create-card h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.floating-license-create-summary {
    display: block;
    margin-bottom: 14px;
    color: #374151;
    font-size: .95rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.floating-license-create-field {
    display: grid;
    gap: 5px;
}

.floating-license-create-field label {
    font-size: .95rem;
    font-weight: 700;
}

.floating-license-endpoint-warning {
    display: block;
    margin-top: 10px;
    color: #92400e;
    font-size: .9rem;
    font-weight: 700;
}

.floating-license-client-identity {
    margin-top: 13px;
}

.floating-license-client-identity label {
    font-size: .95rem;
    font-weight: 700;
}

.floating-license-client-identity-hint {
    display: block;
    margin: 4px 0 0 25px;
    color: #4b5563;
    font-size: .88rem;
    line-height: 1.4;
}

/* generic text inputs for management pages */
.generalinput {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 5px;
    line-height: 1.3;
    background: #fff; /*#E2E5E9;*/
}

input.generalinput:focus,
select.generalinput:focus {
    outline: 2px solid #ffffff66;
    outline-offset: 0px;
    border-color: #ffffff66;
}

/* CompleteGridView command buttons / computed columns */
.general-grid input[type="button"] {
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid #A9B1BC;
    color: #111827;
    cursor: pointer;
}

    .general-grid input[type="button"]:hover {
        background: #e5e7eb;
    }

.btn-computed {
    display: inline-block;
    padding: 0px;
    border-radius: 8px !important;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    background: #FFFFFF !important;
    text-decoration: none !important;
    color: #000000; /*color:#2563eb; */
    border: 1px solid #e2e2d5;
    box-shadow: 0 5px 10px rgba(15, 23, 42, 0.10);
}

    .btn-computed:hover {
        background: #EFF6FF !important;
        box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08) !important;
    }

    .btn-computed:active {
        background: #EFF6FF !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.01) !important;
    }

.btn-computed-clear,
[data-relation-clear="true"] {
    min-width: 34px;
    margin-left: 5px;
    padding: 5px 10px !important;
    border-color: #fecaca !important;
    background: #fff7f7 !important;
    box-shadow: none;
    color: #991b1b !important;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.btn-computed-clear:hover,
[data-relation-clear="true"]:hover {
    border-color: #fca5a5 !important;
    background: #fee2e2 !important;
    box-shadow: none !important;
}

.btn-computed-clear:focus-visible,
[data-relation-clear="true"]:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

.btn-id {
    display: inline-block;
    min-width: 30px;
    min-height: 28px;
    margin-left: 5px;
    padding: 3px 7px;
    border: 1px solid #a5b4fc;
    border-radius: 8px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    vertical-align: middle;
    cursor: pointer;
}

.btn-id:hover {
    border-color: #818cf8;
    background: #e0e7ff;
}

.btn-id:focus-visible {
    outline: 2px solid #c7d2fe;
    outline-offset: 2px;
}

.record-actions-trigger {
    min-width: 34px;
    padding-right: 9px;
    padding-left: 9px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

.record-actions-menu {
    position: fixed;
    z-index: 10000;
    display: flex;
    min-width: 145px;
    padding: 5px;
    flex-direction: column;
    gap: 2px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}

.record-actions-menu-item {
    min-height: 30px;
    padding: 5px 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #1e293b;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.record-actions-menu-item:hover,
.record-actions-menu-item:focus-visible {
    outline: none;
    background: #eef2ff;
    color: #3730a3;
}

.record-actions-menu-item:disabled {
    color: #94a3b8;
    cursor: default;
}

.record-detail-list {
    display: flex;
    max-height: min(65vh, 640px);
    margin-top: 8px;
    padding-right: 4px;
    flex-direction: column;
    gap: 14px;
    overflow: auto;
    text-align: left;
}

.record-detail-section {
    padding: 13px 14px;
    border: 1px solid #dbe3ef;
    border-radius: 9px;
    background: #f8fafc;
}

.record-detail-heading {
    margin: 0;
    color: #172554;
    font-size: 1rem;
}

.record-detail-path {
    margin-top: 2px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.record-detail-summary {
    margin-top: 7px;
    color: #334155;
    font-weight: 700;
}

.record-detail-fields {
    display: grid;
    grid-template-columns: minmax(135px, 0.38fr) minmax(0, 1fr);
    gap: 0;
    margin: 10px 0 0;
    border-top: 1px solid #e2e8f0;
}

.record-detail-fields dt,
.record-detail-fields dd {
    margin: 0;
    padding: 7px 8px;
    border-bottom: 1px solid #e2e8f0;
    overflow-wrap: anywhere;
}

.record-detail-fields dt {
    color: #475569;
    font-weight: 700;
}

.record-detail-fields dd {
    color: #0f172a;
    white-space: pre-wrap;
}

.picker-current-selection {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3px 10px;
    align-items: baseline;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 9px;
    background: #eff6ff;
}

.picker-current-selection-label {
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.picker-current-selection-value {
    min-width: 0;
    color: #172554;
    overflow-wrap: anywhere;
}

.picker-current-selection-note {
    grid-column: 2;
    color: #475569;
    font-size: 0.85rem;
}

.general-grid tr.picker-current-row > td {
    background: #dbeafe !important;
}

.btn-select-current,
.general-grid input[type="button"].btn-select-current,
.general-grid input[type="submit"].btn-select-current {
    background: #64748b !important;
    color: #ffffff !important;
    cursor: default;
    opacity: 1;
}

@media (max-width: 600px) {
    .record-detail-fields {
        grid-template-columns: 1fr;
    }

    .record-detail-fields dt {
        padding-bottom: 2px;
        border-bottom: 0;
    }

    .record-detail-fields dd {
        padding-top: 2px;
    }

    .picker-current-selection {
        grid-template-columns: 1fr;
    }

    .picker-current-selection-note {
        grid-column: 1;
    }
}

.identifier-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    text-align: left;
}

.identifier-row {
    display: grid;
    grid-template-columns: minmax(110px, auto) minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.identifier-label {
    color: #334155;
    font-weight: 700;
}

.identifier-value {
    box-sizing: border-box;
    min-width: 0;
    min-height: 32px;
    padding: 4px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #111827;
    background: #f8fafc;
    font-family: Consolas, "Courier New", monospace;
}

.identifier-copy-button {
    min-height: 32px;
    padding: 4px 10px;
    border: 1px solid #818cf8;
    border-radius: 6px;
    color: #3730a3;
    background: #eef2ff;
    font-weight: 700;
    cursor: pointer;
}

.identifier-copy-button:hover {
    background: #e0e7ff;
}

.identifier-copy-button:focus-visible,
.identifier-value:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.btn-computed-picker {
    display: inline-block;
    padding: 0px;
    border-radius: 8px !important;
    font-weight: 700;
    font-size: 1rem;
    background: #FFFFFF !important;
    color: #000000;
    cursor: default !important;
    border: 1px solid #B7BEC7 !important; /*border: 0px solid #e2e2d5 !important;*/
}

/* Standard Edit / Delete / custom commands (DbViewHelper RefreshStyles) */
.btn-command {
    display: inline-block;
    min-height: 28px;
    padding: 3px 10px !important;
    font-size: 14px;    
    border-radius: 8px !important;
    border: 1px solid #A9B1BC !important;
    background: #f8f8f8;
    color: #000000 !important;
    cursor: pointer;
    margin: 0;
    line-height: 20px;
    vertical-align: middle;
    letter-spacing: normal;
    word-spacing: 0;
    font-weight: 400;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    text-decoration: none;
    text-align: center;
    text-indent: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

    .btn-command:hover {
        background: #EFF6FF !important;
        box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08) !important;
    }

    .btn-command:active {
        background: #EFF6FF !important;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.01) !important;
    }

/*select button in picker window*/
.btn-select {
    display: inline-block;
    width: 100%;
    margin: 3px 0;
    padding: 4px 12px;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(37,99,235,.10);
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
}

/* CommandField renders picker selection as an input button under the CSP.
   Keep the established picker appearance despite the more specific generic
   .general-grid input[type="button"] rules above. */
.general-grid input[type="button"].btn-select,
.general-grid input[type="submit"].btn-select {
    padding: 4px 12px;
    border: 0;
    background: #2563eb;
    color: #fff;
    text-align: center;
}

    .btn-select:hover,
    .general-grid input[type="button"].btn-select:hover,
    .general-grid input[type="submit"].btn-select:hover {
        background: #2563eb;
        filter: brightness(1.03);
    }

    .btn-select:active {
        transform: translateY(1px);
    }

/* CompleteGridView filter toolbar */
.general-grid .eziriz-filter-cell {
    padding: 10px;
    background: #f8fafc;
    white-space: normal;
}

.eziriz-filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
}

.eziriz-filter-toolbar [hidden] {
    display: none !important;
}

.eziriz-filter-group {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    gap: 3px;
    min-width: 105px;
}

.eziriz-filter-field-group,
.eziriz-filter-text-group {
    min-width: 180px;
}

.eziriz-filter-date-group {
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
}

.eziriz-filter-date-part {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.eziriz-filter-label {
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.eziriz-filter-input,
.eziriz-filter-select {
    min-height: 28px;
    padding: 5px 8px;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
}

.eziriz-filter-input {
    width: 100%;
}

.eziriz-filter-date {
    min-width: 145px;
}

.eziriz-filter-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.eziriz-filter-submit,
.eziriz-filter-clear {
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.eziriz-filter-submit {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff;
}

.eziriz-filter-submit:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
}

.eziriz-filter-clear {
    border: 1px solid #94a3b8;
    background: #fff;
    color: #334155;
}

.eziriz-filter-clear:hover {
    background: #e2e8f0;
}

.eziriz-current-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
}

.eziriz-filter-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 3px 4px 3px 9px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 600;
}

.eziriz-filter-chip-text {
    overflow-wrap: anywhere;
    white-space: normal;
}

.eziriz-filter-chip-connector {
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.eziriz-filter-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    margin-left: 4px;
    border-radius: 50%;
    color: #1e3a8a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.eziriz-filter-chip-remove:hover {
    background: #dbeafe;
    color: #1e40af;
}

.general-grid .eziriz-count-cell {
    padding: 5px 10px;
    background: #f8fafc;
    color: #334155;
    font-weight: 400;
    white-space: normal;
}

.general-grid .eziriz-filter-order-note {
    margin-top: 5px;
    color: #475569;
    font-size: 12px;
    font-weight: 400;
}

.general-grid .eziriz-filter-error {
    margin-top: 6px;
    padding: 5px 8px;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    background: #fef2f2;
    color: #991b1b;
    font-weight: 600;
}

.general-grid .eziriz-pager-cell {
    padding: 9px 10px;
    background: #f8fafc;
    text-align: center;
    white-space: normal;
}

.eziriz-pager-cell > table {
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 4px 0;
}

.eziriz-pager-cell a,
.eziriz-pager-cell span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    padding: 4px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #1e3a8a;
    text-decoration: none;
}

.eziriz-pager-cell a:hover {
    border-color: #60a5fa;
    background: #eff6ff;
}

.eziriz-pager-cell [aria-current="page"] {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
}

.eziriz-filter-input:focus-visible,
.eziriz-filter-select:focus-visible,
.eziriz-filter-submit:focus-visible,
.eziriz-filter-clear:focus-visible,
.eziriz-filter-chip-remove:focus-visible,
.eziriz-pager-cell a:focus-visible,
.general-grid .headerstyle a:focus-visible,
.general-grid input[type="button"]:focus-visible,
.general-grid input[type="submit"]:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

.general-grid .eziriz-filter-input:focus-visible,
.general-grid .eziriz-filter-select:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

@media (max-width: 720px) {
    .eziriz-filter-group,
    .eziriz-filter-field-group,
    .eziriz-filter-text-group {
        flex: 1 1 180px;
        min-width: 0;
    }

    .eziriz-filter-date-group {
        flex: 1 1 100%;
    }

    .eziriz-filter-date-part {
        flex: 1 1 145px;
    }

    .eziriz-filter-actions {
        flex: 1 1 100%;
    }
}

/* General textboxes (fallback selector) */
input[type="text"]:focus {
    outline: 1.5px solid blue;
    box-shadow: none;
    border-width: 1px;
    border: 1px solid #6B7789;
}

/* Grid header borders inside cards */
.general-grid .headerstyle th {
    border-bottom: 1px solid #6B7789;
    border-left: 1px solid #6B7789;
    border-right: 1px solid #6B7789;
}

/* Page shell + grouped "cards" on TableManager / DB Manager */
.page-shell {
    max-width: 1000px;
    margin: 0 auto;
}

/* one card per logical group */
.page-section {
    margin: 0 0 28px;
    padding: 14px 18px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.40);
    background: rgba(15,23,42,.20); /* dark translucent card on the blue bg */
    box-shadow: 0 18px 40px rgba(15,23,42,.35);
}

/* header inside each card */
.page-section-header {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    padding-bottom: 6px;
}

.page-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .01em;
}

.page-section-subtitle {
    font-size: .85rem;
    font-weight: 400;
    color: #eee;
    margin-top: 2px;
}

/* make the panels inside a section stack nicely */
.page-section .managerentry {
    margin: 6px 0;
}

/* center the table preview card and give it some breathing room */
.page-preview-wrapper {
    display: table;
    margin: 6px auto 0 auto;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px;
}

/* Virtual licensing service endpoint management */
.service-endpoints-page {
    max-width: 1080px;
}

.service-endpoints-page label,
.service-endpoints-page .service-options {
    color: #fff;
}

.service-message {
    display: block;
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.45;
    position: sticky;
    top: 12px;
    z-index: 50;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .22);
}

.service-error {
    color: #7f1d1d;
    background: #fee2e2;
    border: 2px solid #dc2626;
}

.service-success {
    color: #14532d;
    background: #dcfce7;
    border: 2px solid #16a34a;
}

.service-warning {
    color: #713f12;
    background: #fef3c7;
    border: 2px solid #d97706;
}

.service-project-missing {
    color: #991b1b;
    font-weight: 700;
}

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

.service-editor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-field {
    min-width: 0;
}

.service-field > label {
    display: block;
    margin-bottom: 5px;
    font-size: .9rem;
    font-weight: 700;
}

.service-options {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 14px;
}

.tracker-options {
    color: #fff;
}

.tracker-privacy-note {
    margin: 14px 0 0;
}

.tracker-settings-success {
    color: #dcfce7;
    font-weight: 700;
}

.service-url-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    min-width: 0;
}

.service-url-kind {
    margin-top: 10px;
    margin-bottom: -4px;
    color: rgba(255, 255, 255, .72);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.service-url {
    flex: 1 1 auto;
    min-width: 0;
    padding: 7px 9px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #0f172a;
    font-family: Consolas, "Courier New", monospace;
    font-size: .82rem;
}

.service-copy {
    flex: 0 0 auto;
    padding: 6px 10px;
    font-size: .82rem;
}

.service-profile-card {
    margin-top: 14px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.45);
    background: #fff;
    color: #0f172a;
}

.service-profile-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.service-profile-heading h2 {
    margin: 0;
    font-size: 1.05rem;
}

.service-profile-meta {
    margin-top: 3px;
    color: #475569;
    font-size: .84rem;
}

.service-profile-urls {
    margin-top: 10px;
}

.service-url-group {
    display: grid;
    gap: 2px;
}

.service-url-group + .service-url-group {
    margin-top: 8px;
}

.service-profile-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.service-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
}

.service-badge-on {
    color: #14532d;
    background: #dcfce7;
}

.service-badge-off {
    color: #7f1d1d;
    background: #fee2e2;
}

.service-empty {
    color: #fff;
    padding: 8px 0;
}

@media (max-width: 760px) {
    .service-legacy-grid,
    .service-editor-grid {
        grid-template-columns: 1fr;
    }

    .service-url-row {
        align-items: stretch;
    }
}

/* Management health warning and System Health page */
.mgmt-health-warning {
    max-width: 720px;
    margin: 0 auto 34px;
    padding: 14px 16px;
    border: 2px solid #f59e0b;
    border-radius: 10px;
    background: #fffbeb;
    color: #78350f;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .22);
    line-height: 1.45;
}

.mgmt-health-warning-title {
    margin-bottom: 3px;
    font-size: 1rem;
    font-weight: 800;
}

.mgmt-health-link {
    display: inline-block;
    margin-left: 10px;
    color: #92400e;
    font-weight: 800;
    text-decoration: underline;
}

.system-health-page {
    max-width: 960px;
}

.health-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.health-intro {
    max-width: 720px;
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .88);
    line-height: 1.5;
}

.health-summary {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
}

.health-summary-ok {
    border: 2px solid #16a34a;
    background: #dcfce7;
    color: #14532d;
}

.health-summary-problem {
    border: 2px solid #d97706;
    background: #fef3c7;
    color: #713f12;
}

.health-summary-title {
    font-size: 1.05rem;
    font-weight: 800;
}

.health-checked,
.health-readonly-note {
    display: block;
    margin-top: 4px;
    font-size: .85rem;
}

.health-issue-card {
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .16);
}

.health-issue-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.health-issue-heading h2 {
    margin: 7px 0 0;
    font-size: 1.08rem;
}

.health-issue-card p {
    margin: 10px 0;
    color: #334155;
    line-height: 1.5;
}

.health-severity,
.health-affected {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
}

.health-severity-error {
    background: #fee2e2;
    color: #991b1b;
}

.health-severity-warning {
    background: #fef3c7;
    color: #92400e;
}

.health-affected {
    flex: 0 0 auto;
    background: #e2e8f0;
    color: #334155;
}

.health-examples {
    margin: 12px 0;
    padding: 11px 13px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.health-examples-title {
    font-weight: 800;
}

.health-examples ul {
    margin: 7px 0 0 20px;
    padding: 0;
}

.health-examples li {
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.health-open-link {
    display: inline-block;
    margin-top: 4px;
}

@media (max-width: 700px) {
    .health-page-heading,
    .health-issue-heading {
        flex-direction: column;
    }

    .mgmt-health-link {
        display: block;
        margin: 8px 0 0;
    }
}

/* E-commerce provider, mapping and outbox administration */
.commerce-page {
    max-width: 1120px;
}

.commerce-page label,
.commerce-page .service-options {
    color: #fff;
}

.commerce-intro {
    max-width: 850px;
    margin: -5px 0 20px;
    color: rgba(255, 255, 255, .88);
    line-height: 1.55;
}

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

.commerce-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.commerce-span-two {
    grid-column: span 2;
}

.commerce-options {
    row-gap: 10px;
}

.commerce-field-note {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, .84);
    font-size: .8rem;
    line-height: 1.35;
}

.commerce-template-grid {
    margin-top: 20px;
}

.commerce-body-template {
    margin-top: 18px;
}

.commerce-template {
    width: 100%;
    resize: vertical;
    box-sizing: border-box;
}

.commerce-test-address {
    width: min(320px, 100%);
}

.commerce-callback-row {
    margin-top: 12px;
}

.commerce-table-wrap {
    overflow-x: auto;
    margin-top: 14px;
    border-radius: 9px;
    border: 1px solid #d7e0eb;
    background: #fff;
}

.commerce-table {
    width: 100%;
    border-collapse: collapse;
    color: #172033;
    font-size: .84rem;
}

.commerce-table th,
.commerce-table td {
    padding: 10px 11px;
    border-bottom: 1px solid #e4eaf1;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.commerce-table th {
    color: #334155;
    background: #f1f5f9;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.commerce-table tr:last-child td {
    border-bottom: 0;
}

.commerce-table code {
    color: #334155;
    font-size: .78rem;
}

@media (max-width: 900px) {
    .commerce-grid,
    .commerce-grid-three {
        grid-template-columns: 1fr;
    }

    .commerce-span-two {
        grid-column: auto;
    }
}

/* Dedicated floating-license session monitor. */
.floating-monitor-page {
    width: 100%;
}

.floating-monitor-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.floating-monitor-heading .general-title {
    margin: 0;
    text-align: left;
}

.floating-monitor-intro {
    max-width: 760px;
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .86);
    line-height: 1.5;
}

.floating-monitor-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.floating-monitor-message {
    margin: 0 0 16px;
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: .88rem;
}

.floating-monitor-success {
    color: #d1fae5;
    border-color: rgba(52, 211, 153, .45);
    background: rgba(6, 78, 59, .72);
}

.floating-monitor-error {
    color: #fee2e2;
    border-color: rgba(248, 113, 113, .55);
    background: rgba(127, 29, 29, .74);
}

.floating-monitor-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.floating-monitor-stat {
    min-width: 0;
    padding: 15px 17px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    background: rgba(7, 31, 66, .46);
    box-shadow: 0 7px 20px rgba(0, 0, 0, .1);
}

.floating-monitor-stat-label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, .7);
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.floating-monitor-stat strong {
    display: block;
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 600;
}

.floating-monitor-details {
    margin-bottom: 16px;
}

.floating-monitor-details dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 22px;
    margin: 0;
}

.floating-monitor-details dl > div {
    min-width: 0;
}

.floating-monitor-details dt {
    margin-bottom: 4px;
    color: #64748b;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.floating-monitor-details dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #172033;
    font-size: .88rem;
}

.floating-monitor-details code,
.floating-monitor-table code {
    color: #334155;
    font-family: Consolas, "Courier New", monospace;
    font-size: .79rem;
}

.floating-monitor-sessions {
    padding: 0;
    overflow: hidden;
}

.floating-monitor-table-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 17px;
    border-bottom: 1px solid #dce4ee;
}

.floating-monitor-table-heading h2 {
    margin: 0;
    color: #172033;
    font-size: 1rem;
}

.floating-monitor-table-heading span {
    color: #64748b;
    font-size: .78rem;
}

.floating-monitor-table {
    width: 100%;
    border-collapse: collapse;
    color: #172033;
    font-size: .84rem;
}

.floating-monitor-table th,
.floating-monitor-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e4eaf1;
    text-align: left;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.floating-monitor-table th {
    color: #475569;
    background: #f1f5f9;
    font-size: .72rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.floating-monitor-table tbody tr:last-child td {
    border-bottom: 0;
}

.floating-monitor-table tbody tr:hover {
    background: #f8fafc;
}

.floating-session-remaining {
    display: inline-block;
    min-width: 54px;
    color: #0f766e;
    font-weight: 600;
}

.floating-monitor-empty {
    padding: 28px 18px;
    color: #64748b;
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .floating-monitor-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .floating-monitor-details dl {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .floating-monitor-heading,
    .floating-monitor-table-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .floating-monitor-actions {
        justify-content: flex-start;
    }

    .floating-monitor-summary {
        grid-template-columns: 1fr;
    }
}
