* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #f4f5f7;
    color: #1f2430;
}
a { color: #2457c5; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1f2430;
    color: #fff;
    padding: 10px 20px;
}
.topbar-left { display: flex; align-items: center; gap: 24px; }
.brand { color: #fff; font-weight: 700; font-size: 18px; }
.mainnav a { color: #cfd6e4; margin-right: 16px; }
.mainnav a:hover { color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-right a.navlink { color: #cfd6e4; }
.who { color: #9aa4b8; font-size: 13px; }

.bell { position: relative; color: #fff; font-size: 18px; }
.badge {
    position: absolute; top: -6px; right: -10px;
    background: #e0433f; color: #fff; border-radius: 10px;
    font-size: 11px; padding: 1px 6px; font-weight: 700;
}

.container { padding: 20px; max-width: 1200px; margin: 0 auto; }

.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.flash-success { background: #d9f2e1; color: #14532d; }
.flash-error { background: #fbdede; color: #7f1d1d; }
.flash-info { background: #dbeafe; color: #1e3a8a; }

table { width: 100%; border-collapse: collapse; background: #fff; }
table th, table td { padding: 8px 10px; border-bottom: 1px solid #e5e7eb; text-align: left; font-size: 14px; }
table th { background: #eef0f4; }

.card { background: #fff; border-radius: 8px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

form.stacked label { display: block; margin: 10px 0 4px; font-size: 13px; font-weight: 600; }
form.stacked input, form.stacked select, form.stacked textarea {
    width: 100%; padding: 8px; border: 1px solid #ccd2dc; border-radius: 4px; font-size: 14px;
}
.btn {
    display: inline-block; background: #2457c5; color: #fff; border: none;
    padding: 8px 16px; border-radius: 4px; cursor: pointer; font-size: 14px;
}
.btn:hover { background: #1c449e; text-decoration: none; }
.btn-secondary { background: #6b7280; }
.btn-danger { background: #dc2626; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid #e5e7eb; margin-bottom: 16px; }
.tabs a { padding: 8px 14px; border-bottom: 2px solid transparent; margin-bottom: -2px; color: #4b5563; }
.tabs a.active { border-bottom-color: #2457c5; color: #2457c5; font-weight: 600; }

.stage-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; background: #e5e7eb; }
.stage-won { background: #d9f2e1; color: #14532d; }
.stage-lost { background: #fbdede; color: #7f1d1d; }

.widget-list { list-style: none; margin: 0; padding: 0; }
.widget-list li { padding: 6px 0; border-bottom: 1px solid #f0f1f4; font-size: 13px; }

.notif-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-bottom: 1px solid #f0f1f4; }
.notif-item.unread { background: #f0f6ff; }
