/* == Restore legacy UI look and alignment == */

/* Nav pills (Companies, Renewals, Number Plates, Reports, Settings, Logout) */
.nav-pills,
.nav-pills .pill,
.nav-tabs,
.nav-tabs a {
  display: inline-flex;
  align-items: center;     /* vertically center icon + text */
  gap: 8px;                /* spacing between icon and text */
  border-radius: 12px;
  height: 42px;
  padding: 0 16px;
  line-height: 1;
}

/* Ensure icons align baseline within pills and buttons */
.nav-pills .icon,
.nav-tabs .icon,
.btn .icon,
button .icon,
a.button .icon,
.action .icon {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  margin-top: -1px;        /* tiny optical tweak to center */
}

/* Table header and rows */
table th, table td {
  vertical-align: middle;
}

/* Legacy button palette */
.btn,
button,
a.button {
  border-radius: 8px;
  font-weight: 600;
}

/* Primary (blue) */
.btn-primary,
button.btn-primary,
a.btn-primary,
button[type="submit"],
.action-primary {
  background-color: #2F6FED;   /* legacy blue */
  color: #ffffff;
  border: 1px solid #2A62D1;
}
.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover,
button[type="submit"]:hover,
.action-primary:hover {
  background-color: #285ed0;
  border-color: #224fb3;
}

/* Success (green-wide add company) */
.btn-success,
a.btn-success,
.action-success {
  background-color: #10B981;   /* emerald */
  color: #ffffff;
  border: 1px solid #0ea271;
}
.btn-success:hover,
a.btn-success:hover,
.action-success:hover {
  background-color: #0c9667;
  border-color: #0b865c;
}

/* Warning (Edit) */
.btn-warning,
a.btn-warning,
.action-warning {
  background-color: #F59E0B;
  color: #ffffff;
  border: 1px solid #d98909;
}
.btn-warning:hover,
a.btn-warning:hover,
.action-warning:hover {
  background-color: #d98909;
  border-color: #b87308;
}

/* Danger (Delete) */
.btn-danger,
a.btn-danger,
.action-danger {
  background-color: #EF4444;
  color: #ffffff;
  border: 1px solid #d53c3c;
}
.btn-danger:hover,
a.btn-danger:hover,
.action-danger:hover {
  background-color: #d53c3c;
  border-color: #b83232;
}

/* Light badge/pill backgrounds for filters */
.pill,
.badge,
.nav-pill {
  background-color: #eef2ff;   /* light indigo */
  color: #1f2937;              /* slate-800 text */
}

/* Reset any global button/text overrides introduced recently */
button, .btn, a.button {
  font-size: 14px;             /* revert to compact desktop sizing */
}

.text-muted { color: #6b7280; } /* slate-500 */
.text-danger { color: #ef4444; }
.text-success { color: #10b981; }