:root {
  --navy: #0f1f43;
  --blue: #254bb7;
  --page: #f3f6fb;
  --card: #ffffff;
  --line: #dfe6f1;
  --text: #101d3d;
  --muted: #7f8fb4;
  --green: #16b36b;
  --red: #ef2c2f;
  --orange: #e78200;
  --purple: #783df0;
}

/* Compact Bootstrap Table controls on the employee list page. */
.employee-list-panel .bootstrap-table .fixed-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: -46px 0 12px;
}

.employee-list-panel .bootstrap-table .fixed-table-toolbar::after {
  display: none;
}

.employee-list-panel .bootstrap-table .fixed-table-toolbar .bs-bars,
.employee-list-panel .bootstrap-table .fixed-table-toolbar .search {
  float: none !important;
  margin: 0 !important;
}

.employee-list-panel .bootstrap-table .search input {
  width: 270px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: none;
}

.employee-table-filters {
  margin: 0;
}

@media (max-width: 991px) {
  .employee-list-panel .bootstrap-table .fixed-table-toolbar {
    align-items: stretch;
    flex-direction: column;
    margin: 0 0 12px;
  }

  .employee-list-panel .bootstrap-table .search input,
  .employee-table-filters,
  .employee-table-filters select {
    width: 100%;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--page);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
}

button,
input {
  font: inherit;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1050;
  display: flex;
  width: 290px;
  min-height: 100vh;
  flex-direction: column;
  background: var(--navy);
  color: #fff;
  transition: transform .24s ease;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 84px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #e93235;
  font-weight: 800;
}

.brand strong,
.brand span,
.sidebar-user strong,
.sidebar-user span {
  display: block;
}

.brand strong {
  font-size: 17px;
  line-height: 1;
}

.brand span,
.sidebar-user span {
  color: #8997ba;
  font-size: 13px;
}

.side-menu {
  flex: 1;
  padding: 18px 14px;
  overflow-y: auto;
}

.side-menu::-webkit-scrollbar {
  width: 5px;
}

