* {
  box-sizing: border-box;
}

i.fa-solid,
i.fa-regular {
  line-height: 1;
  font-style: normal;
}

:root {
  --primary: #721bff;
  --primary2: #3c16d8;
  --blue: #1689f4;
  --green: #35c76c;
  --orange: #ff9d00;
  --pink: #d91aa4;
  --red: #ff174d;
  --dark: #03070c;
  --white: #ffffff;
  --text: #070d24;
  --muted: #5b6896;
  --line: #E5E7EB;
  --line-hover: #D1D5DB;
  --card: rgba(255, 255, 255, .86);
  --shadow: 0 22px 50px rgba(30, 42, 79, .09);
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: #eaf1fb;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.dangerBoader {
  border: 1px solid red !important;
}

.app {
  min-height: 100vh;
  display: flex;
  background:
    radial-gradient(circle at 85% 10%, rgba(114, 27, 255, .08), transparent 25%),
    linear-gradient(135deg, #fbfdff 0%, #eef4ff 100%);
}

.sidebar {
  width: 286px;
  min-width: 286px;
  height: 100vh;
  position: sticky;
  top: 0;
  background:
    radial-gradient(circle at 15% 100%, rgba(101, 35, 255, .42), transparent 32%),
    linear-gradient(180deg, #02070c 0%, #02070c 100%);
  border-radius: 0 18px 18px 0;
  color: var(--white);
  padding: 28px 14px 20px;
  display: flex;
  flex-direction: column;
  z-index: 20;
  overflow: hidden;
  will-change: width, min-width;
  transition: width .35s cubic-bezier(.4, 0, .2, 1),
    min-width .35s cubic-bezier(.4, 0, .2, 1),
    transform .35s cubic-bezier(.4, 0, .2, 1),
    padding .35s cubic-bezier(.4, 0, .2, 1);
}

.custom-gap {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 34px;
  padding: 0 10px;
  transition: margin .35s cubic-bezier(.4, 0, .2, 1);
}

.logo-img {
  width: 100%;
  max-width: 160px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: max-width .35s cubic-bezier(.4, 0, .2, 1);
}

.logo-mark {
  font-size: 54px;
  line-height: .9;
  letter-spacing: 0;
  font-weight: 900;
  margin-bottom: 12px;
}

.menu {
  display: grid;
  gap: 8px;
  /* flex: 1; */
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding-right: 4px;
}

.menu::-webkit-scrollbar {
  width: 6px;
}

.menu::-webkit-scrollbar-track {
  background: transparent;
}

.menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .14);
  border-radius: 99px;
}

.menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .28);
}

.menu a {
  height: 48px;
  color: #f6f8ff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  transition: padding .35s cubic-bezier(.4, 0, .2, 1), gap .35s cubic-bezier(.4, 0, .2, 1), background .2s ease;
}

.menu a>span:not(.icon) {
  display: inline-block;
  /* max-width: 180px; */
  opacity: 1;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width .35s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
}

.menu a:hover {
  background: rgba(255, 255, 255, .08);
}

.menu a.active {
  background: linear-gradient(135deg, #4517d7 0%, #8b22ff 100%);
  box-shadow: 0 16px 32px rgba(115, 34, 255, .34);
}

.menu .icon {
  width: 22px;
  font-size: 18px;
  text-align: center;
  opacity: .96;
  display: grid;
  place-items: center;
}

.side-profile {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, .13);
  padding: 26px 6px 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  /* overflow: hidden; */
  transition: padding .35s cubic-bezier(.4, 0, .2, 1), gap .35s cubic-bezier(.4, 0, .2, 1);
}

.side-profile>div:not(.avatar-ns) {
  max-width: 160px;
  opacity: 1;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width .35s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
}

.side-profile .chev {
  display: inline-block;
  max-width: 20px;
  opacity: 1;
  overflow: hidden;
  transition: max-width .35s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
  display: none;
}

.avatar-ns {
  width: 51px;
  height: 51px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  background: linear-gradient(135deg, #3510d8, #a22bff);
  flex: none;
}

.side-profile strong {
  display: block;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-profile small {
  display: block;
  margin-top: 3px;
  color: #ccd5e9;
  font-size: 12px;
  font-style: italic;
}

.side-profile .chev {
  font-size: 12px;
  color: #ccd5e9;
}

.date-pill i {
  font-size: 14px;
}

.main {
  flex: 1;
  padding: 28px 34px 18px;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 15px;
}

.title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.menu-toggle {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #050915;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  margin-top: 3px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  transition: background .2s ease;
}

.menu-toggle:hover {
  background: #eef2fb;
}

.hamburger {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: currentColor;
  border-radius: 3px;
  transform-origin: center;
  transition: top .3s cubic-bezier(.4, 0, .2, 1),
    transform .3s cubic-bezier(.4, 0, .2, 1),
    opacity .2s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 7px;
}

.hamburger span:nth-child(3) {
  top: 14px;
}

body.menu-open .hamburger span:nth-child(1),
body.sidebar-collapsed .hamburger span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

body.menu-open .hamburger span:nth-child(2),
body.sidebar-collapsed .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

body.menu-open .hamburger span:nth-child(3),
body.sidebar-collapsed .hamburger span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

h1 {
  margin: 0 0 8px;
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: -.75px;
  font-weight: 700;
}

.header-title h1 {
  white-space: nowrap;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  font-size: 15px;
}

.header-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.search {
  width: 330px;
  height: 48px;
  border: 1px solid #dfe6f3;
  border-radius: 12px;
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 17px;
  color: #7581aa;
  box-shadow: var(--shadow);
  font-size: 16px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: #14204a;
  font-weight: 500;
  min-width: 0;
}

.search-input::placeholder {
  color: #7581aa;
  font-weight: 500;
}

.search b {
  margin-left: auto;
  background: #eee8ff;
  color: #8a78bc;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 13px;
}

.top-icon {
  width: 50px;
  height: 50px;
  background: var(--white);
  border: 1px solid #e5ebf7;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 20px;
  position: relative;
  box-shadow: var(--shadow);
}

.notif-badge,
.count-badge {
  position: absolute;
  top: -7px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff0d42;
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  padding: 0 4px;
  line-height: 1;
}

.count-badge {
  min-width: 14px;
  height: 14px;
  font-size: 8px;
  top: -5px;
  right: -4px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 25px;
  background: linear-gradient(135deg, #ffd2a5, #bd663e);
  position: relative;
  flex: none;
  cursor: pointer;
}

.avatar .avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #19d463;
  border: 2px solid var(--white);
  position: absolute;
  right: -2px;
  bottom: 0px;
}

.avatar-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid #e2e8f5;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(30, 42, 79, .18);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.avatar.open .avatar-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.avatar-menu li {
  padding: 0;
}

.avatar-menu li.divider {
  height: 1px;
  background: #e2e8f5;
  margin: 6px 14px;
}

.avatar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #14204a;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.avatar-menu li a i {
  width: 18px;
  text-align: center;
  font-size: 15px;
  color: #5b6896;
}

.avatar-menu li a:hover {
  background: #f4f6fc;
  color: var(--primary);
}

.avatar-menu li a:hover i {
  color: var(--primary);
}

.top-section {
  display: flex;
  margin-bottom: 20px;
}

