/* EAF MEDEQUIP 5.0 — shared administrative cockpit.
   Presentation only: no workflow, permission or provider behavior. */
body.eaf-cockpit {
    --cockpit-ink: #172b43;
    --cockpit-muted: #64748b;
    --cockpit-navy: #10233f;
    --cockpit-navy-2: #173456;
    --cockpit-teal: #087e8b;
    --cockpit-line: #e1e8f0;
    --cockpit-canvas: #f3f6fb;
    --cockpit-surface: #ffffff;
    margin: 0;
    color: var(--cockpit-ink);
    background: var(--cockpit-canvas);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
                 BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
body.eaf-cockpit *,
body.eaf-cockpit *::before,
body.eaf-cockpit *::after { box-sizing: border-box; }

body.eaf-cockpit a {
    color: var(--cockpit-teal);
    text-underline-offset: 3px;
}
body.eaf-cockpit a:hover { color: #075e68; }
body.eaf-cockpit a:focus-visible,
body.eaf-cockpit button:focus-visible,
body.eaf-cockpit input:focus-visible,
body.eaf-cockpit select:focus-visible,
body.eaf-cockpit textarea:focus-visible {
    outline: 3px solid #35b9c5;
    outline-offset: 3px;
}
body.eaf-cockpit h1,
body.eaf-cockpit h2,
body.eaf-cockpit h3 {
    color: #142a43;
    line-height: 1.25;
    letter-spacing: -.025em;
}
body.eaf-cockpit h1 { font-size: clamp(1.65rem, 2.5vw, 2.2rem); }
body.eaf-cockpit h2 { font-size: 1.25rem; }
body.eaf-cockpit p { line-height: 1.65; }
body.eaf-cockpit small,
body.eaf-cockpit .muted { color: var(--cockpit-muted); }

body.eaf-cockpit .eaf-shell {
    min-height: 100vh;
    background: var(--cockpit-canvas);
}
body.eaf-cockpit .eaf-side,
body.eaf-cockpit .sidebar,
body.eaf-cockpit .shell > aside {
    background: linear-gradient(180deg, var(--cockpit-navy), #0b1a2e);
    color: #f4f8ff;
}
body.eaf-cockpit .eaf-side {
    width: 264px;
    flex: 0 0 264px;
    padding: 25px 16px;
    border-right: 1px solid #243a55;
}
body.eaf-cockpit .eaf-brand,
body.eaf-cockpit .brand {
    color: #fff;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: .025em;
}
body.eaf-cockpit .eaf-brand span { color: #69d5d0; }
body.eaf-cockpit .eaf-section,
body.eaf-cockpit .group,
body.eaf-cockpit .sub {
    margin: 26px 10px 9px;
    color: #a9bed7;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}
body.eaf-cockpit .eaf-side nav a,
body.eaf-cockpit .sidebar nav a,
body.eaf-cockpit .shell > aside nav a {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 3px 0;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #dce8f7;
    font-size: .88rem;
    line-height: 1.4;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}
body.eaf-cockpit .eaf-side nav a:hover,
body.eaf-cockpit .sidebar nav a:hover,
body.eaf-cockpit .shell > aside nav a:hover {
    background: #1d3858;
    color: #fff;
}
body.eaf-cockpit .eaf-side nav a[aria-current="page"],
body.eaf-cockpit .sidebar nav a.active,
body.eaf-cockpit .shell > aside nav a.active {
    background: #1e405f;
    border-color: #315779;
    color: #fff;
    box-shadow: inset 3px 0 #62d1cc;
}
body.eaf-cockpit .eaf-toggle,
body.eaf-cockpit .menu-toggle { margin: 12px 0; }

body.eaf-cockpit .eaf-main,
body.eaf-cockpit .main,
body.eaf-cockpit .shell > main {
    min-width: 0;
    background: var(--cockpit-canvas);
}
body.eaf-cockpit .eaf-top,
body.eaf-cockpit .top,
body.eaf-cockpit header.top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    min-height: 72px;
    padding: 16px clamp(18px, 3vw, 36px);
    border-bottom: 1px solid var(--cockpit-line);
    background: rgba(255,255,255,.96);
    color: var(--cockpit-ink);
}
body.eaf-cockpit .eaf-org,
body.eaf-cockpit .who { font-weight: 750; }
body.eaf-cockpit .eaf-role,
body.eaf-cockpit .chip {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 4px 9px;
    border: 1px solid #cce9e8;
    border-radius: 999px;
    background: #e9f8f7;
    color: #12656b;
    font-size: .72rem;
    font-weight: 750;
}
body.eaf-cockpit .eaf-user { color: #455a70; font-size: .87rem; }
body.eaf-cockpit .eaf-content,
body.eaf-cockpit .content {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 38px);
}
body.eaf-cockpit .eaf-caption,
body.eaf-cockpit .eyebrow {
    margin-bottom: 8px;
    color: #60758b;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
body.eaf-cockpit .eaf-module { min-width: 0; }
body.eaf-cockpit .hero {
    margin: 18px 0 24px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid #244565;
    border-radius: 16px;
    background: linear-gradient(125deg, #10233f, #1b4964);
    color: #fff;
    box-shadow: 0 12px 30px #10233f14;
}
body.eaf-cockpit .hero h2,
body.eaf-cockpit .hero h1 { color: #fff; }
body.eaf-cockpit .grid,
body.eaf-cockpit .workspace-links,
body.eaf-cockpit .eaf-r5-grid {
    gap: 16px;
}
body.eaf-cockpit .tile,
body.eaf-cockpit .card,
body.eaf-cockpit .eaf-workspace-card,
body.eaf-cockpit .eaf-module > article,
body.eaf-cockpit .eaf-module > section {
    min-width: 0;
    border: 1px solid var(--cockpit-line);
    border-radius: 13px;
    background: var(--cockpit-surface);
    box-shadow: 0 3px 12px #18324a08;
}
body.eaf-cockpit .tile,
body.eaf-cockpit .card { padding: 21px; }
body.eaf-cockpit .tile h2,
body.eaf-cockpit .card h2 { margin: 12px 0 8px; }
body.eaf-cockpit .tile p,
body.eaf-cockpit .card p { color: #5c6e81; }
body.eaf-cockpit .symbol,
body.eaf-cockpit .number { color: #087e8b; }
body.eaf-cockpit .number {
    margin-top: 12px;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.04em;
}
body.eaf-cockpit .eaf-workspace-card {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 20px;
    color: var(--cockpit-ink);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
body.eaf-cockpit .eaf-workspace-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px #18324a12;
}
body.eaf-cockpit .eaf-workspace-card em {
    margin-top: auto;
    color: var(--cockpit-teal);
    font-style: normal;
    font-weight: 750;
}
body.eaf-cockpit .eaf-r5-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 22px;
}
body.eaf-cockpit .eaf-r5-tabs a {
    padding: 8px 12px;
    border: 1px solid var(--cockpit-line);
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    font-size: .86rem;
}
body.eaf-cockpit .notice,
body.eaf-cockpit .eaf-notice {
    padding: 13px 16px;
    border: 1px solid #c7e8dd;
    border-radius: 10px;
    background: #effaf5;
    color: #205e4c;
}
body.eaf-cockpit .pending {
    border-left: 4px solid #c18a28;
}
body.eaf-cockpit .tag {
    border: 1px solid #dce5ef;
    background: #f0f4f9;
    color: #43576d;
}
body.eaf-cockpit table {
    width: 100%;
    margin: 16px 0;
    border: 1px solid var(--cockpit-line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 11px;
    background: #fff;
    overflow: hidden;
}
body.eaf-cockpit th {
    background: #f4f7fb;
    color: #42566b;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}
body.eaf-cockpit th,
body.eaf-cockpit td {
    padding: 12px 14px;
    border-bottom: 1px solid #e8edf3;
    text-align: left;
    vertical-align: top;
}
body.eaf-cockpit tr:last-child td { border-bottom: 0; }
body.eaf-cockpit form { max-width: 100%; }
body.eaf-cockpit label {
    display: block;
    margin: 13px 0 6px;
    color: #344b62;
    font-size: .88rem;
    font-weight: 700;
}
body.eaf-cockpit input:not([type=checkbox]):not([type=radio]),
body.eaf-cockpit select,
body.eaf-cockpit textarea {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #ccd7e3;
    border-radius: 8px;
    background: #fff;
    color: var(--cockpit-ink);
}
body.eaf-cockpit button,
body.eaf-cockpit .action,
body.eaf-cockpit button[type=submit] {
    border-radius: 8px;
    font-weight: 700;
}
body.eaf-cockpit .eaf-toggle,
body.eaf-cockpit .menu-toggle {
    padding: 8px 11px;
    border: 1px solid #49617d;
    background: #173456;
    color: #fff;
}
body.eaf-cockpit .eaf-side .eaf-toggle,
body.eaf-cockpit .sidebar .menu-toggle { display: none; }
body.eaf-cockpit .footer,
body.eaf-cockpit .eaf-r5-footnote {
    margin-top: 25px;
    color: #687c90;
    font-size: .8rem;
}
body.eaf-cockpit main:not(.eaf-main):not(.main) {
    max-width: 1440px;
}
body.eaf-cockpit > header {
    border-bottom: 1px solid var(--cockpit-line);
    background: #fff;
    color: var(--cockpit-ink);
}
body.eaf-cockpit > header a { color: var(--cockpit-teal); }
body.eaf-cockpit > main {
    margin: 22px auto;
    padding: clamp(18px, 3vw, 32px);
    border: 1px solid var(--cockpit-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 20px #18324a08;
}
body.eaf-cockpit .error { color: #a21e2c; }
body.eaf-cockpit .eaf-side nav a[aria-current="page"] {
    text-decoration: none;
}
@media (max-width: 800px) {
    body.eaf-cockpit .eaf-shell,
    body.eaf-cockpit .shell { display: block; }
    body.eaf-cockpit .eaf-side,
    body.eaf-cockpit .sidebar,
    body.eaf-cockpit .shell > aside {
        width: 100%;
        padding: 14px 16px;
    }
    body.eaf-cockpit .eaf-side .eaf-toggle,
    body.eaf-cockpit .sidebar .menu-toggle { display: inline-flex; }
    body.eaf-cockpit #eaf-navigation:not(.open),
    body.eaf-cockpit #enterprise-nav:not(.open) { display: none; }
    body.eaf-cockpit .eaf-side nav,
    body.eaf-cockpit .sidebar nav,
    body.eaf-cockpit .shell > aside nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
        gap: 3px;
    }
    body.eaf-cockpit .eaf-section,
    body.eaf-cockpit .group,
    body.eaf-cockpit .sub { grid-column: 1 / -1; }
    body.eaf-cockpit .eaf-content,
    body.eaf-cockpit .content { padding: 19px 16px; }
    body.eaf-cockpit .eaf-top,
    body.eaf-cockpit .top { padding: 14px 17px; }
    body.eaf-cockpit > main { margin: 12px; padding: 17px; }
    body.eaf-cockpit table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
    body.eaf-cockpit *,
    body.eaf-cockpit *::before,
    body.eaf-cockpit *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
