/* TF-Style.css */

:root
{
    --tf-black: #000000;
    --tf-blue: #4EA8DE;
    --tf-blue-dark: #2d6cdf;
    --tf-page-bg: #f4f8fb;
    --tf-text: #1f2933;
    --tf-border: #d9e2ec;
}

body
{
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--tf-page-bg);
    color: var(--tf-text);
    line-height: 1.5;
}

.tf-skip-link
{
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 1200;
    background: #ffffff;
    color: #000000;
    padding: 10px 14px;
    border: 2px solid var(--tf-blue);
    border-radius: 6px;
}

.tf-skip-link:focus
{
    top: 12px;
}

.tf-top-nav
{
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #020406 0%, #07121a 100%);
    border-bottom: 2px solid var(--tf-blue);
    box-shadow: 0 8px 24px rgba(7, 18, 26, 0.2);
    width: 100%;
}

.tf-nav-inner
{
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 3vw, 34px);
    padding: 0 clamp(18px, 3vw, 40px);
    box-sizing: border-box;
}

.tf-brand
{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    flex: 0 0 auto;
}

.tf-brand-logo
{
    height: 42px;
    width: auto;
    max-width: 42px;
    object-fit: contain;
    display: block;
}

.tf-brand-name
{
    font-size: 25px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #ffffff;
}

.tf-nav-actions,
.tf-public-nav
{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-left: auto;
}