.date-pill {
  height: 44px;
  padding: 0 18px;
  background: var(--white);
  border: 1px solid #dfe6f3;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  color: #14204a;
  box-shadow: 0 15px 35px rgba(30, 42, 79, .06);
  font-size: 14px;
  position: relative;
  cursor: pointer;
  user-select: none;
  margin-left: auto;
}

.date-pill .chev {
  transition: transform .25s ease;
  font-size: 13px;
  color: var(--muted);
}

.date-pill.open .chev {
  transform: rotate(180deg);
}

.date-pill-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid #dfe6f3;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(30, 42, 79, .14);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.date-pill.open .date-pill-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.date-pill-menu li {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #14204a;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

.date-pill-menu li:hover {
  background: #eef2fb;
  color: var(--primary);
}

.date-pill-menu li.active {
  background: #efe7ff;
  color: var(--primary);
}

.s-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.project-stat,
.project-metric,
.project-view,
.service-dashboard-stat {
  margin-bottom: 24px;
}

.project-content .s-card {
  height: 100%;
}

.stat-card {
  min-height: 124px;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 34px;
  height: 100%;
}

.stat-icon {
  width: 70px;
  height: 70px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  font-size: 30px;
  box-shadow: 0 16px 32px rgba(23, 42, 91, .1);
  flex: none;
}

.soft-purple {
  background: #efe7ff;
  color: #711dff;
}

.soft-green {
  background: #e4faec;
  color: #2ebb60;
}

.soft-red {
  background: #ffe5ed;
  color: var(--red);
}

.soft-blue {
  background: #e6f4ff;
  color: var(--blue);
}

.soft-orange {
  background: #fff2df;
  color: var(--orange);
}

.soft-pink {
  background: #ffecef;
  color: var(--red);
}

.stat-card h3 {
  margin: 0 0 7px;
  font-size: 15px;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  font-size: 33px;
  line-height: 1;
  letter-spacing: -1px;
}

.stat-card p {
  margin: 7px 0 0;
  color: #515d8d;
  font-size: 14px;
  font-weight: 500;
}

.metric-card {
  min-height: 114px;
  border-radius: 12px;
  color: var(--white);
  padding: 22px 32px 18px 106px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(62, 25, 210, .16);
}

.metric-card::before {
  position: absolute;
  left: 34px;
  top: 26px;
  font-size: 42px;
}

.metric-card::after {
  position: absolute;
  right: 34px;
  bottom: -10px;
  font-size: 82px;
  opacity: .18;
}

.users,
.branch {
  background: linear-gradient(135deg, #3817d6 0%, #7420ff 100%);
}

.nonverify {
  background: linear-gradient(135deg, #ff9900 0%, #ff8b00 100%);
}

.pending {
  background: linear-gradient(135deg, #ca138a 0%, #df2ab6 100%);
}

.users::before {
  content: "\f500";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
}

.users::after {
  content: "\f0c0";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
}

.branch::before {
  content: "\f1ad";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
}

.branch::after {
  content: "\f1ad";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
}

.nonverify::before {
  content: "\f505";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
}

.nonverify::after {
  content: "\f3ed";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
}

.pending::before {
  content: "\f15c";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
}

.pending::after {
  content: "\f073";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
}

.metric-card h3 {
  margin: 0 0 7px;
  font-size: 16px;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  margin-bottom: 9px;
}

.metric-card small {
  font-weight: 500;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 17px;
  font-weight: 900;
}

.view-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
}

.attendance {
  padding: 22px;
}

.donut {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  margin: auto;
  background: conic-gradient(var(--green) 0 72%, var(--orange) 72% 82%, var(--red) 82% 90%, var(--primary) 90% 100%);
  display: grid;
  place-items: center;
}

.donut-inner {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  text-align: center;
  color: #2a3862;
  font-size: 12px;
  font-weight: 800;
}

.donut-inner strong {
  display: block;
  color: #061025;
  font-size: 33px;
  letter-spacing: -1px;
}

.legend {
  display: grid;
  gap: 18px;
  font-size: 14px;
  font-weight: 800;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}

.legend-row b {
  margin-left: auto;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.mini-box {
  min-height: 88px;
  border-radius: 13px;
  padding: 13px 8px;
  text-align: center;
  font-weight: 900;
}

.mini-box .ico {
  font-size: 22px;
  margin-bottom: 3px;
}

.mini-box small {
  display: block;
  color: #0d1532;
  font-size: 11px;
  margin-bottom: 4px;
}

.mini-box strong {
  font-size: 18px;
}

.progress-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 900;
}

.thin-bar {
  height: 7px;
  background: #e4e9f3;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 10px;
}

.thin-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.project-panel,
.quick-panel,
.activity-panel {
  padding: 22px;
}

.project-row {
  display: grid;
  grid-template-columns: 54px auto 1fr 0px;
  align-items: center;
  margin: 28px 0px 34px;
}

.project-action {
  display: grid;
  gap: 18px;
}

.project-row:last-child {
  margin-bottom: 10px;
}

.project-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 14px 22px rgba(114, 27, 255, .26);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0px 18px 0px 4px;
}

.project-info strong {
  font-size: 15px;
  font-weight: 800;
  color: #14204a;
}

.project-info small {
  font-size: 12px;
  color: #515d8d;
  font-weight: 600;
}

.project-row b {
  text-align: right;
  font-size: 16px;
  font-weight: 900;
  color: #14204a;
}

.project-row .progress-info-bar b {
  position: absolute;
  top: 0px;
  right: 0;
}

.progress-info-bar {
  position: relative;
  height: 100%;
  display: flex;
  align-items: end;
}

.bar {
  height: 7px;
  background: #e4e9f3;
  border-radius: 99px;
  overflow: hidden;
  width: 100%;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.quick-block {
  text-align: center;
  font-size: 12px;
  color: #515d8d;
  font-weight: 600;
}

.quick-icon {
  width: 59px;
  height: 59px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.quick-block a {
  color: #515d8d;
  text-decoration: none;
}

.timeline {
  display: grid;
  gap: 22px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: #dae2f0;
}

.activity-row {
  display: grid;
  grid-template-columns: 25px 48px 1fr auto;
  gap: 14px;
  align-items: center;
  font-size: 12px;
}

.activity-row .dot {
  margin-left: 6px;
  position: relative;
  z-index: 1;
}

.activity-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 12px 22px rgba(30, 42, 79, .08);
}

.activity-row p {
  margin: 0;
  font-weight: 900;
}

.activity-row small {
  white-space: nowrap;
  color: #515d8d;
  font-weight: 600;
}

/* ===== User Page: My Overview Cards ===== */

.overview-panel {
  padding: 22px;
}

.overview-card {
  border-radius: 14px;
  padding: 16px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.overview-card::after {
  position: absolute;
  right: -10px;
  bottom: -15px;
  font-size: 80px;
  opacity: .15;
  color: var(--white);
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
}

.overview-card.holiday {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.overview-card.holiday::after {
  content: "\f5ca";
}

.overview-card.leaves {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.overview-card.leaves::after {
  content: "\f073";
}

.overview-card.hr-policy {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.overview-card.hr-policy::after {
  content: "\f15c";
}

.overview-card.timesheets {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.overview-card.timesheets::after {
  content: "\f017";
}

.overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
  min-height: 28px;
}

.overview-label {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .5px;
}

.overview-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
}

.overview-sub {
  font-size: 13px;
  opacity: .85;
  font-weight: 600;
  margin-bottom: 10px;
}

.overview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.overview-list li {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.overview-list li:last-child {
  border-bottom: none;
}

.overview-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: .7;
}

.overview-empty i {
  font-size: 36px;
  margin-bottom: 8px;
}

.overview-empty p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.overview-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .2);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  width: fit-content;
  cursor: pointer;
  position: relative;
  user-select: none;
  color: var(--white);
}

.overview-dropdown .chev {
  font-size: 10px;
  transition: transform .25s ease;
}

.overview-dropdown.open .chev {
  transform: rotate(180deg);
}

.overview-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 140px;
  background: var(--white);
  border: 1px solid #dfe6f3;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(30, 42, 79, .18);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  overflow-y: scroll;
  max-height: 200px;
}

.overview-dropdown.open .overview-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.overview-dropdown-menu li {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #14204a;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

.overview-dropdown-menu li:hover {
  background: #eef2fb;
  color: var(--primary);
}

.overview-dropdown-menu li.active {
  background: #efe7ff;
  color: var(--primary);
}

.overview-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.overview-action:hover {
  color: var(--white);
  opacity: .85;
}

/* ===== User Page: Attendance Trend Chart ===== */

.attendance-trend {
  padding: 22px;
}

.chart-area {
  width: 100%;
  overflow: hidden;
}

.trend-chart {
  width: 100%;
  height: auto;
  display: block;
}

.chart-label {
  fill: #5b6896;
  font-size: 11px;
  font-weight: 700;
  text-anchor: end;
}

.chart-grid {
  stroke: #e2e8f5;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.chart-fill-path {
  fill: rgba(114, 27, 255, .08);
}

.chart-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-dot {
  fill: var(--white);
  stroke: var(--primary);
  stroke-width: 2;
}

.chart-dot-active {
  fill: var(--primary);
  stroke: var(--white);
  stroke-width: 2;
}

.chart-label-bg {
  fill: var(--primary);
}

.chart-label-text {
  fill: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-anchor: middle;
}

.chart-xlabel {
  fill: #5b6896;
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
}

/* ===== User Page: Notifications ===== */

.notification-panel {
  padding: 22px;
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notification-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  margin-top: 5px;
}

.notification-item p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #14204a;
}

.notification-item small {
  color: #5b6896;
  font-weight: 600;
  font-size: 12px;
}

/* ===== User Page: Activity Feed ===== */

.activity-feed {
  padding: 22px;
  margin-top: 18px;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feed-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex: none;
}

.feed-item p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #14204a;
}

.feed-item small {
  display: block;
  margin-top: 3px;
  color: #5b6896;
  font-weight: 600;
  font-size: 12px;
}

/* ===== User Page: Soft Teal ===== */

.soft-teal {
  background: #e0f7f5;
  color: #0d9488;
}

/* ===== User Page: Avatar Override ===== */

.avatar-ns img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .52);
  z-index: 18;
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
}

