:root {
  --bg: #F2F5F9;
  --surface: #FFFFFF;
  --sidebar: #0F2038;
  --sidebar-active: #173A5E;
  --sidebar-text: #AEBFD6;
  --primary: #1D4E89;
  --primary-dark: #123A63;
  --accent: #0F9B8E;
  --accent-soft: #E3F5F3;
  --success: #1F9D55;
  --success-soft: #E7F7ED;
  --warning: #C4790A;
  --warning-soft: #FDF1DE;
  --danger: #D64550;
  --danger-soft: #FCE9EA;
  --info: #3B6FBF;
  --info-soft: #E9F0FB;
  --text: #16202B;
  --text-soft: #5B6B7C;
  --text-faint: #8A97A6;
  --border: #E4E9F0;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 56, .06), 0 8px 24px -12px rgba(16, 32, 56, .10);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.brand-font {
  font-family: 'Lexend', 'Inter', sans-serif;
}

a {
  text-decoration: none;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 248px;
  flex-shrink: 0;
  background: var(--sidebar);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1030;
  transition: transform .25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(155deg, var(--accent), #0B6E64);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.sidebar-brand .name {
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.15;
}

.sidebar-brand .sub {
  font-size: 11px;
  color: var(--sidebar-text);
  letter-spacing: .02em;
}

.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
  overflow-y: auto;
}

.sidebar-section-label {
  font-size: 11px;
  font-weight: 600;
  color: #5D7292;
  padding: 14px 12px 6px;
  letter-spacing: .03em;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9.5px 12px;
  border-radius: 8px;
  color: var(--sidebar-text);
  font-size: 13.6px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: background .15s, color .15s;
}

.sidebar-link i {
  font-size: 16px;
  width: 18px;
  text-align: center;
  color: #7488A4;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.sidebar-link.active {
  background: var(--sidebar-active);
  color: #fff;
}

.sidebar-link.active i {
  color: var(--accent);
}

