/*
 * Refinements over enterprise.css: same layout and density, own identity.
 * Horizontal tabs with an underline, account block at the top of the rail,
 * one combined summary panel, a footer in the page flow, deeper navy-blue.
 */

:root {
    --ent-bg: #eceef1;
    --ent-band: #f2f4f6;
    --ent-border: #d2d7de;
    --ent-divider: #e2e6ea;
    --ent-primary: #1f4f8c;
    --ent-primary-hover: #183f71;
    --ent-primary-tint: #e5ecf5;
    --ent-rail: #f6f7f9;
    --ent-topbar-h: 52px;
}

body.ent { padding-bottom: 0; }

/* Top bar: icon beside the label, underline for the active module. */
.ent-topbar { box-shadow: none; }
.ent-modules { gap: 0; padding: 0 6px; }
.ent-module {
    flex-direction: row;
    gap: 7px;
    min-width: 0;
    margin: 0;
    padding: 0 13px;
    border: 0;
    border-radius: 0;
    font-size: 13px;
    color: #3d4957 !important;
    box-shadow: inset 0 -2px 0 transparent;
}
.ent-module i { font-size: 14px; color: #6b7685; }
.ent-module:hover { background: transparent; color: var(--ent-text) !important; }
.ent-module.active { background: transparent; border: 0; color: var(--ent-primary) !important; box-shadow: inset 0 -2px 0 var(--ent-primary); }
.ent-module .ent-count {
    position: static;
    min-width: 0;
    height: auto;
    padding: 0 5px;
    background: var(--ent-band);
    border: 1px solid var(--ent-border);
    border-radius: 2px;
    color: var(--ent-muted);
    font-size: 10.5px;
    line-height: 15px;
}
.ent-module.active .ent-count { border-color: #b8c9e0; color: var(--ent-primary); background: var(--ent-primary-tint); }
.ent-avatar { border-radius: 3px; background: #2f3d4e; width: 28px; height: 28px; font-size: 11px; }
.ent-user-text span { font-weight: 500; }
.ent-icon-btn .ent-count { background: var(--ent-red); }

/* Rail: account block on top, quiet section labels, status line at the end. */
.ent-rail { display: flex; flex-direction: column; padding-bottom: 0; }
.ent-rail-account { padding: 13px 16px 12px; border-bottom: 1px solid var(--ent-divider); line-height: 1.3; }
.ent-rail-account strong { display: block; font-size: 13px; font-weight: 600; }
.ent-rail-account span { color: var(--ent-muted); font-size: 12px; }
.ent-rail-label { color: var(--ent-muted); letter-spacing: .06em; }
.ent-rail-link { border-right: 0; border-left: 3px solid transparent; padding-left: 13px; }
.ent-rail-link.active, .ent-rail .ent-rail-link.list-group-item.active { border-left-color: var(--ent-primary); border-right-color: transparent; }
.ent-rail .ent-rail-link.list-group-item { border-right: 0; border-left: 3px solid transparent; padding-left: 13px; }
.ent-rail-link em { color: var(--ent-muted); font-weight: 500; }
.ent-rail-status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding: 11px 16px;
    border-top: 1px solid var(--ent-divider);
    color: var(--ent-muted) !important;
    font-size: 12px;
    text-decoration: none !important;
}
.ent-rail-status.warn .ent-dot { background: var(--ent-amber); }
.ent-rail { height: calc(100vh - var(--ent-topbar-h)); }
.ent-shell { min-height: calc(100vh - var(--ent-topbar-h)); }

/* Footer in the page flow, under the content. */
.ent-statusbar {
    position: static;
    height: auto;
    padding: 14px 0 0;
    margin: 24px auto 0;
    max-width: 1180px;
    background: transparent;
    border-top: 1px solid var(--ent-border);
}
.ent-has-shell .ent-statusbar { display: none; }
.ent-content > .ent-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--ent-border); color: var(--ent-muted); font-size: 12px; }