body.sidebar-collapsed .sidebar {
  width: 84px;
  min-width: 84px;
  padding-left: 10px;
  padding-right: 10px;
}

body.sidebar-collapsed .logo {
  margin-bottom: 26px;
}

body.sidebar-collapsed .logo-img {
  max-width: 56px;
}

body.sidebar-collapsed .logo-mark {
  font-size: 36px;
}

body.sidebar-collapsed .menu a {
  justify-content: flex-start;
  padding: 0px 21px;
  gap: 0;
}

body.sidebar-collapsed .menu a>span:not(.icon),
body.sidebar-collapsed .side-profile>div:not(.avatar-ns),
body.sidebar-collapsed .side-profile .chev {
  max-width: 0;
  opacity: 0;
}

/* ===== Sidebar submenu ===== */
.menu-item {
  position: relative;
}

.submenu-toggle {
  cursor: pointer;
}

.submenu-toggle .arrow {
  margin-left: auto;
  font-size: 12px;
  color: #ccd5e9;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), color .2s ease, max-width .35s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
}

.submenu-toggle .arrow i {
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.has-submenu.open .submenu-toggle .arrow i {
  transform: rotate(180deg);
}

.submenu {
  display: grid;
  gap: 4px;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  list-style: none;
  transition: max-height .35s cubic-bezier(.4, 0, .2, 1), padding .35s cubic-bezier(.4, 0, .2, 1);
}

.has-submenu.open .submenu {
  max-height: 500px;
  padding: 4px 0 6px;
}

.submenu li {
  list-style: none;
}

.menu .submenu a {
  height: 42px;
  font-size: 12px;
  font-weight: 600;
  color: #d6dcec;
  opacity: .72;
  padding: 0 18px 0 35px;
  position: relative;
  gap: 10px;
  transition: padding .35s cubic-bezier(.4, 0, .2, 1), gap .35s cubic-bezier(.4, 0, .2, 1), background .2s ease, opacity .2s ease, color .2s ease;
}

.menu .submenu a::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--primary);
  border-radius: 3px;
  transition: height .2s ease, background .2s ease;
}

.menu .submenu a:hover {
  background: rgba(255, 255, 255, .06);
  opacity: 1;
  color: var(--white);
}

.menu .submenu a:hover::before {
  height: 16px;
  background: rgba(255, 255, 255, .35);
}

.menu .submenu a.active {
  background: rgba(114, 27, 255, .18);
  opacity: 1;
  color: var(--white);
}

.menu .submenu a.active::before {
  height: 20px;
  background: var(--primary);
}

.menu .submenu a .icon {
  width: 18px;
  font-size: 15px;
  opacity: .9;
}

/* Collapsed sidebar: floating popup */
body.sidebar-collapsed .has-submenu {
  position: relative;
}

body.sidebar-collapsed .submenu-toggle {
  justify-content: flex-start;
  padding: 0 22px;
  gap: 0;
}

body.sidebar-collapsed .submenu-toggle .label,
body.sidebar-collapsed .submenu-toggle .arrow {
  max-width: 0;
  opacity: 0;
  pointer-events: none;
}

body.sidebar-collapsed .submenu {
  display: none;
  position: fixed;
  min-width: 220px;
  max-height: none;
  overflow: visible;
  padding: 8px;
  margin: 0;
  background: linear-gradient(180deg, #02070c 0%, #02070c 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  z-index: 30;
  transition: none;
}

body.sidebar-collapsed .submenu.popup-show {
  display: block;
}

body.sidebar-collapsed .menu .submenu a {
  padding: 0 14px;
  border-radius: 8px;
  height: 40px;
  opacity: 1;
  color: var(--white);
  gap: 14px;
}

body.sidebar-collapsed .menu .submenu a>span {
  display: inline-block;
  max-width: none !important;
  opacity: 1 !important;
}

body.sidebar-collapsed .menu .submenu a::before {
  display: none;
}

/* ===== Page Title ===== */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}

.page-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.page-header .breadcrumb {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 6px;
  margin-bottom: 0px;
}

.page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(30, 42, 79, .06);
  transition: background .2s ease, border-color .2s ease;
}

.btn:hover {
  background: #f4f6fc;
  border-color: var(--line-hover);
}