.tf-dashboard-link,
.tf-public-nav a
{
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.tf-dashboard-link
{
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 10px;
}

.tf-dashboard-link:hover,
.tf-dashboard-link.is-active
{
    color: #ffffff;
    background: rgba(78, 168, 222, 0.15);
    border-color: rgba(78, 168, 222, 0.35);
}

.tf-notification-link,
.tf-nav-menu > summary
{
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.tf-notification-link
{
    text-decoration: none;
}

.tf-notification-link:hover,
.tf-nav-menu > summary:hover,
.tf-nav-menu[open] > summary
{
    color: #ffffff;
    background: rgba(78, 168, 222, 0.2);
    border-color: rgba(78, 168, 222, 0.7);
}

.tf-notification-link:active,
.tf-nav-menu > summary:active
{
    transform: translateY(1px);
}

.tf-notification-link svg
{
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tf-notification-link.has-unread
{
    border-color: rgba(78, 168, 222, 0.85);
    background: rgba(78, 168, 222, 0.18);
}

.tf-notification-count
{
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 2px solid #07121a;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.tf-nav-menu
{
    position: relative;
}

.tf-nav-menu > summary
{
    list-style: none;
}

.tf-nav-menu > summary::-webkit-details-marker
{
    display: none;
}

.tf-hamburger
{
    width: 19px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tf-hamburger span
{
    width: 100%;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.tf-nav-menu[open] .tf-hamburger span:nth-child(1)
{
    transform: translateY(6px) rotate(45deg);
}

.tf-nav-menu[open] .tf-hamburger span:nth-child(2)
{
    opacity: 0;
}

.tf-nav-menu[open] .tf-hamburger span:nth-child(3)
{
    transform: translateY(-6px) rotate(-45deg);
}

.tf-nav-menu-panel
{
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(350px, calc(100vw - 28px));
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #dce6ee;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 55px rgba(7, 18, 26, 0.28);
    color: var(--tf-text);
}

.tf-nav-menu-section
{
    padding: 7px 5px;
}

.tf-nav-menu-section + .tf-nav-menu-section
{
    border-top: 1px solid #e8eef3;
}

.tf-nav-menu-heading
{
    padding: 5px 9px 6px;
    color: #647483;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tf-nav-menu-section a
{
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 10px;
    box-sizing: border-box;
    border-radius: 9px;
    color: #1f2933;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.tf-nav-menu-section a:hover,
.tf-nav-menu-section a.is-active
{
    color: #104f77;
    background: #eaf5fb;
}

.tf-menu-arrow
{
    color: #78909f;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.tf-nav-logout
{
    margin: 0;
}

.tf-signout-button
{
    min-height: 42px;
    margin: 0;
    padding: 0 15px;
    border: 1px solid rgba(78, 168, 222, 0.8);
    border-radius: 11px;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.tf-signout-button:hover
{
    background: var(--tf-blue);
    border-color: var(--tf-blue);
    color: #07121a;
}

.tf-public-nav a:hover
{
    color: var(--tf-blue);
}

.tf-public-nav .tf-public-cta
{
    padding: 8px 13px;
    border: 1px solid var(--tf-blue);
    border-radius: 10px;
}

.tf-public-nav .tf-public-cta:hover
{
    background: var(--tf-blue);
    color: #07121a;
}

.tf-nav-menu > summary:focus-visible,
.tf-dashboard-link:focus-visible,
.tf-notification-link:focus-visible,
.tf-signout-button:focus-visible
{
    outline: 3px solid rgba(78, 168, 222, 0.72);
    outline-offset: 3px;
}

#main-content
{
    scroll-margin-top: 82px;
}

.container
{
    width: 100%;
    flex: 1 0 auto;
    padding: 40px;
    max-width: 1180px;
    margin: 0 auto;
    box-sizing: border-box;
}

.container.tf-container-wide
{
    max-width: 1800px;
    padding-left: clamp(18px, 2.2vw, 36px);
    padding-right: clamp(18px, 2.2vw, 36px);
}

h1,
h2,
h3
{
    color: #101820;
    line-height: 1.2;
}

a
{
    color: var(--tf-blue-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible
{
    outline: 3px solid rgba(78, 168, 222, 0.45);
    outline-offset: 2px;
}

.tf-alert
{
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.tf-alert-success
{
    background: #d1e7dd;
    color: #0f5132;
}

.tf-alert-error
{
    background: #f8d7da;
    color: #842029;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
textarea,
select
{
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid var(--tf-border);
    border-radius: 6px;
    background: #ffffff;
    color: var(--tf-text);
    font: inherit;
}

textarea
{
    min-height: 110px;
    resize: vertical;
}

label
{
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 700;
}

button,
.tf-button
{
    display: inline-flex;
    width: auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid var(--tf-blue-dark);
    border-radius: 8px;
    background: var(--tf-blue-dark);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.tf-button:hover
{
    filter: brightness(0.92);
    color: #ffffff;
}

button:disabled,
.tf-button[aria-disabled="true"]
{
    opacity: 0.55;
    cursor: not-allowed;
}

.tf-button-secondary
{
    border-color: #52616b;
    background: #52616b;
}

.tf-button-success
{
    border-color: #13764f;
    background: #13764f;
}

.tf-button-danger
{
    border-color: #b42318;
    background: #b42318;
}

.tf-page-intro
{
    max-width: 760px;
    margin-bottom: 26px;
    color: #52616b;
    font-size: 17px;
}

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

.tf-page-heading h1,
.tf-page-heading .tf-page-intro
{
    margin-top: 0;
}

.tf-count-badge
{
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eaf4ff;
    color: #1f3a8a;
    font-size: 13px;
    font-weight: 700;
}

.tf-muted
{
    color: #64748b;
    font-size: 13px;
}

.tf-status-warning
{
    color: #9a5a00;
    font-size: 13px;
}

.tf-status-success
{
    color: #2f6f44;
    font-size: 13px;
}

.tf-admin-search
{
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid var(--tf-border);
    border-radius: 10px;
    background: #ffffff;
}

.tf-admin-search > div
{
    flex: 1 1 320px;
    max-width: 520px;
}

.tf-admin-search label
{
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.tf-admin-search input,
.tf-admin-search button
{
    margin: 0;
}

.tf-admin-search a
{
    align-self: center;
    padding: 9px 4px;
}

.tf-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;
}

.tf-card-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin: 26px 0;
}

.tf-card
{
    padding: 22px;
    border: 1px solid var(--tf-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(31, 41, 51, 0.06);
}

.tf-card h2,
.tf-card h3
{
    margin-top: 0;
}

.tf-actions
{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tf-filter-grid
{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.tf-empty-state
{
    padding: 34px;
    border: 1px dashed #9fb3c8;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
}

.tf-empty-state h1,
.tf-empty-state h2,
.tf-empty-state h3
{
    margin-top: 0;
}

.tf-empty-state-icon
{
    width: 42px;
    height: 42px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #eaf4ff;
    color: var(--tf-blue-dark);
    font-size: 25px;
    font-weight: 700;
    line-height: 42px;
}

.tf-table-wrap
{
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--tf-border);
    border-radius: 10px;
    background: #ffffff;
}

.tf-admin-users-table
{
    table-layout: fixed;
}

.tf-admin-users-table th:nth-child(1)
{
    width: 12%;
}

.tf-admin-users-table th:nth-child(2)
{
    width: 23%;
}

.tf-admin-users-table th:nth-child(3)
{
    width: 17%;
}

.tf-admin-users-table th:nth-child(4)
{
    width: 12%;
}

.tf-admin-users-table th:nth-child(5)
{
    width: 18%;
}

.tf-admin-users-table th:nth-child(6)
{
    width: 18%;
}

.tf-admin-users-table td
{
    overflow-wrap: anywhere;
}

.tf-role-form,
.tf-admin-user-actions,
.tf-admin-user-actions form
{
    margin: 0;
}

.tf-role-form
{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
}

.tf-role-form select
{
    min-width: 0;
    margin: 0;
}

.tf-role-form button
{
    padding: 9px 11px;
    white-space: nowrap;
}

.tf-admin-user-actions
{
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tf-admin-user-actions .tf-button,
.tf-admin-user-actions button
{
    padding: 8px 10px;
    font-size: 13px;
}

.tf-pagination
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.tf-pagination-links
{
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tf-pagination .tf-button
{
    padding: 8px 12px;
}

table
{
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

table th,
table td
{
    border-bottom: 1px solid var(--tf-border);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

table th
{
    background: #111111;
    color: #ffffff;
}

.tf-footer
{
    background: var(--tf-black);
    border-top: 3px solid var(--tf-blue);
    color: #ffffff;
    margin-top: auto;
    padding: 34px 20px;
    text-align: center;
}

.tf-footer-inner
{
    max-width: 980px;
    margin: 0 auto;
}

.tf-footer-logo
{
    height: 58px;
    width: auto;
    max-width: 58px;
    object-fit: contain;
    display: block;
    margin: 0 auto 14px auto;
}

.tf-footer-company
{
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.tf-footer-email
{
    color: var(--tf-blue);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
}

.tf-footer-email:hover
{
    text-decoration: underline;
}

.tf-footer-copy
{
    font-size: 14px;
    color: #d9e2ec;
}

.skills-group
{
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 20px;
}

.skill-item
{
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    cursor: pointer;
}

.skill-item input[type="checkbox"]
{
    margin: 0;
    width: auto;
}

.upload-block
{
    margin-bottom: 20px;
}

.upload-btn
{
    display: block;
    margin-top: 10px;
    padding: 10px 16px;
    border: none;
    background: #999;
    color: white;
    cursor: not-allowed;
    border-radius: 6px;
}

.upload-btn.active
{
    background: var(--tf-blue-dark);
    cursor: pointer;
}

.thumb
{
    margin-bottom: 20px;
}

.thumb img
{
    max-width: 220px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

@media (max-width: 860px)
{
    .tf-nav-inner
    {
        min-height: 64px;
        gap: 12px;
        padding: 0 14px;
    }

    .tf-brand
    {
        gap: 8px;
    }

    .tf-brand-logo
    {
        width: 36px;
        height: 36px;
    }

    .tf-brand-name
    {
        font-size: 22px;
    }

    .tf-nav-actions
    {
        gap: 7px;
    }

    .tf-nav-menu-panel
    {
        position: fixed;
        top: 76px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 88px);
    }

    .container
    {
        padding: 24px 18px;
    }

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

    .tf-filter-grid
    {
        grid-template-columns: 1fr 1fr;
    }

    .tf-table-wrap table
    {
        min-width: 720px;
    }
}

@media (max-width: 600px)
{
    .tf-nav-inner
    {
        gap: 8px;
        padding: 0 10px;
    }

    .tf-brand-name
    {
        display: none;
    }

    .tf-nav-actions
    {
        gap: 6px;
    }

    .tf-dashboard-link
    {
        min-height: 40px;
        padding: 0 9px;
        font-size: 13px;
    }

    .tf-notification-link,
    .tf-nav-menu > summary
    {
        width: 40px;
        height: 40px;
    }

    .tf-signout-button
    {
        min-height: 40px;
        padding: 0 10px;
        font-size: 13px;
    }

    .tf-public-nav
    {
        gap: 8px;
    }

    .tf-public-nav a
    {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce)
{
    .tf-hamburger span,
    .tf-notification-link,
    .tf-nav-menu > summary
    {
        transition: none;
    }
}

@media (max-width: 1050px)
{
    .tf-admin-users-table-wrap
    {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .tf-admin-users-table,
    .tf-admin-users-table thead,
    .tf-admin-users-table tbody,
    .tf-admin-users-table tr,
    .tf-admin-users-table th,
    .tf-admin-users-table td
    {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .tf-admin-users-table
    {
        min-width: 0;
    }

    .tf-admin-users-table thead
    {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .tf-admin-users-table tr
    {
        margin-bottom: 16px;
        border: 1px solid var(--tf-border);
        border-radius: 10px;
        overflow: hidden;
        background: #ffffff;
    }

    .tf-admin-users-table td
    {
        display: grid;
        grid-template-columns: minmax(110px, 28%) minmax(0, 1fr);
        gap: 12px;
        border-bottom: 1px solid var(--tf-border);
    }

    .tf-admin-users-table td:last-child
    {
        border-bottom: 0;
    }

    .tf-admin-users-table td::before
    {
        content: attr(data-label);
        color: #101820;
        font-weight: 700;
    }

    .tf-admin-users-table .tf-admin-empty-row td
    {
        display: block;
    }

    .tf-admin-users-table .tf-admin-empty-row td::before
    {
        content: none;
    }

    .tf-role-form
    {
        max-width: 420px;
    }
}

@media (max-width: 560px)
{
    .tf-filter-grid
    {
        grid-template-columns: 1fr;
    }
}

/* Operations, audit, and support */

.tf-section-block
{
    margin-top: 42px;
}

.tf-section-heading
{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
}

.tf-section-heading h2,
.tf-section-heading p
{
    margin: 0;
}

.tf-section-heading p
{
    margin-top: 5px;
    color: #52616b;
}

.tf-safety-notice
{
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid #f2bd63;
    border-left: 5px solid #c2410c;
    border-radius: 10px;
    background: #fff7ed;
    color: #7c2d12;
}

.tf-safety-notice strong
{
    display: block;
}

.tf-support-layout
{
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
    gap: 22px;
    align-items: start;
}

.tf-support-form-card
{
    padding: clamp(22px, 3vw, 32px);
}

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

.tf-response-guide
{
    position: sticky;
    top: 92px;
    background: linear-gradient(150deg, #07121a, #102b3b);
    color: #ffffff;
}

.tf-response-guide h2,
.tf-response-guide .tf-muted
{
    color: #ffffff;
}

.tf-response-guide .tf-muted
{
    opacity: 0.78;
}

.tf-procedure-list
{
    display: grid;
    gap: 18px;
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.tf-procedure-list li
{
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.tf-procedure-list li > span
{
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(78, 168, 222, 0.17);
    font-weight: 800;
}

.tf-procedure-list strong,
.tf-procedure-list small
{
    display: block;
}

.tf-procedure-list small
{
    margin-top: 3px;
    color: #cbd5e1;
    line-height: 1.45;
}

.tf-support-case-list,
.tf-support-admin-list
{
    display: grid;
    gap: 16px;
}

.tf-support-case,
.tf-support-admin-card
{
    padding: 22px;
    border: 1px solid var(--tf-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(31, 41, 51, 0.05);
}

.tf-support-case > p,
.tf-support-admin-card > p
{
    overflow-wrap: anywhere;
}

.tf-support-case-heading
{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.tf-support-case-heading h3
{
    margin: 4px 0 0;
}

.tf-case-number,
.tf-eyebrow
{
    color: #2d6cdf;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tf-status-group
{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.tf-status-pill
{
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.tf-status-normal
{
    background: #dcfce7;
    color: #166534;
}

.tf-status-high
{
    background: #fef3c7;
    color: #92400e;
}

.tf-status-urgent
{
    background: #fee2e2;
    color: #991b1b;
}

.tf-status-neutral
{
    background: #e8eef5;
    color: #334155;
}

.tf-case-meta
{
    display: flex;
    flex-wrap: wrap;
    gap: 7px 18px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e8eef5;
    color: #52616b;
    font-size: 13px;
}

.tf-operations-grid
{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.tf-metric-card,
.tf-monitor-card
{
    padding: 20px;
    border: 1px solid var(--tf-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(31, 41, 51, 0.05);
}

.tf-metric-card > p
{
    min-height: 48px;
    color: #52616b;
}

.tf-metric-heading
{
    display: flex;
    align-items: center;
    gap: 9px;
}

.tf-metric-heading h3
{
    margin: 0;
    font-size: 16px;
}

.tf-health-dot
{
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #64748b;
    box-shadow: 0 0 0 4px rgba(100, 116, 139, 0.14);
}

.tf-health-dot.is-healthy
{
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
}

.tf-health-dot.is-warning
{
    background: #d97706;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
}

.tf-health-dot.is-danger
{
    background: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
}

.tf-metric-value
{
    display: block;
    margin-top: 15px;
    color: #101820;
    font-size: clamp(22px, 2.2vw, 29px);
    line-height: 1.15;
}

.tf-compact-details
{
    display: grid;
    gap: 7px;
    margin: 0;
}

.tf-compact-details div
{
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 7px;
    border-top: 1px solid #edf2f7;
}

.tf-compact-details dt
{
    color: #64748b;
}

.tf-compact-details dd
{
    margin: 0;
    text-align: right;
    font-weight: 700;
}

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

.tf-monitor-card-heading
{
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.tf-monitor-card-heading h3
{
    margin: 3px 0 0;
}

.tf-monitor-url
{
    color: #52616b;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}

.tf-monitor-stats
{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0;
}

.tf-monitor-stats span
{
    padding: 10px;
    border-radius: 8px;
    background: #f4f8fb;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
}

.tf-monitor-stats strong
{
    display: block;
    color: #101820;
    font-size: 16px;
    text-transform: none;
}

.tf-inline-error
{
    padding: 10px;
    border-radius: 8px;
    background: #fff1f2;
    color: #9f1239;
    overflow-wrap: anywhere;
    font-size: 13px;
}

.tf-runbook-grid
{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.tf-runbook-grid > div
{
    display: grid;
    gap: 3px;
    padding: 16px;
    border: 1px solid var(--tf-border);
    border-radius: 10px;
    background: #ffffff;
}

.tf-runbook-grid span
{
    color: #2d6cdf;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.tf-runbook-grid small
{
    color: #52616b;
}

.tf-filter-bar
{
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0;
    padding: 15px;
    border: 1px solid var(--tf-border);
    border-radius: 10px;
    background: #ffffff;
}

.tf-filter-bar > div
{
    min-width: 190px;
}

.tf-filter-bar .tf-filter-grow
{
    flex: 1 1 320px;
}

.tf-filter-bar input,
.tf-filter-bar select,
.tf-filter-bar button
{
    margin: 0;
}

.tf-filter-bar a
{
    padding: 10px 5px;
}

.tf-support-admin-form
{
    display: grid;
    grid-template-columns: minmax(170px, 0.55fr) minmax(170px, 0.55fr) minmax(280px, 1.5fr) auto;
    gap: 12px;
    align-items: end;
    margin-top: 18px;
    padding: 16px;
    border-radius: 10px;
    background: #f4f8fb;
}

.tf-support-admin-form select,
.tf-support-admin-form textarea,
.tf-support-admin-form button
{
    margin: 0;
}

.tf-support-admin-form textarea
{
    min-height: 68px;
}

.tf-audit-table
{
    min-width: 980px;
    font-size: 13px;
}

.tf-audit-table code
{
    color: #1d4ed8;
    font-size: 12px;
    overflow-wrap: anywhere;
}

@media (max-width: 1180px)
{
    .tf-operations-grid
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tf-support-admin-form
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tf-support-notes-field
    {
        grid-column: 1 / -1;
    }
}

@media (max-width: 800px)
{
    .tf-support-layout,
    .tf-monitor-grid
    {
        grid-template-columns: 1fr;
    }

    .tf-response-guide
    {
        position: static;
    }

    .tf-runbook-grid
    {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px)
{
    .tf-form-grid,
    .tf-operations-grid,
    .tf-support-admin-form
    {
        grid-template-columns: 1fr;
    }

    .tf-support-case-heading,
    .tf-section-heading
    {
        align-items: flex-start;
        flex-direction: column;
    }

    .tf-status-group
    {
        justify-content: flex-start;
    }

    .tf-monitor-stats
    {
        grid-template-columns: 1fr;
    }
}
