:root {
    --ge-primary: #1f4e79;
    --ge-primary-dark: #163a5a;
    --ge-bg: #f4f6f9;
    --ge-sidebar-w: 240px;
}
html, body { height: 100%; }
body { background: var(--ge-bg); font-size: .925rem; color: #22303c; }

.ge-shell { display: flex; min-height: 100vh; }
.ge-sidebar {
    width: var(--ge-sidebar-w); background: var(--ge-primary-dark); color: #cfd9e3; flex-shrink: 0;
    position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 1030;
}
.ge-brand { display: flex; gap: .65rem; align-items: center; padding: 1.1rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.ge-brand i { font-size: 1.8rem; color: #8cc4ff; }
.ge-brand strong { display: block; color: #fff; line-height: 1.1; }
.ge-brand small { color: #9fb3c8; }
.ge-sidebar .nav-link { color: #cfd9e3; padding: .55rem 1rem; border-left: 3px solid transparent; }
.ge-sidebar .nav-link i { width: 1.4rem; display: inline-block; }
.ge-sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.ge-sidebar .nav-link.active { background: rgba(255,255,255,.1); color: #fff; border-left-color: #8cc4ff; }
.ge-nav-head { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #7f95ab; padding: 1rem 1rem .3rem; }

.ge-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ge-topbar { display: flex; align-items: center; gap: .75rem; background: #fff; padding: .65rem 1.25rem; border-bottom: 1px solid #e3e8ee; position: sticky; top: 0; z-index: 1020; }
.ge-title { font-size: 1.15rem; margin: 0; font-weight: 600; color: var(--ge-primary-dark); }
.ge-content { padding: 1.25rem; }

.card { border: 1px solid #e3e8ee; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.card-header { background: #fff; font-weight: 600; }

.stat-card { border-radius: .6rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid #e3e8ee; height: 100%; }
.stat-card .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #6b7c8f; }
.stat-card .value { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.stat-card .sub { font-size: .8rem; color: #6b7c8f; }
.stat-card i { font-size: 1.6rem; opacity: .85; }
.stat-blue i, .stat-blue .value { color: #1f6fd1; }
.stat-teal i, .stat-teal .value { color: #0f8b8d; }
.stat-amber i, .stat-amber .value { color: #c77700; }
.stat-green i, .stat-green .value { color: #1e8e3e; }
.stat-grey i, .stat-grey .value { color: #5f6b7a; }
.stat-red i, .stat-red .value { color: #c5221f; }

.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: #5f6b7a; background: #f8fafc; white-space: nowrap; }
.table td { vertical-align: middle; }
.table-sm td, .table-sm th { padding: .45rem .55rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

.lookup { position: relative; }
.lookup-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 1050; background: #fff; border: 1px solid #ccd5df; border-radius: .4rem; max-height: 320px; overflow-y: auto; box-shadow: 0 6px 18px rgba(0,0,0,.12); display: none; }
.lookup-results .item { padding: .45rem .7rem; cursor: pointer; border-bottom: 1px solid #f0f2f5; }
.lookup-results .item:hover, .lookup-results .item.active { background: #eef5ff; }
.lookup-results .item small { color: #6b7c8f; }

.sensitive { background: #fff8e6; border: 1px dashed #e0b84c; padding: .1rem .4rem; border-radius: .25rem; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #163a5a, #1f6fd1); }
.login-card { width: 100%; max-width: 400px; border-radius: .8rem; }

@media (max-width: 991.98px) {
    .ge-sidebar { position: fixed; left: calc(-1 * var(--ge-sidebar-w)); transition: left .2s; }
    .ge-sidebar.open { left: 0; }
}
@media print {
    .ge-sidebar, .ge-topbar, .no-print { display: none !important; }
    .ge-content { padding: 0; }
}