.btn-primary,
.btn-upload {
  background: linear-gradient(135deg, #4517d7, #8b22ff);
  color: var(--white);
  border: none;
  box-shadow: 0 14px 28px rgba(115, 34, 255, .28);
}

.btn-primary:hover,
.btn-upload:hover {
  background: linear-gradient(135deg, var(--primary2), var(--primary));
  color: var(--white);
}

/* ===== Table Card ===== */

.s-card.table-card {
  padding: 24px;
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  min-height: 40px;
}

.table-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
}

.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.datatable-search {
  position: relative;
  width: 240px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.datatable-search::after {
  content: "\f002";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  margin-top: -10px;
  left: 14px;
}

.datatable-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  padding: 6px 12px;
}

.datatable-search input::placeholder {
  color: var(--muted);
  font-weight: 600;
}

.select {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background .2s ease;
}

.select:hover {
  background: #f4f6fc;
  color: var(--text);
}

.filter-dropdown {
  position: relative;
}

.filter-dropdown .select {
  width: 100%;
}

.filter-dropdown .chev {
  transition: transform .25s ease;
  font-size: 11px;
  color: var(--muted);
}

.filter-dropdown.open .chev {
  transform: rotate(180deg);
}

.filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(30, 42, 79, .14);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.filter-dropdown.open .filter-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filter-menu li {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

.filter-menu li:hover {
  background: #eef2fb;
  color: var(--primary);
}

.filter-menu li.active {
  background: #efe7ff;
  color: var(--primary);
}

.datatable-container {
  border-radius: 12px;
  border: 1px solid var(--line) !important;
  overflow-x: auto;
}

.datatable-sorter::after,
.datatable-sorter::before {
  right: -20px
}

.table-wrap th:last-child .datatable-sorter::after,
.table-wrap th:last-child .datatable-sorter::before {
  right: -8px
}

.datatable-sorter::before {
  bottom: 4px;
}

.datatable-sorter::after {
  top: -2px;
}

.datatable-top {
  padding: 0px 0px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.datatable-top>div:first-child,
.datatable-top>div:last-child,
.datatable-bottom>div:first-child,
.datatable-bottom>nav:last-child {
  float: none !important;
}

.datatable-bottom::after,
.datatable-top::after {
  display: none;
}

.datatable-bottom {
  padding: 24px 0px 0px;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.table-wrap thead {
  background: #f8f9fc;
}

.table-wrap th {
  padding: 14px 18px !important;
  text-align: left !important;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--line) !important;
  white-space: nowrap;
  width: auto !important;
}

.table-wrap th input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.table-wrap td {
  padding: 14px 18px !important;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid #f0f2f8;
  vertical-align: middle !important;
}

.table-wrap td p {
  margin-bottom: 0px;
}

.table-wrap tbody tr {
  transition: background .15s ease;
}

.table-wrap tbody tr:hover {
  background: #f8f9fc;
}

.table-wrap tbody tr:last-child td {
  border-bottom: none;
}

.table-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: color .15s ease;
}

.table-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.filters-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filters-form .filter-dropdown {
  width: auto;
}

.filters-form .filter-dropdown .select {
  width: auto;
}

.hidden-select,
.filters-form .hidden-select {
  display: none !important;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.mini-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #efe7ff, #e6f4ff);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  position: relative;
  flex: none;
}

.mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.mini-avatar .online {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  background: var(--green);
  border: 2px solid var(--white);
  border-radius: 50%;
}

.user-cell b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.user-cell span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.status span {
  font-size: 10px;
}

.active-s {
  background: #e4faec;
  color: #1a9d4e;
}

.inactive-s {
  background: #ffe5ed;
  color: var(--red);
}

.verified-s {
  background: #e4faec;
  color: #1a9d4e;
}

.unverified-s {
  background: #fff2df;
  color: var(--orange);
}

.open-s,
.open-s:hover {
  background: #f0e6ff;
  color: var(--primary);
}

.actions {
  display: flex;
  gap: 6px;
}

.act,
.more-action {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: background .15s ease, color .15s ease;
}

.act:hover {
  background: #f4f6fc;
  color: var(--primary);
}

.act.edit:hover {
  background: #efe7ff;
  color: var(--primary);
}

.act.view:hover {
  background: #e6f4ff;
  color: var(--blue);
}

.more-action:hover {
  background: #efe7ff;
  color: var(--primary);
}

.more-wrap {
  position: relative;
}

.more-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  display: flex;
  gap: 4px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(30, 42, 79, .16);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.more-wrap.open .more-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.datatable-info {
  margin: 7px 0;
}

.datatable-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.datatable-dropdown label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.datatable-selector {
  height: 36px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: auto;
  transition: border-color .2s ease;
}

.datatable-pagination .datatable-pagination-list {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0px;
  padding: 0px;
  list-style: none;
}

.datatable-pagination-list-item {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.datatable-pagination-list-item:hover {
  background: #f4f6fc;
}

.datatable-pagination-list-item a {
  text-decoration: none;
  color: var(--text);
  background: transparent;
  padding: 0px;
  margin: 0px;
  cursor: pointer !important;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.datatable-pagination-list-item.datatable-active {
  background: linear-gradient(135deg, #4517d7, #8b22ff);
  border-color: transparent;
}

.datatable-pagination-list-item.datatable-active a {
  color: var(--white);
}

.datatable-pagination .datatable-active a,
.datatable-pagination .datatable-active a:focus,
.datatable-pagination .datatable-active a:hover,
.datatable-pagination a:hover {
  background: transparent;
}

.datatable-pagination-list-item:first-child,
.datatable-pagination-list-item:last-child {
  font-size: 20px;
  font-weight: 600;
}

/* ===== Company Profile ===== */

.company-profile-tabs {
  margin-bottom: 24px;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab {
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: all .2s ease;
}

.tab:hover {
  color: var(--text);
  border-color: #c9d1e8;
}

.tab.active {
  background: linear-gradient(135deg, #4517d7, #8b22ff);
  color: var(--white);
  border-color: transparent;
}

.company-card {
  overflow: hidden;
}

.company-cover {
  height: 152px;
  background: linear-gradient(135deg, #4517d7, #8b22ff);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-building {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, .2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--white);
}

.company-edit {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, .25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
  cursor: pointer;
}

.company-info {
  padding: 24px 28px;
}

.company-info h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.company-info h3 .status {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.company-info>p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 20px;
}

.company-details {
  display: grid;
  gap: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row span {
  color: var(--muted);
  font-weight: 600;
}

.detail-row strong {
  font-weight: 700;
}

.detail-row a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.detail-row a:hover {
  text-decoration: underline;
}

.form-card {
  padding: 24px 28px;
}

.form-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 24px;
}

.form-field {
  margin-bottom: 0;
}

.form-field label {
  display: flex;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.form-field label .req {
  color: var(--red);
}

.form-input {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 42px;
}

.form-input:hover,
.datatable-search:hover,
.datatable-selector:hover {
  border-color: var(--line-hover);
}

.form-input:focus,
.datatable-search:focus,
.datatable-selector:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.form-input.placeholder {
  color: #b0b9d3;
}

.form-input.select,
select.form-input {
  cursor: pointer;
}

.form-field:has(> select) {
  position: relative;
}

.form-field:has(> select)::after {
  content: "\f078";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  position: absolute;
  right: 14px;
  bottom: 0;
  height: 42px;
  display: flex;
  align-items: center;
  pointer-events: none;
  color: var(--muted);
  font-size: 13px;
}

.form-field:has(> select) select.form-input {
  padding-right: 36px;
}

textarea.form-input {
  height: auto;
}

.form-merge {
  display: flex;
  gap: 24px;
}

.form-merge .form-field:first-child {
  width: 90px;
}

.form-merge .form-field:last-child {
  flex: 1;
}

.logo-upload-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-upload-wrapper input[type="file"] {
  flex: 1;
  cursor: pointer;
  padding: 6px 14px;
}

.logo-preview {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--line);
  flex-shrink: 0;
}

.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.date-input-wrapper,
.time-input-wrapper {
  position: relative;
}

.date-input-wrapper i,
.time-input-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  pointer-events: none;
}

.date-input-wrapper .form-input,
.time-input-wrapper .form-input {
  padding-left: 38px;
}

.company-profile-footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.security-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}

.company-actions {
  display: flex;
  gap: 12px;
}

/* ===== Verification Section ===== */

.verification-section {
  padding: 24px 28px;
}

.verification-section .section-title {
  display: block;
  margin-bottom: 24px;
}

.verification-section .section-title h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--text);
}

.verification-section .section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.docs-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.doc-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 180px 30px;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.doc-row:last-child {
  border-bottom: none;
}

.doc-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.doc-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.doc-icon.green {
  background: #e4faec;
  color: var(--green);
}

.doc-icon.blue {
  background: #e6f4ff;
  color: var(--blue);
}

.doc-icon.orange {
  background: #fff2df;
  color: var(--orange);
}

.doc-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.doc-info p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.verification-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.verification-status .check {
  color: var(--green);
  font-size: 18px;
}

.verification-status .clock {
  color: var(--orange);
  font-size: 18px;
}

.verification-status strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.verification-status p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.btn-preview {
  /*background: var(--white);*/
  /*border: 1px solid var(--line);*/
  background: #e4faec;
  color: #2ebb60;
  border: 1px solid #2ebb60;
}

.btn-preview:hover {
  background: #e6f4ff;
  border-color: var(--blue);
  color: var(--blue);
}

.dots {
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}

.dots:hover {
  background: #f4f6fc;
  color: var(--primary);
}

.delete-icon:hover {
  background: #ffe5ed;
  color: var(--red);
}

.assign-users {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.act.add:hover {
  background: #e4faec;
  color: var(--green);
}

.in-table-img {
  width: 36px;
  height: 36px;
  /* border-radius: 50%; */
  object-fit: cover;
}

/* ===== Today's Birthdays Section ===== */

.birthday-panel {
  padding: 22px;
  margin-bottom: 24px;
}

.pill-count {
  background: #efe7ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  padding: 3px 10px;
  margin-left: 8px;
}

.bday-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
}

.bday-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7c6a5, #232a55);
  flex: none;
}

.bday-photo img {
  height: 100%;
  width: 100%;
  border-radius: 50%;
}

.bday-info {
  flex: 1;
  min-width: 0;
}

.bday-info h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.today-badge {
  background: #efe7ff;
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
}

.bday-info p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bday-info p i {
  width: 14px;
  font-size: 12px;
  color: var(--primary);
}

.bday-info .btn {
  margin-top: 6px;
}


/* datepicker section  */

.datepicker {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(30, 42, 79, .14);
  font-family: Inter, sans-serif;
  padding: 8px;
  margin-top: 4px;
}

.datepicker table {
  margin: 0;
}

.datepicker table tr td,
.datepicker table tr th {
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
  width: 35px;
  height: 30px;
}

.datepicker table tr td.day {
  font-weight: 600;
  color: var(--text);
}

.datepicker table tr td.day:hover,
.datepicker table tr td.day.focused {
  background: #efe7ff;
  color: var(--primary);
}

.datepicker table tr td.old,
.datepicker table tr td.new {
  color: #b0b9d3;
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active:focus {
  background: linear-gradient(135deg, #4517d7, #8b22ff) !important;
  color: var(--white) !important;
  box-shadow: 0 8px 18px rgba(115, 34, 255, .32);
}

.datepicker table tr td.today,
.datepicker table tr td.today:hover {
  background: #efe7ff;
  color: var(--primary);
  font-weight: 800;
}

.datepicker table tr td.range,
.datepicker table tr td.range:hover {
  background: #f4f0ff;
  color: var(--primary);
}

.datepicker table tr th.datepicker-switch {
  font-weight: 800;
  color: var(--text);
  font-size: 14px;
}

.datepicker table tr th.prev,
.datepicker table tr th.next {
  color: var(--muted);
  font-weight: 800;
  font-size: 16px;
}

.datepicker table tr th.prev:hover,
.datepicker table tr th.next:hover {
  background: #eef2fb;
  color: var(--primary);
}

.datepicker table tr th.dow {
  font-weight: 700;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.input-group.date {
  position: relative;
}

.input-group.date .form-input[readonly] {
  background: var(--white);
  cursor: pointer;
}

.input-group-addon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
  z-index: 2;
}

.input-group.date .form-input {
  padding-right: 40px;
}


/* ===== Off Days Picker ===== */

.off-days-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.off-day-item {
  flex: 1 1 130px;
  min-width: 130px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  user-select: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.off-day-item:hover {
  background: #f4f6fc;
  border-color: var(--line-hover);
}

.off-day-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  margin: 0;
  pointer-events: none;
}

.off-day-item:has(input[type="checkbox"]:checked) {
  background: #efe7ff;
  border-color: var(--primary);
  color: var(--primary);
}

.off-day-item span {
  font-size: 13px;
  font-weight: 600;
  color: inherit;
}

.off-day-item-content {
  width: fit-content;
  width: max-content;
}

/* ===== Goal Dashboard ===== */

.goal-dashboard-content {
  margin-bottom: 24px;
}

.goal-panel {
  padding: 22px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.goal-panel .section-title {
  margin-bottom: 16px;
}

.goal-panel .section-title span {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
}

.goal-list-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.goal-list-scroll::-webkit-scrollbar {
  width: 5px;
}

.goal-list-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .15);
  border-radius: 10px;
}

.goal-item {
  background: #f9fafc;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.goal-item:hover {
  background: #eef2ff;
  border-color: #e2e8f5;
  transform: translateY(-4px);
}

.goal-item.active {
  background: linear-gradient(135deg, #f5f0ff 0%, #ede5ff 100%);
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(114, 27, 255, .12);
}

.goal-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.goal-item-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.goal-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex: none;
}

.goal-item-title strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.goal-status-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.goal-status-badge.completed {
  background: #e4faec;
  color: #1a9d4e;
}

.goal-status-badge.in-progress {
  background: #efe7ff;
  color: var(--primary);
}

.goal-item.active .goal-status-badge.in-progress {
  background: #e6f4ff;
  color: var(--blue);
}

.goal-status-badge.pending {
  background: #fff2df;
  color: var(--orange);
}

.goal-status-badge.not-started {
  background: #f0f2f8;
  color: var(--muted);
}

.goal-progress-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.goal-progress-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.goal-progress-bar .bar {
  flex: 1;
  height: 6px;
  background: #e4e9f3;
  border-radius: 99px;
  overflow: hidden;
}

.goal-progress-bar .bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.3s ease;
}

.goal-progress-bar b {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  min-width: 36px;
  text-align: right;
}

.goal-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  justify-content: space-between;
}

.goal-meta .goal-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.goal-item.task-item {
  padding: 14px 16px;
}

.goal-item.task-item .goal-item-header {
  margin-bottom: 0;
}

/* ===== Service Dashboard ===== */

.overview-section {
  padding: 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.overview-section .section-title {
  margin-bottom: 14px;
}

.overview-section .section-title .view-link {
  font-size: 12px;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.overview-stat-item {
  text-align: center;
  padding: 12px 6px;
  border-radius: 10px;
  background: #f8f9fc;
}

.overview-stat-item .stat-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.overview-stat-item .stat-value i {
  font-size: 14px;
}

.overview-stat-item .stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.overview-stat-item.green .stat-value {
  color: var(--green);
}

.overview-stat-item.blue .stat-value {
  color: var(--blue);
}

.overview-stat-item.orange .stat-value {
  color: var(--orange);
}

.overview-stat-item.red .stat-value {
  color: var(--red);
}

.overview-stat-item.purple .stat-value {
  color: var(--primary);
}

.overview-table {
  flex: 1;
  overflow: hidden;
}

.overview-table table {
  width: 100%;
  border-collapse: collapse;
}

.overview-table thead {
  background: #f8f9fc;
}

.overview-table th {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.overview-table td {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid #f0f2f8;
}

.overview-table tbody tr:last-child td {
  border-bottom: none;
}

.overview-table tbody tr:hover {
  background: #f8f9fc;
}

.overview-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  flex-wrap: wrap;
}

.overview-footer .footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.service-dashboard-stat .overview-empty {
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  height: 100%;
  margin-top: -16px;
}

.service-dashboard-stat .overview-empty i {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
  opacity: .5;
}

.table-scroll {
  height: 240px;
  overflow-y: auto;
}

.table-scroll::-webkit-scrollbar {
  width: 4px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .12);
  border-radius: 10px;
}

.item-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-cell-img {
  width: 34px;
  height: 34px;
  border: 1px solid #464646 !important;
  border-radius: 50%;
  overflow: hidden;
  background: #e2e2e2;
  flex: none;
  display: grid;
  place-items: center;
}

.item-cell-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.item-cell-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.type-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  white-space: nowrap;
}

.type-badge.purple {
  color: var(--primary);
  background: #efe7ff;
}

.type-badge.green {
  color: #1a9d4e;
  background: #e4faec;
}

.type-badge.blue {
  color: var(--blue);
  background: #e6f4ff;
}

.type-badge.orange {
  color: var(--orange);
  background: #fff2df;
}

/* ===== Login Page ===== */

body.login-page {
  background: #eaf1fb !important;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body.login-page #layoutAuthentication1,
body.login-page #layoutAuthentication_content,
body.login-page main {
  min-height: 100vh;
}

body.login-page main {
  display: flex;
  flex-direction: column;
}

body.login-page .container {
  max-width: 100%;
  padding: 0;
}

.login-split {
  display: flex;
  min-height: 100vh;
}

/* ===== Login Left Panel ===== */
.login-left {
  flex: 0 0 44%;
  max-width: 44%;
  background: #ececf8;
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.login-brand {
  margin-bottom: 50px;
}

.login-brand-logo {
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
}

.login-left-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.login-left h2 {
  font-size: 38px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -.5px;
}

.login-left h2 span {
  color: var(--primary);
}

.login-left-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 36px;
  font-weight: 500;
  max-width: 380px;
}

.login-features {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: #efe7ff;
  color: #711dff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(114, 27, 255, .12);
  font-size: 18px;
}

.login-feature-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}

.login-feature-text p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}