/* One summary panel in three columns instead of three cards. */
.ent-glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ent-glance-col + .ent-glance-col { border-left: 1px solid var(--ent-divider); }
.ent-glance-col header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 9px 14px;
    background: var(--ent-band);
    border-bottom: 1px solid var(--ent-divider);
}
body.ent .ent-glance-col h2 { margin: 0; font-size: 13.5px; }
.ent-glance-col header a { font-size: 12px; font-weight: 500; }
.ent-glance dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 12px 14px 13px; }
.ent-glance dt { order: 2; color: var(--ent-muted); font-size: 11.5px; font-weight: 400; }
.ent-glance dl > div { display: flex; flex-direction: column; }
.ent-glance dd { order: 1; margin: 0 0 1px; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ent-glance dd.ent-bad { color: var(--ent-red); }

/* Status tags: title case, square. */
.ent-tag, body.ent .label.status { text-transform: capitalize; border-radius: 1px; font-size: 11.5px; }

@media (max-width: 1199px) {
    .ent-glance { grid-template-columns: minmax(0, 1fr); }
    .ent-glance-col + .ent-glance-col { border-left: 0; border-top: 1px solid var(--ent-divider); }
}
@media (max-width: 991px) {
    .ent-rail { height: auto; }
    .ent-rail-account { flex: 1 0 100%; }
    .ent-rail-status { display: none; }
    .ent-module { padding: 10px 11px; }
}
.ent-foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; } .ent-foot a { color: var(--ent-muted) !important; } .ent-foot a:hover { color: var(--ent-text) !important; }

/* Brand lockup: eagle + bold wordmark. */
.ent-brand { flex: 0 0 auto; min-width: var(--ent-rail-w); }
.ent-lockup { display: inline-flex; align-items: center; gap: 9px; color: #17212c; white-space: nowrap; }
.ent-eagle { width: 24px; height: 24px; flex-shrink: 0; fill: currentColor; }
.ent-wordmark { font-size: 15.5px; font-weight: 600; letter-spacing: -.005em; }
.ent-doc-brand { margin-bottom: 12px; }
.ent-doc-brand .ent-eagle { width: 30px; height: 30px; }
.ent-doc-brand .ent-wordmark { font-size: 20px; }

/* Notice strip above the page (email verification): one line, amber edge, small actions on the right. */
.ent-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1180px;
    margin: 0 auto 16px;
    padding: 8px 8px 8px 14px;
    background: #fdf7ea;
    border: 1px solid #efd4a0;
    border-left: 3px solid #e08a12;
    border-radius: var(--ent-radius);
    color: #6b4709;
    font-size: 13px;
}
.ent-banner > .fas { color: #c27806; font-size: 14px; }
.ent-banner-text { flex: 1; min-width: 0; }
.ent-banner .btn { flex-shrink: 0; white-space: nowrap; }
.ent-banner .btn[disabled] { opacity: 1; }
.ent-banner-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    background: none;
    border: 0;
    color: #8a6a32;
    font-size: 20px;
    line-height: 1;
}
.ent-banner-close:hover { color: #6b4709; }
@media (max-width: 575px) {
    .ent-banner { flex-wrap: wrap; }
    .ent-banner-text { flex: 1 0 calc(100% - 64px); }
    .ent-banner .btn { order: 3; margin-left: 24px; }
}

/* Resources menu in the top bar, and tabs that wrap instead of overlapping on narrow screens. */
.ent-modules { overflow: visible; }
.ent-module-menu { display: flex; }
button.ent-module { background: none; cursor: pointer; }
.ent-module .ent-caret { font-size: 12px; margin-left: -2px; }
.ent-module-menu.show .ent-module { color: var(--ent-text) !important; }
.ent-module-menu .dropdown-menu { margin-top: 0; min-width: 170px; }
.ent-rail-status i { color: var(--ent-muted); }
@media (max-width: 991px) {
    .ent-modules { flex-wrap: wrap; }
    .ent-module { flex-shrink: 0; min-width: 0; }
}
button.ent-module:focus:not(:focus-visible) { outline: 0; }
