* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f7fa;
}

.app-header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: #0b1e42;
    color: #ffffff;
}

.app-header {
    position: relative;
}

.app-logo {
    font-size: 20px;
    font-weight: 600;
}

.app-user {
    font-size: 14px;
}

.app-header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.app-company {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.company-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #999;
    flex-shrink: 0;
}

.company-name {
    white-space: nowrap;
}

.company-dropdown-icon {
    font-size: 14px;
}

.app-container {
    display: flex;
    min-height: calc(100vh - 60px);
}

.app-sidebar {
    width: 170px;
    flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
}

.app-sidebar nav {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
}

.app-sidebar a {
    padding: 12px 20px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
}

.app-sidebar a:hover {
    background: #f1f5f9;
}

.app-content {
    flex: 1;
    padding: 10px;
}

.app-sidebar a.active {
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 600;
}

.dashboard h1 {
    margin-top: 0;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.dashboard-card h3 {
    margin-top: 0;
}

.dashboard-card p {
    color: #64748b;
}

.dashboard-card a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}

.dashboard-card a:hover {
    text-decoration: underline;
}

.company-dropdown {
    display: none;
    position: absolute;
    top: 52px;
    right: 70px;
    width: 280px;
    background: #ffffff;
    border: 1px solid #dbe3f0;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
    overflow: hidden;
    z-index: 1000;
}

.company-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: #334155;
    cursor: pointer;
    font-size: 14px;
}

.company-dropdown-item:hover {
    background: #eff6ff;
}

.company-dropdown-item.selected {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}

.company-dropdown-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.company-dropdown-name {
    flex: 1;
}


/* :root {
    --bg: #f4f6fb;
    --card: #ffffff;
    --line: #d9dfed;
    --primary: #1e3a8a;
    --muted: #5f6b85;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; background: var(--bg); color: #111827; font-size: 13px; }
.login-body { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.login-box { width: 340px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.login-box h1 { margin: 0 0 6px; font-size: 22px; }
.subtitle { margin: 0 0 12px; color: var(--muted); }
.alert { background: #fee2e2; color: #991b1b; padding: 8px; border-radius: 6px; margin-bottom: 10px; }
.login-form { display: flex; flex-direction: column; gap: 8px; }
.login-form input, .login-form button { height: 34px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; }
.login-form button { background: var(--primary); color: #fff; cursor: pointer; border-color: var(--primary); }
.hint { margin-top: 10px; color: var(--muted); font-size: 12px; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 210px; background: #0f172a; color: #fff; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.brand { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.menu { display: flex; flex-direction: column; gap: 6px; }
.menu-item { color: #cbd5e1; text-decoration: none; padding: 8px 9px; border-radius: 6px; }
.menu-item.active, .menu-item:hover { background: #1e293b; color: #fff; }
.logout { margin-top: auto; color: #fecaca; text-decoration: none; font-size: 12px; }
.main { flex: 1; padding: 12px; overflow: auto; }
.topbar { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; }
.page-title { font-size: 16px; font-weight: 700; }
.welcome { color: var(--muted); }
.content-card { margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.metric { border: 1px solid var(--line); border-radius: 6px; background: #f9fbff; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.metric strong { font-size: 15px; }
.compact-note { margin-top: 10px; color: var(--muted); }
.module-head { font-weight: 700; margin-bottom: 10px; font-size: 14px; }
.compact-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.compact-item { border: 1px solid var(--line); border-radius: 6px; padding: 10px; text-decoration: none; color: #111827; display: flex; justify-content: space-between; align-items: center; }
.compact-item small { color: var(--muted); }
.compact-item:hover { background: #f9fbff; }
.compact-form { display: grid; gap: 8px; }
.form-row { display: grid; gap: 4px; }
.form-row input, .form-row textarea { border: 1px solid var(--line); border-radius: 6px; padding: 7px 8px; font-size: 13px; }
.btn-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.btn-primary { border: none; border-radius: 6px; background: var(--primary); color: #fff; padding: 8px 12px; cursor: pointer; }
.btn-link { color: var(--primary); text-decoration: none; }
.compact-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.compact-table th, .compact-table td { border: 1px solid var(--line); padding: 7px; text-align: left; }
.compact-table .num { text-align: right; }

@media (max-width: 980px) {
    .metrics-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .compact-list { grid-template-columns: 1fr; }
} */