.login-illustration {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  overflow: hidden;
  line-height: 0;
}

.login-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Login Right Panel ===== */
.login-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 60px;
  background: var(--white);
}

.login-form-wrapper {
  width: 100%;
  max-width: 490px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.login-form-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-form-icon {
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(115, 34, 255, 0.2);
}

.login-form-icon i {
  color: var(--primary);
  font-size: 30px;
}

.login-form-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.login-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0 auto;
  font-weight: 500;
  width: 320px;
}

/* ===== Login Form ===== */
.login-form .form-group {
  margin-bottom: 18px;
}

.login-form .form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.login-input-group {
  position: relative;
}

.login-input-group i.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  pointer-events: none;
  z-index: 2;
}

.login-form .form-control {
  height: 50px;
  width: 100%;
  padding: 0 16px 0 46px;
  border: 1px solid #dfe6f3;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.login-form .form-control:hover {
  border-color: #c5d0e6;
}

.login-form .form-control:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(114, 27, 255, .12);
  outline: none;
}

.login-form .form-control::placeholder {
  color: #9ca3af;
  font-weight: 500;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #9ca3af;
  font-size: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: #6b7280;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.login-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.login-forgot {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: opacity .2s ease;
}

.login-submit {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #4517d7, #8b22ff);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s ease, box-shadow .2s ease;
  box-shadow: 0 14px 28px rgba(115, 34, 255, .28);
  text-decoration: none;
}

