/* Data API Manage - the site's own few styles on top of the Kendo Default theme. */
html, body {
    margin: 0;
    height: 100%;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #1f2937;
    background: #f5f6f8;
}

a { color: #2563eb; }

.dm-header {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 44px;
    padding: 0 16px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.dm-brand {
    font-weight: 600;
    font-size: 15px;
    color: #111827;
    text-decoration: none;
}

.dm-env {
    padding: 1px 8px;
    border-radius: 10px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 600;
}

.dm-spacer { flex: 1; }
.dm-who { color: #4b5563; }
.dm-inline { display: inline; margin: 0; }

.dm-body {
    display: flex;
    min-height: calc(100% - 45px);
}

.dm-nav {
    width: 180px;
    flex: none;
    padding: 12px 0;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
}

.dm-nav-group {
    padding: 14px 16px 4px;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dm-nav-item {
    display: block;
    padding: 7px 16px;
    color: #1f2937;
    text-decoration: none;
}

.dm-nav-item:hover { background: #f3f4f6; }

.dm-active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #2563eb;
}

.dm-soon { color: #9ca3af; cursor: default; }
.dm-soon:hover { background: none; }

.dm-main {
    flex: 1;
    min-width: 0;
    padding: 20px 24px;
}

.dm-main h1 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 600;
}

.dm-panel {
    margin-bottom: 16px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.dm-facts { border-collapse: collapse; }
.dm-facts th { padding: 4px 16px 4px 0; color: #6b7280; font-weight: 500; text-align: left; white-space: nowrap; }
.dm-facts td { padding: 4px 0; }

.dm-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.dm-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.dm-field label { color: #4b5563; font-size: 13px; }
.dm-field .k-input, .dm-field .k-textbox { width: 100%; }
.dm-muted { color: #6b7280; font-size: 13px; }

.dm-error {
    margin-bottom: 12px;
    padding: 8px 10px;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    background: #fef2f2;
    color: #991b1b;
}

.dm-ok {
    margin-bottom: 12px;
    padding: 8px 10px;
    border: 1px solid #86efac;
    border-radius: 4px;
    background: #f0fdf4;
    color: #166534;
}

.dm-secret {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    background: #111827;
    color: #f9fafb;
    font-family: Consolas, "Courier New", monospace;
    font-size: 15px;
    letter-spacing: .05em;
    user-select: all;
}

.dm-actions .k-button { margin: 0 4px 4px 0; }

/* sign-in pages */
.dm-auth-body {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: auto;
    min-height: 100%;
    box-sizing: border-box;
    padding: 8vh 0 24px;
}

.dm-auth-card {
    width: 400px;
    max-width: calc(100% - 32px);
}

.dm-auth-card .k-card-body .k-button { width: 100%; }
.dm-qr { display: flex; justify-content: center; margin: 8px 0 12px; }
