/* Reusable tenant content and card styles, based on the V2 admin mockup. */
.tenant-content {
    --tenant-ink: #1a1a2e;
    --tenant-body: #4a5568;
    --tenant-muted: #8a97b0;
    --tenant-line: #e6e9f0;
    --tenant-orange: #c85a1a;
    --tenant-green-bg: #e2f5ec;
    --tenant-green-text: #2f8a60;
    --tenant-amber-bg: #fbf0d8;
    --tenant-amber-text: #9a7320;
    --tenant-blue-bg: #e8edff;
    --tenant-blue-text: #3a55c0;
}

.tenant-content .sub {
    max-width: 840px;
    margin: 6px 0 18px;
    color: var(--tenant-muted);
    font-size: 13px;
    line-height: 1.5;
}

.tenant-content .sub b {
    color: var(--tenant-body);
    font-weight: 600;
}

.tenant-content .tencard {
    margin-bottom: 14px;
    padding: 18px 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--tenant-line);
    border-radius: 12px;
}

.tenant-content .tencard.iso {
    border-left: 3px solid var(--tenant-orange);
}

.tenant-content .tenhead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 11px;
    margin-bottom: 14px;
}

.tenant-content .tenhead .tn {
    color: var(--tenant-ink);
    font-size: 16px;
    font-weight: 600;
}

.tenant-content .tengrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 22px;
}

.tenant-content .tf {
    min-width: 0;
}

.tenant-content .tf .tl {
    margin-bottom: 4px;
    color: var(--tenant-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.tenant-content .tf .tv {
    overflow-wrap: anywhere;
    color: var(--tenant-ink);
    font-size: 13px;
    font-weight: 500;
}

.tenant-content .tf .tv.none {
    color: var(--tenant-muted);
    font-weight: 400;
}

.tenant-content .tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.tenant-content .tag.green {
    color: var(--tenant-green-text);
    background: var(--tenant-green-bg);
}

.tenant-content .tag.amber {
    color: var(--tenant-amber-text);
    background: var(--tenant-amber-bg);
}

.tenant-content .tag.blue {
    color: var(--tenant-blue-text);
    background: var(--tenant-blue-bg);
}

.tenant-content .tag.gray {
    color: var(--tenant-muted);
    background: #eef0f5;
}

.tenant-content .tenant-empty {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--tenant-muted);
    text-align: center;
}

.tenant-content .tenant-empty h2 {
    color: var(--tenant-ink);
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .tenant-content .tengrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tenant-content .tencard {
        padding: 16px;
    }

    .tenant-content .tengrid {
        grid-template-columns: 1fr;
    }
}

/* Datatable headings, matching the V2 admin mockup. */
.kt-table thead th,
.kt-table thead th .kt-table-col-label {
    color: #4a5568;
    font-weight: 600;
}

/* Initials avatar in the users table, from the V2 admin mockup. */
.user-initials {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8edff;
    color: #3a55c0;
    font-size: 12px;
    font-weight: 600;
}

/* Brand navy buttons and links, used on the auth screens. */
.btn-navy {
    background: #1B2A4A;
    border-color: #1B2A4A;
    color: #fff;
}

.btn-navy:hover {
    background: #16233d;
    border-color: #16233d;
    color: #fff;
}

.link-navy {
    color: #1B2A4A;
}

.link-navy:hover {
    color: #16233d;
}

/* Tailwind's prebuilt stylesheet only emits the palette shades its own build
   used, so red-500 is absent while validation errors across the dashboard are
   written as text-red-500. Without this the class is silently dropped and
   errors render in body colour, reading as a hint rather than a problem. */
:root {
    --color-red-500: oklch(63.7% 0.237 25.331);
}

.text-red-500 {
    color: var(--color-red-500);
}

/* Platform tenant screens (11 September 2026).
   .tnote is the secondary line under a field. It exists so a field can say what
   is true of the PLATFORM rather than of the tenant: "Not stored per tenant"
   above it, and the reason under it. NEUTRAL, NEVER AMBER: amber reads as "this
   tenant is missing something somebody should fix", and these are limitations
   nobody can act on today. */
.tenant-content .tnote {
    margin-top: 3px;
    color: var(--tenant-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
}

.tenant-content .platform-banner {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
}

.tenant-content .platform-banner.error {
    color: var(--tenant-amber-text);
    background: var(--tenant-amber-bg);
}

.tenant-content .platform-banner.warn {
    color: var(--tenant-amber-text);
    background: var(--tenant-amber-bg);
}

/* A RED TAG, added 12 September 2026 for the readiness screen. The palette had
   green, amber, blue and grey, and amber was carrying two different meanings:
   "somebody needs to configure this" and "this is a data fault nothing can be
   configured around". The readiness screen has to separate them, because a
   broken mapping target is not fixed by assigning or routing anything. */
.tenant-content .tag.red {
    color: #8a1c1c;
    background: #fbe3e3;
}