.login-submit:hover {
  background: linear-gradient(135deg, #3c16d8, #721bff);
  color: var(--white);
  box-shadow: 0 18px 35px rgba(115, 34, 255, .35);
}

.login-submit i {
  font-size: 14px;
}

.login-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.login-divider span {
  padding: 0 16px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.login-social {
  display: flex;
  gap: 12px;
}

.login-social-btn {
  flex: 1;
  height: 46px;
  border: 1px solid #dfe6f3;
  border-radius: 12px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
  text-decoration: none;
}

.login-social-btn:hover {
  background: #f4f6fc;
  border-color: var(--line-hover);
}

.login-social-btn img,
.login-social-btn svg {
  width: 18px;
  height: 18px;
}

/* ===== Login Footer ===== */
.login-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #4517d7, #8b22ff);
  /* border-top: 1px solid var(--line); */
  padding: 16px 48px;
  z-index: 10;
}

.login-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.login-footer-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--white);
  font-weight: 600;
}

.login-footer-badge i {
  color: var(--white);
  font-size: 14px;
}

.login-footer-badge span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.login-footer-badge .dot {
  color: #d1d5db;
}

.login-footer-center {
  font-size: 12px;
  color: var(--white);
  font-weight: 500;
}

.login-footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--white);
  font-weight: 500;
}

.login-footer-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

.login-footer-links a:hover {
  color: var(--primary);
}

.login-footer-links .sep {
  color: #d1d5db;
}

/* ===== Forgot Password Page ===== */
.forgot-security-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f8f7fc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.forgot-security-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: #efe7ff;
  color: #711dff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 6px 14px rgba(114, 27, 255, .1);
}

.forgot-security-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.forgot-security-text p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
}

.forgot-back-link {
  text-align: center;
}

.forgot-back-link .login-forgot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.forgot-back-link .login-forgot i {
  font-size: 12px;
}

/* ===== Login Error Modal ===== */
.login-error-modal {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(30, 42, 79, .18);
  max-width: 420px;
  margin: 0 auto;
}

.login-error-modal-body {
  padding: 40px 32px 32px;
  text-align: center;
}

.login-error-icon-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 24px;
}