.side-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.menu-heading {
  margin: 0 10px 12px;
  color: #647291;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.menu-item {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 46px;
  margin-bottom: 7px;
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  background: transparent;
  color: #aeb9d4;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}

.menu-item i {
  width: 21px;
  font-size: 18px;
}

.menu-item.active,
.menu-item:hover {
  background: var(--blue);
  color: #fff;
}

.menu-item b {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: #e93235;
}

.has-submenu .submenu-arrow {
  width: auto;
  margin-left: auto;
  color: #6f7f9f;
  font-size: 13px;
  transition: transform .2s ease;
}

.has-submenu.open .submenu-arrow {
  transform: rotate(180deg);
  color: #fff;
}

.submenu {
  display: none;
  margin: -2px 0 8px 36px;
  padding-left: 0px;
  border-left: 1px solid rgba(255,255,255,.12);
}

.submenu.show {
  display: grid;
  gap: 4px;
}

.submenu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: #8f9dbc;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}

.submenu-item:hover,
.submenu-item.active {
  color: #fff;
  background: rgba(37,75,183,.55);
}

.sidebar-user {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.avatar,
.profile-btn span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.sidebar-user div {
  flex: 1;
  min-width: 0;
}

.sidebar-user > i {
  color: #647291;
}

.main {
  width: 100%;
  min-width: 0;
  margin-left: 290px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
}

.page-copy h1 {
  margin: 0;
  font-size: 29px;
  font-weight: 700;
}

.page-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search {
  display: flex;
  gap: 11px;
  align-items: center;
  width: 280px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f9fe;
}

.search i {
  color: #000;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faff;
  color: #0c1936;
}

.alert-btn b {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.profile-btn {
  display: flex;
  gap: 9px;
  align-items: center;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px 0 6px;
  background: #f8faff;
  color: var(--text);
  font-weight: 600;
}

.profile-menu {
  position: relative;
}

.profile-btn i {
  transition: transform .2s ease;
}

.profile-menu.open .profile-btn i {
  transform: rotate(180deg);
}

.profile-btn span {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  font-size: 12px;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 200;
  display: none;
  width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(12,30,70,.14);
}

.profile-menu.open .profile-dropdown {
  display: grid;
  gap: 4px;
}

.profile-dropdown button {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  padding: 0 10px;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  text-align: left;
}

.profile-dropdown button:hover {
  background: #f1f5fd;
  color: var(--blue);
}

.profile-dropdown .logout {
  color: var(--red);
}

.profile-dropdown .logout:hover {
  background: #ffe8e9;
  color: var(--red);
}

.content {
  padding: 20px 28px 16px;
}

.section-head {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
}

.section-head:not(:first-child) {
  margin-top: 24px;
}

.section-head div {
  display: flex;
  gap: 9px;
  align-items: center;
  white-space: nowrap;
}

.section-head i {
  color: var(--blue);
  font-size: 19px;
}

.accounting-head i {
  color: var(--red);
}

.queue-head i {
  color: var(--orange);
}

.appointment-head i {
  color: var(--green);
}

.section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.section-head span {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  border-radius: 999px;
  padding: 0 12px;
  background: #eaf0ff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

.section-head hr {
  width: 100%;
  margin: 0;
  border-color: var(--line);
  opacity: 1;
}

.stat-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  box-shadow: 0 6px 20px rgba(12,30,70,.04);
}

.stat-card {
  display: flex;
  justify-content: space-between;
  min-height: 116px;
  padding: 20px;
}

.stat-card p {
  margin: 0;
  color: #8291b4;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 18px;
  font-size: 25px;
  line-height: 1;
  font-weight: 700;
}

.stat-card small {
  display: block;
  margin-top: 13px;
  font-size: 14px;
  font-weight: 600;
}

.stat-card em {
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}

.up {
  color: var(--green);
}

.down {
  color: var(--red);
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  font-size: 19px;
}

.stat-icon.green { color: var(--green); background: #d9fae8; }
.stat-icon.red { color: var(--red); background: #ffe0e2; }
.stat-icon.amber { color: var(--orange); background: #fff0c6; }
.stat-icon.blue { color: var(--blue); background: #e8edfb; }

.panel {
  min-height: 100%;
  padding: 18px 20px;
}

.panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.panel p {
  margin: 2px 0 0;
  color: var(--muted);
}

.panel a,
.panel-title a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.attendance-list {
  display: grid;
  gap: 11px;
}

.att-row {
  display: grid;
  grid-template-columns: 66px 1fr 36px;
  gap: 12px;
  align-items: center;
}

.att-row span {
  color: var(--muted);
}

.att-row strong {
  text-align: right;
  font-size: 14px;
}

.track {
  height: 9px;
  border-radius: 999px;
  background: #e2e7f0;
  overflow: hidden;
}

.track b {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.blue-bar { background: var(--blue); }
.red-bar { background: #dd2d30; }
.orange-bar { background: var(--orange); }
.purple-bar { background: var(--purple); }

.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.attendance-card .legend {
  margin-top: 13px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 50%;
}

.blue-dot { background: var(--blue); }
.red-dot { background: var(--red); }
.orange-dot { background: var(--orange); }
.purple-dot { background: var(--purple); }

.quick-card {
  padding-bottom: 22px;
}

.quick-card h3 {
  margin-bottom: 18px;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quick {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
}

.blue-soft { color: var(--blue); background: #e7edf9; }
.green-soft { color: var(--green); background: #d9fae8; }
.yellow-soft { color: var(--orange); background: #fff0c6; }
.red-soft { color: var(--red); background: #fbdadb; }

.cash-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.cash {
  min-height: 82px;
  border-radius: 12px;
  padding: 12px;
}

.cash span,
.cash small {
  display: block;
  color: inherit;
}

.cash span {
  font-size: 13px;
  opacity: .72;
}

.cash strong {
  display: block;
  margin: 6px 0;
  font-size: 21px;
  line-height: 1;
}

.green-box { color: var(--green); background: #d9fae8; }
.red-box { color: var(--red); background: #fbdadb; }
.blue-box { color: var(--blue); background: #e8edfb; }

.spark-line {
  display: grid;
  grid-template-columns: 1fr 120px;
  align-items: center;
  margin-top: 22px;
  color: var(--muted);
}

.spark-line svg {
  width: 120px;
  height: 38px;
}

.spark-line polyline {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.red-spark polyline {
  stroke: var(--red);
}

.income-card {
  padding-bottom: 14px;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 26px;
  align-items: end;
  height: 158px;
  margin-top: 3px;
  padding-top: 15px;
}

.bar-chart div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  align-items: end;
  height: 118px;
}

.bar-chart b,
.bar-chart i {
  display: block;
  min-height: 20px;
  border-radius: 5px 5px 0 0;
}

.bar-chart b {
  background: linear-gradient(180deg, #365dbc, var(--blue));
}

.bar-chart i {
  background: #de575a;
}

.bar-chart span {
  grid-column: 1 / -1;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.chart-foot {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.chart-foot strong {
  color: var(--green);
}

.dashboard-table {
  margin: 0;
  table-layout: fixed;
}

.dashboard-table th:nth-child(1),
.dashboard-table td:nth-child(1) {
  width: 20%;
}

.dashboard-table th:nth-child(2),
.dashboard-table td:nth-child(2) {
  width: 36%;
}

.dashboard-table .amount-col {
  width: 18%;
  padding-right: 24px;
  white-space: nowrap;
}

.dashboard-table .date-col {
  width: 12%;
  color: var(--muted);
  white-space: nowrap;
}

.dashboard-table .status-col {
  width: 14%;
  text-align: right;
  white-space: nowrap;
}

.dashboard-table th {
  color: #7f90b4;
  font-size: 13px;
  font-weight: 600;
}

.dashboard-table td,
.dashboard-table th {
  padding: 12px 0;
  border-color: var(--line);
}

.dashboard-table td:first-child {
  color: var(--blue);
  font-weight: 600;
}

.dashboard-table td:nth-child(3) {
  font-weight: 600;
}

.badge-pill {
  display: inline-flex;
  justify-content: center;
  min-width: 72px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 600;
}

.overdue { color: var(--red); background: #ffe0e2; }
.due { color: var(--orange); background: #fff0c6; }
.pending { color: var(--blue); background: #e8edfb; }

.live-queue-card .panel-title span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.token-now {
  display: grid;
  gap: 5px;
  min-height: 128px;
  place-items: center;
  border: 1px solid #cfd9ed;
  border-radius: 12px;
  background: #f8faff;
  text-align: center;
}

.token-now span,
.token-now small {
  color: var(--muted);
  font-weight: 600;
}

.token-now strong {
  color: var(--blue);
  font-size: 38px;
  line-height: 1;
}

.queue-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.queue-stack div {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid var(--line);
}

.queue-stack div:last-child {
  border-bottom: 0;
}

.queue-stack span {
  color: var(--muted);
}

.queue-stack strong {
  color: var(--text);
}

.queue-legend {
  margin-top: 14px;
}

.queue-table th:nth-child(1),
.queue-table td:nth-child(1) {
  width: 16%;
}

.queue-table th:nth-child(2),
.queue-table td:nth-child(2) {
  width: 26%;
}

.queue-table th:nth-child(3),
.queue-table td:nth-child(3) {
  width: 34%;
}

.queue-total strong {
  color: var(--green);
}

.appointment-card .panel-title span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.appointment-now {
  display: grid;
  gap: 5px;
  min-height: 128px;
  place-items: center;
  border: 1px solid #cfd9ed;
  border-radius: 12px;
  background: #f8faff;
  text-align: center;
}

.appointment-now span,
.appointment-now small {
  color: var(--muted);
  font-weight: 600;
}

.appointment-now strong {
  color: var(--green);
  font-size: 28px;
  line-height: 1.1;
}

.appointment-slots {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.appointment-slots div {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid var(--line);
}

.appointment-slots div:last-child {
  border-bottom: 0;
}

.appointment-slots span {
  color: var(--muted);
  font-size: 13px;
}

.appointment-slots strong {
  color: var(--text);
  font-size: 14px;
}

.appointment-legend {
  margin-top: 14px;
}

.appointment-table th:nth-child(1),
.appointment-table td:nth-child(1) {
  width: 14%;
}

.appointment-table th:nth-child(2),
.appointment-table td:nth-child(2) {
  width: 25%;
}

.appointment-table th:nth-child(3),
.appointment-table td:nth-child(3) {
  width: 31%;
}

.appointment-total strong {
  color: var(--green);
}

.payment-list > div {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

.payment-list i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--blue);
  background: #f1f4fb;
}

.payment-list .purple { color: var(--purple); }
.payment-list .orange { color: var(--orange); }
.payment-list .red { color: var(--red); }

.payment-list strong,
.payment-list small {
  display: block;
}

.payment-list strong {
  font-size: 14px;
}

.payment-list small {
  color: var(--muted);
}

.payment-list b {
  font-size: 14px;
}

.total-due {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  color: var(--muted);
}

.total-due strong {
  color: var(--red);
  font-size: 18px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer div {
  display: flex;
  gap: 24px;
}

.footer strong {
  color: var(--green);
  font-weight: 700;
}

.footer i {
  font-size: 9px;
}

.page-content {
  padding-bottom: 34px;
}

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

.page-toolbar h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.page-toolbar p {
  margin: 4px 0 0;
  color: var(--muted);
}

.ghost-action,
.btn-main {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  padding: 0 15px;
  font-weight: 600;
  text-decoration: none;
}

.ghost-action {
  color: var(--blue);
  background: #eaf0ff;
}

.btn-main {
  color: #fff;
  background: var(--blue);
}

.btn-main.small-link {
  min-height: 44px;
}

.btn-soft {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 18px;
  color: var(--text);
  background: #fff;
  font-weight: 600;
}

.employee-form {
  display: grid;
  gap: 22px;
}

.form-section {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.form-section h3,
.side-card h3,
.employee-list-panel h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
}

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

.form-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.form-grid label,
.form-grid span {
  display: block;
}

.form-grid span {
  margin-bottom: 7px;
  color: #7385ad;
  font-size: 13px;
  font-weight: 600;
}

.form-grid input,
.form-grid select,
.filter-group select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 12px;
  outline: 0;
  color: var(--text);
  background: #f8faff;
}

.upload-grid {
  align-items: stretch;
}

.upload-field {
  min-height: 96px;
  border: 1px dashed #cbd7ec;
  border-radius: 13px;
  padding: 14px;
  background: #f8faff;
}

.upload-field input[type="file"] {
  min-height: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  font-size: 13px;
}

.upload-field input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-right: 10px;
  border: 0;
  border-radius: 9px;
  padding: 0 12px;
  color: var(--blue);
  background: #eaf0ff;
  font-weight: 600;
}

.form-grid input:focus,
.form-grid select:focus,
.filter-group select:focus {
  border-color: rgba(37,75,183,.55);
  box-shadow: 0 0 0 4px rgba(37,75,183,.08);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list label {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
}

.mini-stats {
  display: grid;
  gap: 10px;
}

.mini-stats div,
.list-stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #f8faff;
}

.mini-stats span,
.list-stat span,
.list-stat small {
  display: block;
  color: var(--muted);
}

.mini-stats strong,
.list-stat strong {
  display: block;
  margin: 6px 0;
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
}

.list-stat.green strong { color: var(--green); }
.list-stat.amber strong { color: var(--orange); }
.list-stat.red strong { color: var(--red); }

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

.list-toolbar p {
  margin: -10px 0 0;
  color: var(--muted);
}

.filter-group {
  display: flex;
  gap: 10px;
}

.filter-group select {
  width: 170px;
  background: #fff;
}

.employee-table-filters input {
  width: 220px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 12px;
  outline: 0;
  color: var(--text);
  background: #fff;
}

.employee-table-filters input:focus {
  border-color: rgba(37,75,183,.55);
  box-shadow: 0 0 0 4px rgba(37,75,183,.08);
}

.employee-list-panel .bootstrap-table .fixed-table-toolbar .search {
  display: none !important;
}

.employee-table {
  margin: 0;
}

.bootstrap-table .fixed-table-toolbar {
  margin-bottom: 12px;
}

.bootstrap-table .search input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: none;
}

.bootstrap-table .pagination-detail,
.bootstrap-table .page-list,
.bootstrap-table .pagination {
  color: var(--muted);
  font-size: 14px;
}

.bootstrap-table .page-link {
  border-color: var(--line);
  color: var(--blue);
}

.bootstrap-table .active > .page-link {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.employee-table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.employee-table td,
.employee-table th {
  padding: 14px 0;
  border-color: var(--line);
}

.emp-cell {
  display: flex;
  gap: 11px;
  align-items: center;
}

.emp-cell b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
}

.emp-cell span,
.emp-cell small {
  display: block;
}

.emp-cell span {
  font-weight: 600;
}

.emp-cell small {
  color: var(--muted);
  font-weight: 400;
}

.row-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.row-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: #f8faff;
}

.row-btn.edit {
  color: var(--blue);
  background: #eaf0ff;
}

.row-btn.delete {
  color: var(--red);
  background: #ffe8e9;
}

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

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

  .main {
    margin-left: 0;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .top-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .search {
    order: 8;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .content,
  .topbar {
    padding-inline: 16px;
  }

  .section-head div {
    flex-wrap: wrap;
    white-space: normal;
  }

  .section-head hr {
    display: none;
  }

  .quick-grid,
  .cash-boxes {
    grid-template-columns: 1fr;
  }

  .att-row {
    grid-template-columns: 58px 1fr 32px;
  }

  .bar-chart {
    gap: 10px;
  }

  .footer {
    flex-direction: column;
    padding-inline: 16px;
  }

  .footer div {
    flex-direction: column;
    gap: 6px;
  }

  .page-toolbar,
  .list-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid,
  .filter-group {
    grid-template-columns: 1fr;
    width: 100%;
  }

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

  .filter-group {
    display: grid;
  }

  .filter-group select {
    width: 100%;
  }

  .form-actions {
    flex-direction: column;
  }
}

@media (max-width: 991px) {
  .employee-table-filters,
  .employee-table-filters select,
  .employee-table-filters input {
    width: 100%;
  }
}

.employee-list-panel .bootstrap-table .fixed-table-toolbar {
  display: none !important;
  margin: 0 !important;
}

.employee-list-panel .list-toolbar {
  align-items: flex-start;
}

.employee-list-panel .employee-table-filters {
  align-items: center;
  justify-content: flex-end;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background: linear-gradient(135deg, rgba(15,31,67,.96), rgba(37,75,183,.9)), var(--page);
}

.portal-login-page {
  background:
    radial-gradient(circle at 18% 18%, rgba(20,184,166,.18), transparent 32%),
    linear-gradient(135deg, #12211f 0%, #1f2937 48%, #0f3d3e 100%);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 500px) minmax(280px, 430px);
  width: min(100%, 1040px);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 28px 80px rgba(4,12,32,.35);
}

.portal-auth-shell {
  grid-template-columns: minmax(330px, 470px) minmax(560px, 1fr);
  width: min(100%, 1180px);
  min-height: 680px;
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 30px 90px rgba(7,16,24,.42);
}

.register-shell { width: min(100%, 1120px); }

.slim-auth {
  grid-template-columns: minmax(320px, 500px);
  width: min(100%, 500px);
  min-height: auto;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
}

.auth-brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  width: max-content;
  margin-bottom: 38px;
  color: var(--text);
  text-decoration: none;
}

.auth-brand small,
.auth-brand strong { display: block; }

.auth-brand small {
  color: var(--muted);
  font-size: 13px;
}

.auth-copy { margin-bottom: 26px; }

.auth-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.auth-copy h1 {
  margin: 0;
  color: var(--text);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-copy p {
  margin: 8px 0 0;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  position: relative;
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.auth-form label > i {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: var(--muted);
  font-size: 17px;
}

.auth-form input,
.auth-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px 0 42px;
  color: var(--text);
  background: #fff;
  outline: 0;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: rgba(37,75,183,.55);
  box-shadow: 0 0 0 4px rgba(37,75,183,.1);
}

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

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.check-line {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  gap: 8px !important;
  align-items: center;
  margin: 0;
  color: var(--muted) !important;
  font-weight: 600 !important;
}

.check-line input {
  width: 16px;
  min-height: 16px;
  padding: 0;
}

.auth-options a,
.auth-switch a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  margin-top: 4px;
}

.primary-action {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}

.portal-login-page .brand-logo {
  background: #f59e0b;
  color: #17211f;
}

.portal-login-page .auth-kicker,
.portal-login-page .auth-options a,
.portal-login-page .auth-switch a {
  color: #0f8f83;
}

.portal-login-page .auth-form input:focus {
  border-color: rgba(20,184,166,.62);
  box-shadow: 0 0 0 4px rgba(20,184,166,.12);
}

.portal-login-page .primary-action {
  background: #0f766e;
}

.portal-login-page .primary-action:hover {
  background: #115e59;
}

.auth-switch {
  margin: 22px 0 0;
  color: var(--muted);
  text-align: center;
}

.auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 46px;
  color: #fff;
  background: linear-gradient(145deg, rgba(15,31,67,.96), rgba(16,35,80,.88));
}

.auth-aside span {
  display: block;
  margin-bottom: 12px;
  color: #9fb4ff;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.auth-aside h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0;
}

.portal-auth-aside {
  gap: 28px;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(17,24,39,.96), rgba(13,75,76,.9)),
    #17211f;
}

.portal-aside-head p {
  width: min(100%, 600px);
  margin: 12px 0 0;
  color: #d7e6df;
  font-size: 15px;
  line-height: 1.6;
}

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

.portal-module-grid article {
  min-height: 132px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255,255,255,.075);
}

.portal-module-grid i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 8px;
  color: #fff;
  background: #0f766e;
  font-size: 19px;
}

.portal-module-grid article:nth-child(2) i {
  background: #2563eb;
}

.portal-module-grid article:nth-child(3) i {
  background: #f59e0b;
  color: #17211f;
}

.portal-module-grid article:nth-child(4) i {
  background: #dc2626;
}

.portal-module-grid article:nth-child(5) i {
  background: #7c3aed;
}

.portal-module-grid article:nth-child(6) i {
  background: #16a34a;
}

.portal-module-grid strong {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-size: 15px;
}

.portal-module-grid span {
  margin: 0;
  color: #d7e6df;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.auth-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.auth-metrics article {
  min-height: 86px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255,255,255,.08);
}

.auth-metrics strong {
  display: block;
  font-size: 22px;
}

.auth-metrics span,
.auth-list li {
  margin: 0;
  color: #c9d4ef;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}

.portal-auth-metrics article {
  min-height: 76px;
}

.auth-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-list i {
  color: var(--green);
  font-size: 18px;
}

.auth-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: var(--blue);
  background: #eaf0ff;
  font-size: 28px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.profile-hero h2 {
  margin: 6px 0 2px;
  font-size: 28px;
  font-weight: 800;
}

.profile-hero p {
  margin: 0;
  color: var(--muted);
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 24px;
  font-weight: 800;
}

.profile-hero .ghost-action { margin-left: auto; }

.active-status {
  background: #e6f8ef;
  color: var(--green);
}

.profile-side h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
}

.profile-stat,
.toggle-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.profile-stat:last-child,
.toggle-line:last-child { border-bottom: 0; }

.profile-stat strong {
  color: var(--text);
  font-size: 14px;
  text-align: right;
}

.toggle-line {
  margin: 0;
  font-weight: 600;
}

.toggle-line input {
  width: 18px;
  height: 18px;
}

.profile-dropdown a {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  padding: 11px 14px;
  color: var(--text);
  background: transparent;
  text-align: left;
  text-decoration: none;
}

.profile-dropdown a:hover { background: #f4f7ff; }

@media (max-width: 991px) {
  .auth-shell,
  .portal-auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    display: none;
  }
}

@media (max-width: 767px) {
  .auth-page { padding: 16px; }

  .auth-panel { padding: 28px 20px; }

  .auth-copy h1 { font-size: 28px; }

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

  .profile-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-hero .ghost-action {
    width: 100%;
    margin-left: 0;
  }
}