.sidebar-foot {
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.role-pill-group {
  display: flex;
  background: rgba(255, 255, 255, .06);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.role-pill {
  flex: 1;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 4px;
  border-radius: 6px;
  color: var(--sidebar-text);
}

.role-pill.active {
  background: var(--accent);
  color: #06231F;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.sidebar-user .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #274D75;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12.5px;
  flex-shrink: 0;
}

.sidebar-user .uname {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.sidebar-user .utitle {
  font-size: 11px;
  color: var(--sidebar-text);
}

.sidebar-logout { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; padding: 0; }
.sidebar-logout:hover .logout-icon { color: #fff; transform: translateX(2px); }
.logout-icon { margin-left: auto; color: #8fa2bb; font-size: 16px; transition: color .15s, transform .15s; }

.page-loader { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; background: rgba(242, 245, 249, .82); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s ease; }
.page-loader.is-visible { opacity: 1; visibility: visible; }
.page-loader-card { width: min(270px, 100%); padding: 27px 22px 24px; border: 1px solid #dce6ed; border-radius: 15px; background: #fff; box-shadow: 0 18px 45px rgba(15, 32, 56, .18); text-align: center; }
.page-loader-card strong { display: block; margin-top: 13px; color: var(--text); font-family: 'Lexend', sans-serif; font-size: 14px; }
.page-loader-card span { display: block; margin-top: 5px; color: var(--text-faint); font-size: 11.5px; }
.loader-illustration { position: relative; width: 59px; height: 54px; margin: auto; color: var(--primary); }
.loader-book { position: absolute; left: 3px; bottom: 1px; font-size: 47px; animation: loader-book 1.15s ease-in-out infinite; }
.loader-pen { position: absolute; right: 1px; top: 0; color: var(--accent); font-size: 27px; transform: rotate(-25deg); transform-origin: bottom center; animation: loader-pen 1.15s ease-in-out infinite; }
@keyframes loader-book { 50% { transform: translateY(3px) rotate(-3deg); } }
@keyframes loader-pen { 50% { transform: translate(3px, -4px) rotate(-16deg); } }

.logout-modal { border: 0; border-radius: 14px; overflow: hidden; }
.logout-modal .modal-body { padding: 28px 24px 25px; }
.logout-modal h5 { margin: 14px 0 5px; font-family: 'Lexend', sans-serif; font-size: 16px; }
.logout-modal p { margin: 0; color: var(--text-soft); font-size: 12.5px; }
.logout-modal-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: auto; border-radius: 50%; background: var(--danger-soft); color: var(--danger); font-size: 21px; }

.main {
  margin-left: 248px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.topbar-title h1 {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.topbar-title p {
  margin: 1px 0 0;
  font-size: 12.5px;
  color: var(--text-faint);
}

.btn-primary-brand {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  color:#fff;
}

.btn-primary-brand:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color:#fff;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

.btn-accent:hover {
  background: #0C837A;
  color: #fff;
}

.btn-outline-soft {
  border: 1px solid var(--border);
  background: #248337;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
}

.btn-outline-soft:hover {
  border: 1px solid var(--border);
  background: #105012;
  color: #fff;
}

.content {
  padding: 22px 28px 60px;
  flex: 1;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.stat-card .stop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.stat-card .icn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.stat-card .label {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 600;
  margin-top: 12px;
}

.stat-card .value {
  font-size: 25px;
  font-weight: 800;
  margin-top: 2px;
  color: var(--text);
  font-family: 'Lexend', sans-serif;
}

.icn-blue {
  background: var(--info-soft);
  color: var(--info);
}

.icn-teal {
  background: var(--accent-soft);
  color: var(--accent);
}

.icn-purple {
  background: #EFE9FB;
  color: #7C4DDB;
}

.icn-green {
  background: var(--success-soft);
  color: var(--success);
}

.icn-amber {
  background: var(--warning-soft);
  color: var(--warning);
}

.icn-red {
  background: var(--danger-soft);
  color: var(--danger);
}

.icn-navy {
  background: #E6ECF5;
  color: var(--primary);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}

.panel-head h2 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 0;
}

.panel-head p {
  font-size: 12px;
  color: var(--text-faint);
  margin: 1px 0 0;
}

.panel-body {
  padding: 18px 20px;
}

.panel-body.pad0 {
  padding: 0;
}

.kra-table-wrap {
  overflow-x: auto;
}

.table-card {
  overflow: hidden;
}

.table-controls {
  min-height: 68px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, #fff, #f8fbfd);
}

.table-search {
  display: flex;
  align-items: center;
  width: min(330px, 100%);
  gap: 9px;
  padding: 0 11px;
  height: 36px;
  background: #fff;
  border: 1px solid #d9e2ea;
  border-radius: 8px;
  color: var(--text-faint);
  transition: border-color .15s, box-shadow .15s;
}

.table-search:focus-within { border-color: #7aa8d5; box-shadow: 0 0 0 3px rgba(29, 78, 137, .10); }
.table-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 12.5px; color: var(--text); }
.table-search input::placeholder { color: #99a6b4; }

.table-footer {
  min-height: 58px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 12px;
}

.pager-actions { display: flex; align-items: center; gap: 8px; }
.pager-page { min-width: 76px; text-align: center; font-weight: 600; color: var(--text-soft); }
.pager-btn { width: 30px; height: 30px; border: 1px solid #dbe3eb; border-radius: 7px; background: #fff; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.pager-btn:hover:not(:disabled) { background: var(--info-soft); border-color: #b8cde4; }
.pager-btn:disabled { color: #b4c0cc; cursor: not-allowed; background: #f7f9fb; }

table.kra-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

table.kra-table thead th {
  background: #F8FAFC;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  text-align: left;
}

table.kra-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13.2px;
  vertical-align: middle;
}

table.kra-table tbody tr { transition: background .16s ease; }
table.kra-table tbody tr:hover { background: #f8fbfd; }

.role-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 12.8px;
  font-weight: 500;
  margin-bottom: 16px;
  border: 1px solid;
}

.role-banner.employee {
  background: var(--accent-soft);
  border-color: #BEE6E1;
  color: #0C6E64;
}

.role-banner i {
  font-size: 15px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px 4px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.status-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--info);
}

.status-progress {
  background: var(--info-soft);
  color: #2C58A0;
}

.badge-soft {
  background: #EEF2F6;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
}

.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-faint);
}

@media (max-width: 575.98px) {
  .table-controls { align-items: stretch; flex-direction: column; }
  .table-controls .btn { width: 100%; }
  .table-search { width: 100%; }
  .table-footer { align-items: flex-start; flex-direction: column; }
}

.empty-state i {
  font-size: 30px;
  margin-bottom: 8px;
  display: block;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-note {
  font-size: 12.5px;
  color: var(--text-soft);
}

.toolbar-note i {
  color: var(--accent);
  margin-right: 5px;
}

.app-alert {
  padding: 11px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  border: 1px solid;
}

.app-alert.success {
  background: var(--success-soft);
  border-color: #bfe6cb;
  color: #187846;
}

.app-alert.error {
  background: var(--danger-soft);
  border-color: #f0bfc4;
  color: #a33640;
}

.modal-content {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(15, 32, 56, .18);
}

.modal-header,
.modal-footer {
  border-color: var(--border);
  padding: 15px 20px;
}

.modal-title {
  font: 700 16px 'Lexend', sans-serif;
}

.modal-body {
  padding: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid label,
.field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #445466;
}

.form-span-2 {
  grid-column: span 2;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.field-label input,
.field-label textarea {
  width: 100%;
  border: 1px solid #d9e2eb;
  border-radius: 7px;
  padding: 9px 10px;
  outline: 0;
  font: 500 13px 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.field-label input:focus,
.field-label textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 155, 142, .10);
}

.field-label {
  margin-bottom: 16px;
}

.reporting-head-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #dce8ed;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7fbfc 0%, #f4f8ff 100%);
}

.reporting-head-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}

.reporting-head-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 38px;
  border-radius: 10px;
  color: #087f78;
  background: #e4f5f2;
  font-size: 16px;
}

.reporting-head-title strong,
.reporting-head-title small {
  display: block;
}

.reporting-head-title strong {
  color: #29445a;
  font-size: 13px;
  font-weight: 750;
}

.reporting-head-title small,
.reporting-head-help {
  color: #788b9b;
  font-size: 11px;
  font-weight: 500;
}

.reporting-head-card select {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #d7e2e9;
  border-radius: 8px;
  outline: 0;
  color: var(--text);
  background-color: #fff;
  font: 500 13px 'Inter', sans-serif;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.reporting-head-card select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 155, 142, .12);
}

.reporting-head-help {
  display: block;
  margin-top: 8px;
}

.check-label {
  font-size: 13px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 7px;
}

.check-label input {
  accent-color: var(--accent);
}

.status-achieved {
  background: var(--success-soft);
  color: #177946;
}

.status-risk {
  background: var(--danger-soft);
  color: #b13c47;
}

.bulk-kpi-box { border: 1px solid var(--border); background: #f8fafc; border-radius: 9px; padding: 12px; }
.bulk-kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.bulk-kpi-head strong { display: block; font-size: 12.5px; }
.bulk-kpi-head small { display: block; color: var(--text-faint); font-weight: 500; margin-top: 2px; }
.bulk-kpi-row { display: grid; grid-template-columns: 2fr 1fr 1fr 28px; gap: 8px; margin-top: 8px; }
.bulk-kpi-row input { min-width: 0; }
.remove-kpi-row { border: 0; background: transparent; color: var(--danger); font-size: 22px; line-height: 1; cursor: pointer; }
.table-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); background: #fbfcfe; }
.table-search { width: min(100%, 300px); height: 35px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 7px; padding: 0 10px; color: var(--text-faint); }
.table-search input { min-width: 0; width: 100%; border: 0; outline: 0; font: 500 12.5px 'Inter', sans-serif; color: var(--text); background: transparent; }
.table-footer { min-height: 48px; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; color: var(--text-soft); font-size: 12px; }
.table-footer > div { display: flex; align-items: center; gap: 9px; }.table-footer button { border: 1px solid var(--border); border-radius: 5px; background: #fff; color: var(--text-soft); padding: 4px 8px; font-size: 12px; }.table-footer button:disabled { opacity: .45; }
.data-panel { overflow: hidden; border-radius: 14px; box-shadow: 0 8px 28px rgba(22, 49, 79, .07); }
.tracker-intro { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; padding: 11px 14px; background: #eaf6f4; color: #176d66; border: 1px solid #c7e8e3; border-radius: 10px; font-size: 12.5px; font-weight: 600; }.tracker-intro i { font-size: 15px; }
.panel-actions { display: flex; align-items: center; gap: 9px; }.panel-actions .btn { padding: 7px 11px; }
.data-panel .table-card { margin: 0 16px 16px; overflow: hidden; border: 1px solid #dde8ee; border-radius: 10px; background: #fff; box-shadow: 0 3px 12px rgba(23, 55, 78, .04); }
.data-panel .table-card .table-controls { border-bottom-color: #e7eef2; }
.data-panel .panel-head { padding: 19px 22px 16px; background: linear-gradient(90deg, #fff 0%, #f8fbfd 100%); }
.data-panel .panel-head h2 { font-size: 16px; letter-spacing: -.02em; }.data-panel .badge-soft { background: #e8f2f7; color: #20516e; border: 1px solid #d7e7ef; }
.data-panel .table-controls { padding: 11px 22px; background: #fff; }.data-panel .table-search { height: 38px; border-radius: 9px; border-color: #dbe5ec; box-shadow: 0 1px 2px rgba(13, 42, 62, .03); }.data-panel .table-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,155,142,.09); }
.data-panel table.kra-table { min-width: 860px; }.data-panel table.kra-table thead th { background: #eff5f8; color: #587080; font-size: 10.5px; letter-spacing: .07em; padding: 12px 16px; border-bottom: 1px solid #dce8ee; }.data-panel table.kra-table td { padding: 14px 16px; border-bottom: 1px solid #edf2f5; color: #334656; }.data-panel table.kra-table tbody tr { transition: background .16s ease, box-shadow .16s ease; }.data-panel table.kra-table tbody tr:hover { background: #f5fbfa; box-shadow: inset 3px 0 0 var(--accent); }.data-panel table.kra-table td strong { color: #142b3b; font-weight: 700; }.data-panel table.kra-table td small { margin-top: 3px; font-size: 11.5px; }
.data-panel .status-badge { padding: 5px 10px; border: 1px solid #dbe7f6; }.data-panel .btn-sm { border-radius: 7px; font-size: 11.5px; font-weight: 700; }.data-panel .btn-link { text-decoration: none; }.data-panel .table-footer { background: #fff; border-top: 1px solid #edf2f5; padding: 12px 22px; }
.kpi-modal .modal-header { padding: 20px 24px; background: linear-gradient(115deg, #f4fbfa, #f4f8fc); }.modal-kicker { display: block; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .1em; margin-bottom: 5px; }.modal-kicker i { margin-right: 4px; }.kpi-modal .modal-title { font-size: 19px; }.kpi-modal .modal-body { padding: 24px; }.kpi-modal .form-grid { gap: 17px; }.form-section-title { display: flex; align-items: center; justify-content: space-between; color: #27465b; font: 700 13px 'Lexend', sans-serif; padding: 9px 11px; background: #f1f6f8; border-left: 3px solid var(--accent); border-radius: 5px; }.form-section-title span { font: 600 10.5px 'Inter', sans-serif; color: #77909e; text-transform: uppercase; letter-spacing: .04em; }.optional-label { color: #8092a0; font-weight: 500; }.kpi-modal .bulk-kpi-box { margin-top: 20px; padding: 16px; background: #fbfcff; border-style: dashed; border-color: #bfd3df; }.kpi-modal .modal-footer { padding: 14px 24px; }
.form-page-shell { max-width: 1050px; margin: 0 auto; }.form-page-heading { margin: 2px 0 18px; }.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 12.5px; font-weight: 700; margin-bottom: 10px; }.form-page-heading h2 { font-size: 23px; margin: 0; }.form-page-heading p { color: var(--text-soft); margin: 4px 0 0; }.form-page-card { display: grid; gap: 16px; }.form-page-section { padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: 13px; box-shadow: var(--shadow); }.section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }.section-heading h3 { font: 700 15px 'Lexend', sans-serif; margin: 0; }.section-heading p { color: var(--text-faint); font-size: 12px; margin: 3px 0 0; }.section-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }.additional-section { background: linear-gradient(135deg, #fbfdfd, #f4f9fc); }.additional-section .section-heading { justify-content: flex-start; }.additional-section .section-heading .btn { margin-left: auto; }.additional-kpi-row { display: grid; grid-template-columns: 45px 1.3fr .8fr .8fr .9fr 1.2fr 1.2fr 30px; gap: 8px; align-items: center; padding: 10px; margin-top: 8px; background: #fff; border: 1px solid #dfe9ee; border-radius: 8px; }.additional-kpi-row input { min-width: 0; border: 1px solid #d9e2eb; border-radius: 6px; padding: 8px; font: 500 12px 'Inter', sans-serif; }.row-number { color: var(--accent); font-size: 11px; font-weight: 800; text-align: center; }.form-page-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 4px 0 28px; }

.sidebar-toggle-btn {
  display: none;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 35, .4);
  z-index: 1025;
}

@media(max-width:992px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
  }

  .content {
    padding: 18px;
  }

  .sidebar-toggle-btn {
    display: inline-flex;
  }

  .mobile-overlay.show {
    display: block;
  }

  .stat-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-span-2 {
    grid-column: auto;
  }

  .bulk-kpi-row { grid-template-columns: 1fr 1fr 28px; }
  .bulk-kpi-row input:first-child { grid-column: span 2; }
  .table-controls { align-items: stretch; }.table-search { width: 100%; }
  .panel-actions { width: 100%; justify-content: space-between; }.data-panel .table-card { margin: 0 10px 10px; }
}

/* Organization analytics dashboard */
.analytics-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 28px;border-radius:15px;color:#fff;background:linear-gradient(115deg,#102d4c,#176574);margin-bottom:18px;box-shadow:0 12px 30px rgba(16,45,76,.18)}.analytics-hero h2{font-size:24px;margin:5px 0}.analytics-hero p{color:#c8dce4;margin:0;font-size:13px}.analytics-eyebrow{font-size:10px;letter-spacing:.11em;color:#8ee9de;font-weight:800}.filter-card{background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);margin-bottom:17px;overflow:hidden}.filter-card-head{display:flex;justify-content:space-between;align-items:center;padding:12px 17px;background:#f8fbfc;border-bottom:1px solid var(--border)}.filter-card-head strong{margin:0 7px}.filter-card-head span,.filter-card-head a{color:var(--text-faint);font-size:12px}.filter-card-head a{color:var(--accent);font-weight:700}.filter-grid{display:grid;grid-template-columns:repeat(7,minmax(100px,1fr));gap:10px;padding:14px 17px;align-items:end}.filter-grid label{font-size:10.5px;color:var(--text-soft);font-weight:800;text-transform:uppercase;letter-spacing:.04em}.filter-grid select{width:100%;margin-top:5px;min-height:36px;padding:0 8px;border:1px solid #dbe5eb;border-radius:7px;color:var(--text);font:500 12px 'Inter',sans-serif;background:#fff}.filter-grid .btn{min-height:36px;white-space:nowrap}.dashboard-tabs{display:flex;gap:4px;overflow-x:auto;margin-bottom:17px;padding:4px;background:#e8eef2;border-radius:10px}.dashboard-tabs button{border:0;background:transparent;color:var(--text-soft);padding:9px 13px;border-radius:7px;font:700 12px 'Inter',sans-serif;white-space:nowrap}.dashboard-tabs button i{margin-right:5px}.dashboard-tabs button.active{background:#fff;color:var(--primary);box-shadow:0 1px 5px rgba(20,48,70,.12)}.dashboard-tab{display:none}.dashboard-tab.active{display:block}.trend-chip{color:#118477;background:#e8f7f4;border-radius:12px;padding:3px 7px;font-size:10px;font-weight:800}.insight-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:17px;margin-bottom:17px}.chart-card,.insight-card{margin-bottom:0}.chart-wrap{padding:14px 20px 20px;height:250px}.chart-wrap canvas{width:100%;height:220px}.chart-legend{font-size:11px;color:var(--text-soft)}.chart-legend i{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--accent);margin-right:4px}.action-metrics{display:grid;grid-template-columns:1fr 1fr;padding:25px 20px}.action-metrics>div+div{border-left:1px solid var(--border);padding-left:20px}.action-number{display:block;font:800 28px 'Lexend',sans-serif;color:var(--success)}.action-number.warning,.monthly-kpi strong.warning{color:var(--warning)}.action-metrics span:last-child{color:var(--text-faint);font-size:11.5px}.insight-link{display:flex;justify-content:space-between;padding:13px 20px;border-top:1px solid var(--border);color:var(--primary);font-weight:700;font-size:12px}.mini-progress{width:88px;height:6px;display:inline-block;vertical-align:middle;border-radius:5px;overflow:hidden;background:#e6eef2;margin-right:7px}.mini-progress span{display:block;height:100%;background:linear-gradient(90deg,#15a596,#52cbbb);border-radius:inherit}.monthly-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:17px}.monthly-kpi{margin:0;padding:18px 20px}.monthly-kpi span,.monthly-kpi small{display:block;color:var(--text-faint);font-size:11.5px}.monthly-kpi strong{display:block;margin:6px 0;color:var(--primary);font:800 25px 'Lexend',sans-serif}
.org-filter-grid{grid-template-columns:repeat(6,minmax(110px,1fr))}.org-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 0 17px}.org-stats>div{padding:15px 17px;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow)}.org-stats span{display:block;color:var(--text-faint);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.org-stats strong{display:block;margin-top:5px;color:var(--primary);font:800 22px 'Lexend',sans-serif}.org-stats strong.success{color:var(--success)}.org-stats strong.warning{color:var(--warning)}.table-result-count{font-size:11.5px;color:var(--text-faint);font-weight:600}.department-pill{display:inline-block;padding:4px 7px;background:#eef4f9;color:#315773;border-radius:5px;font-size:11px;font-weight:700}

/* Sign in */
.login-body {
  min-height: 100%;
  background: #f6f8fb;
}

.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 46%) 1fr;
}

.login-intro {
  position: relative;
  overflow: hidden;
  padding: 42px clamp(36px, 7vw, 110px);
  color: #fff;
  background: linear-gradient(145deg, #0e2947 0%, #123d63 55%, #0c766f 130%);
  display: flex;
  flex-direction: column;
}

.login-brand,
.mobile-login-brand {
  font-family: 'Lexend', sans-serif;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 1;
}

.login-mark {
  display: inline-flex;
  width: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #20c6b5, #0f9088);
  font-size: 16px;
  color: #fff;
  box-shadow: 0 6px 16px rgba(7, 22, 41, .22);
}

.intro-copy {
  margin: auto 0 70px;
  position: relative;
  z-index: 1;
  max-width: 510px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  color: #7ee2d8;
}

.intro-copy h1 {
  font-size: clamp(35px, 3.7vw, 56px);
  line-height: 1.12;
  letter-spacing: -.045em;
  margin: 17px 0 19px;
}

.intro-copy p {
  max-width: 390px;
  font-size: 15px;
  line-height: 1.75;
  color: #c0d1e1;
  margin: 0;
}

.intro-orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(160, 238, 229, .13);
}

.orb-one {
  width: 470px;
  height: 470px;
  right: -190px;
  top: -155px;
  box-shadow: 0 0 0 62px rgba(119, 226, 213, .035), 0 0 0 125px rgba(119, 226, 213, .025);
}

.orb-two {
  width: 260px;
  height: 260px;
  left: -150px;
  bottom: -120px;
  background: rgba(33, 195, 181, .08);
}

.intro-stat {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: #b7cfe0;
}

.intro-stat i {
  color: #6ee1d3;
  font-size: 17px;
}

.intro-stat strong {
  color: #fff;
  margin-right: 4px;
}

@media(max-width:992px){.filter-grid{grid-template-columns:repeat(2,1fr)}.filter-grid .btn{grid-column:span 2}.insight-grid,.monthly-summary{grid-template-columns:1fr}.analytics-hero{align-items:flex-start;padding:22px}.analytics-hero .btn{display:none}}

.login-panel-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 36px;
  background: radial-gradient(circle at 72% 18%, #e8f5f3 0, transparent 24%), #fbfcfe;
}

.login-card {
  width: min(100%, 420px);
}

.login-heading {
  margin-bottom: 31px;
}

.login-heading h2 {
  font-size: 29px;
  letter-spacing: -.035em;
  margin: 0 0 8px;
}

.login-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.login-card>label {
  font-size: 12.5px;
  font-weight: 700;
  color: #344556;
  margin: 0 0 8px;
  display: block;
}

.login-input {
  height: 50px;
  border: 1px solid #dce4ec;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 11px;
  margin-bottom: 20px;
  transition: .2s;
}

.login-input:focus-within {
  border-color: #169a90;
  box-shadow: 0 0 0 3px rgba(15, 155, 142, .12);
}

.login-input>i {
  color: #8c9baa;
  font-size: 16px;
}

.login-input input {
  border: 0;
  outline: 0;
  width: 100%;
  font: 500 14px 'Inter', sans-serif;
  color: var(--text);
  background: transparent;
}

.login-input input::placeholder {
  color: #a3adba;
}

.password-toggle {
  border: 0;
  background: transparent;
  color: #718395;
  padding: 4px;
  line-height: 1;
  cursor: pointer;
  font-size: 17px;
}

.password-toggle:hover {
  color: var(--primary);
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -3px 0 25px;
  font-size: 12.5px;
}

.login-options a,
.login-help a {
  color: #167f78;
  font-weight: 600;
}

.remember {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #627384;
}

.remember input {
  accent-color: var(--accent);
}

.login-submit {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(100deg, #0b8d84, #1470a0);
  color: #fff;
  font: 700 14px 'Inter', sans-serif;
  box-shadow: 0 9px 20px rgba(16, 105, 121, .2);
  cursor: pointer;
  transition: transform .16s, box-shadow .16s;
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(16, 105, 121, .27);
}

.login-submit i {
  margin-left: 7px;
  font-size: 16px;
  vertical-align: -1px;
}

.login-help {
  text-align: center;
  margin: 25px 0 0;
  color: #8996a5;
  font-size: 12px;
}

.login-alert {
  padding: 10px 12px;
  border-radius: 7px;
  background: #fce9ea;
  color: #a43640;
  font-size: 12.5px;
  margin-bottom: 18px;
}

.mobile-login-brand {
  display: none;
  color: var(--primary);
  margin-bottom: 55px;
}

@media(max-width:760px) {
  .login-layout {
    display: block;
  }

  .login-intro {
    display: none;
  }

  .login-panel-wrap {
    min-height: 100vh;
    padding: 30px 24px;
    align-items: flex-start;
  }

  .login-card {
    margin-top: 20px;
  }

  .mobile-login-brand {
    display: flex;
  }

  .login-heading h2 {
    font-size: 27px;
  }
}

/* Organization team tree */
.team-tree-page { display: grid; gap: 20px; }
.team-tree-summary { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border: 1px solid #e1eaf0; border-radius: 14px; background: linear-gradient(115deg, #f1faf9 0%, #f6f8ff 100%); }
.team-tree-heading-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px; color: #087f78; background: #dff3f0; font-size: 22px; }
.team-tree-heading-copy { min-width: 220px; }
.team-tree-eyebrow { color: #168c83; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.team-tree-heading-copy h2 { margin: 3px 0 4px; color: #223b51; font: 700 21px 'Lexend', sans-serif; }
.team-tree-heading-copy p { margin: 0; color: #718496; font-size: 12px; }
.team-tree-metrics { display: flex; gap: 28px; margin-left: auto; }
.team-tree-metrics div { display: grid; gap: 3px; }
.team-tree-metrics strong { color: #23445a; font: 700 20px 'Lexend', sans-serif; }
.team-tree-metrics span { color: #7a8d9c; font-size: 10px; }
.team-tree-panel { padding: 0; overflow: hidden; }
.team-tree-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #edf1f5; }
.team-tree-search { display: flex; align-items: center; gap: 9px; width: min(360px, 100%); padding: 9px 12px; border: 1px solid #dce5eb; border-radius: 8px; color: #7d91a0; background: #fff; }
.team-tree-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 155, 142, .1); }
.team-tree-search input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font: 500 12px 'Inter', sans-serif; }
.team-tree-actions { display: flex; gap: 8px; }
.team-tree-scroll { overflow: auto; padding: 24px; }
.team-tree-list { list-style: none; margin: 0; padding: 0; }
.team-tree-root-list { min-width: min(720px, 100%); }
.team-tree-node { position: relative; margin: 0; }
.team-tree-node[hidden] { display: none; }
.team-tree-card { position: relative; display: flex; align-items: center; gap: 12px; max-width: 850px; min-height: 76px; margin: 0 0 11px; padding: 12px 14px; border: 1px solid #e2eaf0; border-radius: 10px; background: #fff; box-shadow: 0 3px 12px rgba(32, 60, 81, .035); }
.team-tree-card:hover { border-color: #b9dcd8; box-shadow: 0 5px 18px rgba(32, 90, 95, .08); }
.team-tree-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; color: #087f78; background: #e7f5f3; font-size: 13px; font-weight: 800; }
.team-tree-person { display: grid; min-width: 0; gap: 3px; }
.team-tree-person strong { overflow: hidden; color: #29445a; font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.team-tree-person span { overflow: hidden; color: #617687; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.team-tree-person small { color: #90a0ac; font-size: 10px; }
.team-tree-person small b { padding: 0 3px; color: #c0cbd2; }
.team-tree-report-count { margin-left: auto; padding: 5px 8px; border-radius: 20px; color: #4e7083; background: #f0f5f8; font-size: 10px; white-space: nowrap; }
.team-tree-individual { margin-left: auto; color: #8999a5; font-size: 10px; white-space: nowrap; }
.team-tree-individual i { margin-right: 4px; }
.team-tree-toggle { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid #e0e8ed; border-radius: 7px; color: #557183; background: #fff; }
.team-tree-toggle:hover { border-color: #b8dcd7; color: #087f78; background: #f3fbfa; }
.team-tree-children { margin: 1px 0 12px 21px; padding: 7px 0 0 27px; border-left: 1px solid #dbe6ec; }
.team-tree-children > .team-tree-node::before { position: absolute; top: 32px; left: -27px; width: 27px; border-top: 1px solid #dbe6ec; content: ''; }
.team-tree-empty-filter { margin: 0; padding: 25px; color: #8293a0; text-align: center; font-size: 12px; }
.team-tree-empty { padding: 45px 20px; }
@media(max-width:760px) {
  .team-tree-summary { flex-wrap: wrap; padding: 17px; }
  .team-tree-heading-copy { min-width: calc(100% - 70px); }
  .team-tree-metrics { justify-content: space-between; width: 100%; margin: 7px 0 0; gap: 10px; }
  .team-tree-metrics strong { font-size: 17px; }
  .team-tree-tools { align-items: stretch; flex-direction: column; padding: 13px; }
  .team-tree-search { width: 100%; }
  .team-tree-actions { justify-content: flex-end; }
  .team-tree-scroll { padding: 15px 10px; }
  .team-tree-children { margin-left: 9px; padding-left: 17px; }
  .team-tree-children > .team-tree-node::before { left: -17px; width: 17px; }
  .team-tree-card { gap: 8px; padding: 10px; }
  .team-tree-avatar { width: 36px; height: 36px; flex-basis: 36px; }
  .team-tree-report-count { display: none; }
}