.login-error-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(145deg, #fde8ec, #fbd0d8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.login-error-icon i {
  font-size: 36px;
  color: #e53e5c;
}

.login-error-sparkles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  color: #e53e5c;
  opacity: .55;
  font-size: 12px;
}

.sparkle-1 {
  top: 8px;
  left: 2px;
  font-size: 10px;
}

.sparkle-2 {
  top: 2px;
  right: 6px;
  font-size: 11px;
}

.sparkle-3 {
  bottom: 14px;
  left: -4px;
  font-size: 9px;
}

.sparkle-4 {
  top: 18px;
  right: -6px;
  font-size: 9px;
}

.sparkle-5 {
  bottom: 6px;
  right: 2px;
  font-size: 10px;
}

.login-error-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}

.login-error-divider {
  height: 1px;
  background: var(--line);
  margin: 0 0 24px;
}

.login-error-forgot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: opacity .2s ease;
}

.login-error-forgot:hover {
  opacity: .8;
}

.login-error-forgot i {
  font-size: 13px;
}

/* ===== Login Location Modal (extends login-error-modal) ===== */
.login-location-icon {
  background: linear-gradient(145deg, #ede7ff, #ddd0ff) !important;
}

.login-location-icon i {
  color: var(--primary) !important;
}

.login-info-icon {
  background: linear-gradient(145deg, #e0f2fe, #bae6fd) !important;
}

.login-info-icon i {
  color: var(--blue) !important;
}

.login-location-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #f8f7fc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 10px;
  margin-bottom: 28px;
}

.login-location-feature {
  text-align: center;
}

.login-location-feature-icon {
  width: 42px;
  height: 42px;
  background: #efe7ff;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 16px;
}

.login-location-feature h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.login-location-feature p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
}

.login-location-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.login-location-actions .login-error-btn-outline {
  flex: 1;
}

.login-location-actions .login-submit {
  flex: 2;
}

.login-error-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.login-error-btn-outline:hover {
  border-color: var(--line-hover);
  background: #f8f7fc;
}

.login-error-btn-outline i {
  font-size: 13px;
}

.login-location-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.login-location-footer i {
  font-size: 11px;
}

.modal-form-design .login-error-divider {
  margin-top: 24px;
}

.select2-container--default .select2-selection--single {
  height: 42px;
  color: var(--text);
  background-color: var(--white);
  background-clip: padding-box;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px 36px 5px 14px;
  display: flex;
  align-items: center;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: normal;
  padding-left: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 10px;
  color: var(--muted);
  display: none;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(114, 27, 255, 0.12);
  outline: 0;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 38px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:hover {
  border-color: var(--line-hover);
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.select2-dropdown {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.select2-results__option {
  padding: 10px 14px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.select2-results__option--highlighted {
  background-color: var(--primary) !important;
  color: var(--white) !important;
}

/* ===== Select2 Multiple ===== */
.select2-container--default .select2-selection--multiple {
  min-height: 42px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px 14px;
  background-color: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
  display: flex;
  flex-wrap: wrap;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: #efe7ff;
  border: 1px solid var(--primary);
  border-radius: 6px;
  padding: 2px 8px;
  margin: 3px 4px 3px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 26px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  margin-right: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: var(--red);
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(114, 27, 255, 0.12);
  outline: 0;
}

.select2-container--default .select2-selection--multiple .select2-search--inline {
  display: flex;
  flex: 1;
  min-width: 100px;
}

.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
  height: 30px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  min-width: 80px;
  margin: 0px;
  padding: 5px 0px;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
  display: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__arrow {
  display: none;
}

/* ===== Status Radio Group ===== */

.status-radio-group {
  display: flex;
  gap: 12px;
}

.status-radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  user-select: none;
  transition: all .2s ease;
  min-width: 130px;
  width: fit-content;
  width: max-content;
}

.status-radio-item:hover {
  background: #f4f6fc;
  border-color: var(--line-hover);
}

.status-radio-item input[type="radio"] {
  display: none;
}

.status-radio-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line);
  position: relative;
  transition: all .2s ease;
  flex-shrink: 0;
}

.status-radio-circle.green {
  border-color: #b0b9d3;
}

.status-radio-circle.red {
  border-color: #b0b9d3;
}

.status-radio-item.active .status-radio-circle.green {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(53, 199, 108, .15);
}

.status-radio-item.active .status-radio-circle.red {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 23, 77, .15);
}

.status-radio-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.status-radio-item.active {
  border-color: var(--primary);
  background: #efe7ff;
}

.status-radio-item.active .status-radio-label {
  color: var(--primary);
}

/* ===== App Modal (Form Modals) ===== */
.app-modal {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(30, 42, 79, .18);
  max-width: 480px;
  margin: 0 auto;
}

.app-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line);
}

.app-modal-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-modal-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, #efe7ff, #ddd0ff);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.app-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
}

.app-modal-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}

.app-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f4f5f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  transition: all .2s ease;
}

.app-modal-close:hover {
  background: #e8e9ee;
  color: var(--text);
}

.app-modal-body {
  padding: 24px 28px;
}

.app-modal-body .form-field {
  margin-bottom: 0;
}

.app-modal-error {
  font-size: 13px;
  color: var(--red);
  margin-top: 12px;
  font-weight: 500;
}

.app-modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px 28px 24px;
  border-top: 1px solid var(--line);
}

.app-modal-footer .btn-outline {
  flex: 1;
}

.app-modal-footer .btn-primary,
.app-modal-footer .login-submit {
  flex: 2;
}

.app-modal .table-wrap {
  overflow-x: auto;
  /* margin: -6px;
  padding: 6px; */
  border: 1px solid var(--line);
  border-radius: 12px;
}

.app-modal .table-wrap table {
  min-width: unset;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.btn-outline:hover {
  border-color: var(--line-hover);
  background: #f8f7fc;
}

.btn-outline i {
  font-size: 13px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-primary:hover {
  background: var(--primary2);
  color: var(--white);
}

.btn-primary i {
  font-size: 13px;
}

/* ===== Responsibility Rows ===== */
.responsibility-row {
  margin-bottom: 10px;
}

.responsibility-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.responsibility-input-group .form-input {
  flex: 1;
}

.responsibility-input-group select.form-input {
  padding-right: 36px;
}

.btn-add-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s ease;
  flex-shrink: 0;
}

.btn-add-row:hover {
  background: var(--primary2);
  transform: scale(1.05);
}

.btn-remove-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--white);
  color: var(--red);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s ease;
  flex-shrink: 0;
}

.btn-remove-row:hover {
  background: #fff5f5;
  border-color: var(--red);
}

.btn-remove-row i,
.btn-add-row i {
  font-size: 14px;
}

/* ===== Permission Category ===== */
.permission-list-header {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
}

.permission-category {
  margin-bottom: 16px;
}

.permission-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f8f9fc;
  border: 1px solid var(--line);
  border-radius: 10px 10px 0px 0px;
  cursor: pointer;
  transition: all .2s ease;
}

.permission-category-header:hover {
  background: #f4f6fc;
}

.permission-category-header input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.permission-category-header label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  cursor: pointer;
}

.permission-items {
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

.permission-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.permission-item:last-child {
  border-bottom: none;
}

.permission-item-name {
  width: 200px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.permission-item-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.permission-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
}

.permission-checkbox input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.permission-checkbox label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  cursor: pointer;
}




/* ===== Responsive ===== */

@media (max-width: 1750px) and (min-width: 1501px) {
  .mini-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .progress-pair {
    grid-template-columns: auto;
    gap: 15px;
  }

  .overview-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1500px) {
  .main {
    padding: 24px 26px;
  }

  .stat-card {
    padding: 18px 20px;
    gap: 22px;
  }

  .stat-icon {
    width: 60px;
    height: 60px;
    font-size: 26px;
    border-radius: 16px;
  }

  .stat-card h3 {
    font-size: 13px;
  }

  .stat-card strong {
    font-size: 28px;
  }

  .stat-card p {
    font-size: 13px;
  }

  .attendance {
    grid-column: span 2;
  }

  .project-stat .custom-col,
  .project-metric .custom-col,
  .birthday-blocks .custom-col,
  .service-dashboard-stat .custom-col {
    width: 50%;
  }

  .project-content .custom-col {
    width: 100%;
  }

  .project-view .custom-col {
    width: 100%;
  }
}

@media (max-width: 1450px) and (min-width: 1200px) {
  .form-grid .custom-col {
    width: 100%;
  }

  .goal-dashboard-content .custom-col {
    width: 50%;
  }

  .goal-dashboard-content .custom-col:first-child {
    width: 100%;
  }
}

@media (max-width: 1199px) {
  .login-left {
    flex: 0 0 40%;
    max-width: 40%;
    padding: 36px 40px;
  }

  .login-right {
    padding: 36px 48px;
  }
}

@media (max-width: 1100px) {
  body.sidebar-collapsed .submenu {
    position: static;
    min-width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 6px;
  }

  body.sidebar-collapsed .submenu.popup-show {
    display: none;
  }

  body.sidebar-collapsed .submenu-toggle .label,
  body.sidebar-collapsed .submenu-toggle .arrow {
    max-width: 180px;
    opacity: 1;
    pointer-events: auto;
  }

  body.sidebar-collapsed .has-submenu.open .submenu {
    display: block;
  }

  .sidebar {
    will-change: width, min-width, transform;
    position: fixed;
    transform: translateX(-105%);
    height: 100vh;
  }

  body.menu-open .sidebar {
    transform: translateX(0);
  }

  body.menu-open .overlay {
    opacity: 1;
    visibility: visible;
  }

  body.sidebar-collapsed .sidebar {
    width: 255px;
    min-width: 255px;
  }

  body.sidebar-collapsed .logo {
    margin-bottom: 34px;
  }

  body.sidebar-collapsed .logo-img {
    max-width: 200px;
  }

  body.sidebar-collapsed .logo-mark {
    font-size: 54px;
  }

  body.sidebar-collapsed .menu a {
    justify-content: flex-start;
    padding: 0 18px;
    gap: 16px;
  }

  body.sidebar-collapsed .menu a>span:not(.icon) {
    max-width: 180px;
    opacity: 1;
  }

  body.sidebar-collapsed .side-profile>div:not(.avatar-ns) {
    max-width: 160px;
    opacity: 1;
  }

  body.sidebar-collapsed .side-profile .chev {
    max-width: 20px;
    opacity: 1;
  }

  .topbar {
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .search {
    flex: 1;
    min-width: 250px;
  }

  .top-icon {
    width: 46px;
    height: 46px;
    font-size: 18px;
    border-radius: 14px;
  }

  .avatar {
    width: 46px;
    height: 46px;
  }

  .pending,
  .attendance {
    grid-column: auto;
  }
}

@media (max-width: 991px) {
  .login-split {
    flex-direction: column;
  }

  .login-left {
    flex: none;
    max-width: 100%;
    padding-bottom: 0px;
    background: #fff;
  }

  .login-right {
    flex: none;
    max-width: 100%;
    padding: 32px 32px 100px;
  }

  .login-footer {
    position: relative;
  }

  .login-left-content,
  .login-illustration {
    display: none;
  }

  .login-brand {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .tab {
    min-width: 120px;
    white-space: nowrap;
  }

  .company-profile-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .company-actions {
    justify-content: flex-end;
  }

  .doc-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .doc-info {
    gap: 16px;
  }

  .doc-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .btn-preview,
  .btn-upload {
    width: 100%;
    justify-content: center;
  }

  .dots {
    display: none;
  }

  .goal-panel {
    min-height: auto;
  }

  .goal-list-scroll {
    max-height: 350px;
  }

  .overview-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .overview-table {
    overflow-x: auto;
  }

  .overview-table table {
    min-width: 400px;
  }

  .login-left {
    padding: 24px 24px 120px;
  }

  .login-left h2 {
    font-size: 28px;
  }

  .login-right {
    padding: 24px 24px 80px;
  }

  .login-form-wrapper {
    padding: 28px 24px;
  }

  .login-form-header h2 {
    font-size: 22px;
  }

  .login-footer {
    padding: 16px 24px;
  }

  .login-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .page-actions {
    width: 100%;
  }

  .btn {
    flex: 1;
    justify-content: center;
  }

  .filters {
    flex-wrap: wrap;
  }

  .datatable-search {
    width: 100%;
  }

  .select {
    flex: 1;
  }

  .main {
    padding: 18px 12px;
  }

  .title-wrap {
    gap: 12px;
  }

  h1 {
    font-size: 23px;
  }

  .subtitle {
    font-size: 13px;
  }

  .mini-grid,
  .progress-pair {
    grid-template-columns: 1fr;
  }

  .stat-card {
    justify-content: flex-start;
    gap: 18px;
    min-height: 105px;
  }

  .metric-card {
    padding-left: 82px;
    padding-right: 18px;
  }

  .metric-card::before {
    left: 24px;
  }

  .search,
  .date-pill {
    width: 100%;
  }

  .header-actions {
    gap: 10px;
  }

  .top-icon {
    width: 42px;
    height: 42px;
    font-size: 16px;
    border-radius: 12px;
  }

  .avatar {
    width: 42px;
    height: 42px;
  }

  .activity-row {
    grid-template-columns: 22px 42px 1fr;
  }

  .activity-row small {
    grid-column: 3;
  }
}

/* ===== Chat / Messaging Section ===== */

.chat-body {
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid var(--line);
  min-height: 240px;
  height: calc(100vh - 680px);
}

.chat-msg {
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 70%;
}

.chat-msg.sent {
  background: linear-gradient(135deg, #4517d7, #8b22ff);
  color: var(--white);
}

.chat-msg.received {
  background: var(--white);
  border: 1px solid var(--line);
}

.chat-msg-text {
  font-size: 13px;
  font-weight: 600;
}

.chat-msg.sent .chat-msg-text {
  color: var(--white);
}

.chat-msg.received .chat-msg-text {
  color: var(--text);
}

.chat-msg-time {
  font-size: 11px;
  margin-top: 4px;
}

.chat-msg.sent .chat-msg-time {
  opacity: 0.75;
}

.chat-msg.received .chat-msg-time {
  color: var(--muted);
}

.chat-input-area {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
  margin-top: 12px;
}

.chat-input {
  flex: 1;
}

@media (max-height: 900px) and (min-height: 788px) {
  .login-illustration {
    bottom: -10%;
  }
}

@media (max-height: 787px) {
  .login-illustration {
    display: none;
  }
}