/*
 * Evolution HR, v2 look (from hr-redesign-v2).
 * Screen only and scoped to body.theme-v2: it restyles the existing markup without renaming
 * any class or id the pages' scripts use, and never touches printed output.
 * Brand colours follow the Design settings page (--clr-primary on <body>).
 */

/* ---------- Tokens ---------- */
.theme-v2 {
  --o: var(--clr-primary, #f47b20);
  --o-hv: var(--clr-primary-hv, #ff9d57);
  --o2: color-mix(in srgb, var(--o) 12%, transparent);
  --ink: #161a2b;
  --mut: #7b8197;
  --bd: #e8eaf2;
  --bg: #f2f3f8;
  --card: #fff;
  --row: #f6f7fb;
  --g: #12b76a;
  --r: #f04438;
  --y: #f5a524;
  --b: #5b6cf0;
  --sh: 0 10px 34px rgba(24, 30, 70, .06);
  --sh-lg: 0 20px 50px rgba(20, 25, 60, .16);
  --rad: 20px;
  --nav-w: 272px;
  background: var(--bg);
  color: var(--ink);
}

.theme-v2,
.theme-v2 :where(*:not(.material-icons):not(.material-icons-outlined):not(.fa):not([class^="fa-"]):not(svg):not(svg *)) {
  font-family: 'Cairo', Tahoma, sans-serif;
}

/* ---------- Shell ---------- */
.theme-v2 .admin_area {
  background: var(--bg);
  min-height: 100vh;
}

.theme-v2 .admin_area .container_content {
  min-height: auto;
  overflow: visible;
}

.theme-v2 .admin_area .container_content .content {
  background: transparent;
  height: auto;
  min-height: calc(100vh - 80px);
  overflow: visible !important;
  border-radius: 0;
  padding: 4px 28px 40px;
  margin: 0;
}

.theme-v2 .admin_area .content > h1,
.theme-v2 .admin_area .content h1.welcome_back {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
}

.theme-v2 .breadcrumb {
  color: var(--mut);
  font-size: 13px;
  font-weight: 600;
}

.theme-v2 .breadcrumb a {
  color: var(--mut);
}

.theme-v2 .breadcrumb a:last-child {
  color: var(--ink);
}

/* ---------- Header ---------- */
.theme-v2 .admin_area .dashboard_header {
  background: transparent;
  padding: 16px 28px !important;
  position: relative;
  z-index: 50;
}

.theme-v2 .admin_area .dashboard_header .sec_left {
  gap: 10px !important;
}

.theme-v2 .admin_area .dashboard_header .sec_left .btn_menu,
.theme-v2 .admin_area .dashboard_header .dropdown-toggle,
.theme-v2 .admin_area .dashboard_header .icon-Notification {
  width: 44px;
  height: 44px;
  padding: 0 !important;
  border-radius: 14px !important;
  background: var(--card) !important;
  color: var(--ink) !important;
  box-shadow: var(--sh);
  border: 0 !important;
  display: grid;
  place-items: center;
  transition: transform .2s, color .2s;
}

.theme-v2 .admin_area .dashboard_header .dropdown-toggle {
  width: auto;
  padding: 0 14px !important;
  display: flex;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
}

.theme-v2 .admin_area .dashboard_header .dropdown-toggle .material-icons {
  font-size: 20px;
}

.theme-v2 .admin_area .dashboard_header :is(.btn_menu, .dropdown-toggle, .icon-Notification):hover {
  transform: translateY(-2px);
  color: var(--o) !important;
}

.theme-v2 .admin_area .dashboard_header .btn_menu svg {
  width: 22px;
  height: 22px;
}

.theme-v2 .admin_area .dashboard_header .icon-Notification svg path {
  fill: currentColor;
}

.theme-v2 .admin_area .dashboard_header .sec_left a.logo {
  background: transparent;
  padding: 0 !important;
}

.theme-v2 .admin_area .dashboard_header .sec_left a.logo img {
  height: 40px;
}

.theme-v2 .admin_area .dashboard_header .sec_right .avatar > a {
  width: 44px;
  height: 44px;
  box-shadow: var(--sh);
  border: 2px solid var(--card);
}

.theme-v2 .notification_dropdown,
.theme-v2 .avatar_menu,
.theme-v2 .dropdown-menu-lang {
  background: var(--card) !important;
  border: 1px solid var(--bd);
  border-radius: 16px !important;
  box-shadow: var(--sh-lg) !important;
  overflow: hidden;
}

.theme-v2 .dropdown-menu-lang a {
  color: var(--ink);
  font-weight: 600;
}

.theme-v2 .notification_dropdown .notification_header h3 {
  font-size: 15px;
  font-weight: 800;
}

.theme-v2 .notification_dropdown .notification {
  border-radius: 12px;
  margin: 4px 6px;
}

.theme-v2 .notification_dropdown .notification.Not {
  background: var(--o2);
}

.theme-v2 .notification_dropdown .notification_footer a {
  color: var(--o);
  font-weight: 700;
}

.theme-v2 .avatar_menu .profile > a {
  background: var(--o) !important;
  border-radius: 12px !important;
}

/* ---------- Sidebar ---------- */
.theme-v2 .admin_area .container_content .navigation {
  background: var(--card) !important;
  width: var(--nav-w);
  border-inline-end: 1px solid var(--bd);
  box-shadow: var(--sh-lg);
  display: flex;
  flex-direction: column;
}

.theme-v2 .navigation .navigation-header {
  background: transparent !important;
  padding: 18px 16px 10px;
}

.theme-v2 .navigation .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
  font-size: 16px;
}

.theme-v2 .navigation .brand img {
  height: 40px;
  max-width: 150px;
  object-fit: contain;
}

.theme-v2 .navigation .navigation-header .btn_close {
  color: var(--mut) !important;
  background: var(--row);
  border-radius: 12px;
  width: 38px;
  height: 38px;
  padding: 0 !important;
}

.theme-v2 .admin_area .container_content .navigation nav > ul {
  height: auto;
  flex: 1;
  max-height: calc(100vh - 80px);
  padding: 4px 12px 24px;
}

.theme-v2 .admin_area .container_content .navigation nav > ul > li {
  margin-block: 2px;
}

.theme-v2 .admin_area .container_content .navigation nav > ul > li > a {
  color: var(--mut);
  font-weight: 600;
  font-size: 14px;
  padding: 7px 10px;
  border-radius: 14px;
  gap: 12px !important;
  transition: background .2s, color .2s;
}

.theme-v2 .admin_area .container_content .navigation nav ul li a span,
.theme-v2 .admin_area .container_content .navigation nav ul li a .txt-white {
  color: inherit !important;
  font-size: 14px;
}

.theme-v2 .admin_area .container_content .navigation nav > ul > li > a > i.material-icons:first-child,
.theme-v2 .admin_area .container_content .navigation nav > ul > li > a > .icon > i.material-icons {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--row);
  font-size: 20px;
  flex: none;
  transition: background .2s, color .2s;
}

.theme-v2 .admin_area .container_content .navigation nav > ul > li > a > .icon {
  gap: 12px !important;
}

.theme-v2 .admin_area .container_content .navigation nav ul li a i.add {
  font-size: 18px;
  margin-inline-start: auto;
  opacity: .55;
  transform: none;
}

.theme-v2 .admin_area .container_content .navigation nav ul li a i.add.closing {
  transform: rotate(180deg);
}

.theme-v2 .admin_area .container_content .navigation nav ul li a:is(.active, :hover) {
  background: var(--row);
  color: var(--ink);
}

.theme-v2 .admin_area .container_content .navigation nav > ul > li:is(.open, :has(a.active)) > a,
.theme-v2 .admin_area .container_content .navigation nav > ul > li > a.active {
  background: var(--o2);
  color: var(--o);
}

.theme-v2 .admin_area .container_content .navigation nav > ul > li:is(.open, :has(a.active)) > a > i.material-icons:first-child,
.theme-v2 .admin_area .container_content .navigation nav > ul > li:is(.open, :has(a.active)) > a > .icon > i.material-icons,
.theme-v2 .admin_area .container_content .navigation nav > ul > li > a.active > i.material-icons:first-child {
  background: var(--o);
  color: #fff;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--o) 35%, transparent);
}

.theme-v2 .admin_area .container_content .navigation nav ul li a.active::before {
  display: none;
}

.theme-v2 .admin_area .container_content .navigation nav ul li ul li a {
  color: var(--mut);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 10px;
  padding-inline-start: 58px !important;
  padding-inline-end: 10px !important;
}

.theme-v2 .admin_area .container_content .navigation nav ul li ul li a:is(.active, :hover) {
  background: transparent;
  color: var(--o);
}

.theme-v2 .admin_area .container_content .navigation nav ul li ul li a.active {
  font-weight: 800;
}

/* Desktop: the sidebar stays open beside the page. */
@media screen and (min-width: 1100px) {
  .theme-v2 .admin_area .container_content .navigation {
    inset-inline-start: 0 !important;
    inset-inline-end: auto !important;
    box-shadow: none;
  }

  .theme-v2 .admin_area {
    padding-inline-start: var(--nav-w);
  }

  .theme-v2 .admin_area .dashboard_header .btn_menu,
  .theme-v2 .admin_area .dashboard_header a.logo,
  .theme-v2 .navigation .navigation-header .btn_close {
    display: none !important;
  }
}

/* ---------- Cards and panels ---------- */
.theme-v2 .admin_area :is(.bg-white.br5, .bg-white.br10, .bg-white.pd-15, .sec-content) {
  background: var(--card) !important;
  border: 1px solid transparent !important;
  border-radius: var(--rad) !important;
  box-shadow: var(--sh);
}

.theme-v2 .admin_area .sec-content {
  box-shadow: var(--sh-lg);
  padding: 22px !important;
}

.theme-v2 .admin_area .sec-content .sec_header {
  border-bottom: 1px solid var(--bd);
  padding: 0 0 12px;
  margin-bottom: 12px;
}

.theme-v2 .admin_area .sec-content .sec_header h2 {
  font-size: 20px;
  font-weight: 800;
}

.theme-v2 .admin_area .sec-content .sec_header .btn-close {
  background: var(--row);
  border-radius: 12px;
  color: var(--mut);
  font-size: 16px;
}

.theme-v2 .push_bg {
  background: rgba(16, 20, 40, .45) !important;
  backdrop-filter: blur(2px);
}

/* Dashboard tiles */
.theme-v2 .admin_area .container_content .content .boxs {
  gap: 18px !important;
}

.theme-v2 .admin_area .container_content .content .boxs .box {
  padding-bottom: 44px;
  transition: transform .25s, box-shadow .25s;
}

.theme-v2 .admin_area .container_content .content .boxs .box:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(24, 30, 70, .12);
}

.theme-v2 .admin_area .container_content .content .boxs .box .body {
  padding: 20px !important;
  gap: 14px !important;
}

.theme-v2 .admin_area .container_content .content .boxs .box .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--o2) !important;
  color: var(--o);
}

.theme-v2 .admin_area .container_content .content .boxs .box .icon i {
  font-size: 26px;
}

.theme-v2 .admin_area .container_content .content .boxs .box .icon:is(.icon2, .icon5, .icon12) {
  background: color-mix(in srgb, var(--b) 13%, transparent) !important;
  color: var(--b);
}

.theme-v2 .admin_area .container_content .content .boxs .box .icon:is(.icon3, .icon4, .icon7, .icon10, .icon11) {
  background: color-mix(in srgb, var(--g) 14%, transparent) !important;
  color: var(--g);
}

.theme-v2 .admin_area .container_content .content .boxs .box .icon:is(.icon1, .icon8, .icon9) {
  background: color-mix(in srgb, var(--r) 12%, transparent) !important;
  color: var(--r);
}

.theme-v2 .admin_area .container_content .content .boxs .box .icon.icon6 {
  background: color-mix(in srgb, var(--y) 16%, transparent) !important;
  color: #c27c00;
}

.theme-v2 .admin_area .container_content .content .boxs .box .txt h2 {
  font-size: 13px;
  font-weight: 700;
  color: var(--mut);
}

.theme-v2 .admin_area .container_content .content .boxs .box .txt .count {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.theme-v2 .admin_area .container_content .content .boxs .box .footer {
  border-top: 1px solid var(--bd);
  color: var(--o);
  font-weight: 700;
  padding: 10px 20px !important;
}

/* ---------- Forms ---------- */
.theme-v2 .admin_area :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]), select, textarea) {
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--bd);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}

.theme-v2 .admin_area :is(input, select, textarea):focus {
  outline: 0;
  border-color: var(--o);
  box-shadow: 0 0 0 4px var(--o2);
}

.theme-v2 .admin_area label {
  color: var(--mut);
  font-weight: 600;
  font-size: 13px;
}

.theme-v2 input[type="checkbox"]::before {
  border: 2px solid var(--bd);
  border-radius: 7px;
  box-shadow: none;
}

.theme-v2 input[type="checkbox"]:checked::before {
  background: var(--o);
  border-color: var(--o);
}

.theme-v2 .admin_area .filter .input button {
  background: var(--o);
  border-radius: 12px;
}

/* ---------- Buttons ---------- */
.theme-v2 .admin_area .btn {
  border-radius: 12px !important;
  font-weight: 700;
  font-size: 13px;
  transition: transform .18s, filter .18s, box-shadow .18s;
}

.theme-v2 .admin_area .btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.theme-v2 .admin_area .btn:active {
  transform: scale(.97);
}

.theme-v2 .green,
.theme-v2 .green-all {
  background-color: var(--g);
}

.theme-v2 .red,
.theme-v2 .red-all {
  background-color: var(--r);
}

.theme-v2 .yellow,
.theme-v2 .yellow-all {
  background-color: var(--y);
}

/* ---------- Tables (every column kept) ---------- */
.theme-v2 .admin_area table thead,
.theme-v2 #body-secWorkTime table thead {
  background: var(--row);
}

.theme-v2 .admin_area table th,
.theme-v2 #body-secWorkTime table th {
  color: var(--mut);
  font-weight: 700;
  font-size: 12.5px;
}

.theme-v2 .admin_area table :is(td, th),
.theme-v2 #body-secWorkTime table :is(td, th) {
  border-bottom: 1px solid var(--bd);
  padding: 12px 10px;
}

.theme-v2 .admin_area table tbody tr:nth-last-of-type(odd),
.theme-v2 #body-secWorkTime table tbody tr:nth-last-of-type(odd) {
  background: transparent;
}

.theme-v2 .admin_area table tbody tr:hover,
.theme-v2 #body-secWorkTime table tbody tr:hover {
  background: var(--row);
}

/* ---------- Phones ---------- */
@media screen and (max-width: 720px) {
  .theme-v2 .admin_area .dashboard_header {
    padding: 12px 16px !important;
  }

  .theme-v2 .admin_area .container_content .content {
    padding: 4px 16px 32px;
  }

  .theme-v2 .admin_area .content h1.welcome_back {
    font-size: 20px;
  }
}

/* Phones and tablets: dim the page behind the open menu. */
@media screen and (max-width: 1099px) {
  .theme-v2 .admin_area .container_content .navigation.open {
    box-shadow: 0 0 0 100vmax rgba(16, 20, 40, .45);
  }
}

/* ---------- Multiple select as a checkbox dropdown (multi-select.js) ---------- */
.theme-v2 .ms-native {
  display: none !important;
}

.theme-v2 .ms {
  position: relative;
  min-width: 220px;
}

.theme-v2 .admin_area .ms button.ms-b {
  margin: 0;
  height: auto;
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--bd);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  text-align: start;
}

.theme-v2 .ms-b .material-icons {
  font-size: 20px;
  color: var(--mut);
  transition: transform .2s;
}

.theme-v2 .ms.open .ms-b {
  border-color: var(--o);
  box-shadow: 0 0 0 4px var(--o2);
}

.theme-v2 .ms.open .ms-b .material-icons {
  transform: rotate(180deg);
}

.theme-v2 .ms-l {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline: 0;
  z-index: 60;
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 14px;
  box-shadow: var(--sh-lg);
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  display: none;
}

.theme-v2 .ms.open .ms-l {
  display: block;
}

.theme-v2 .admin_area .ms-o {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 13.5px;
  cursor: pointer;
}

.theme-v2 .ms-o:hover {
  background: var(--row);
}

.theme-v2 .admin_area .filter .input label.ms-o {
  display: flex;
  margin: 0;
  font-size: 13.5px;
  color: var(--ink);
}

.theme-v2 .ms-o input[type="checkbox"] {
  margin: 0 0 0 20px;
}

[dir="ltr"].theme-v2 .ms-o input[type="checkbox"] {
  margin: 0 20px 0 0;
}

/* ---------- List pages: filters and actions on one line ---------- */
.theme-v2 .admin_area .filter {
  justify-content: flex-start !important;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px !important;
  margin-bottom: 8px;
}

.theme-v2 .admin_area .filter .input:not(:has(button)) {
  width: auto;
  flex: 1 1 220px;
  max-width: 360px;
}

.theme-v2 .admin_area .filter .input label,
.theme-v2 .admin_area .table .input label {
  font-size: 13px;
  display: block;
  margin-bottom: 6px;
}

.theme-v2 .admin_area .filter .input :is(input, select) {
  width: 100%;
}

.theme-v2 .admin_area form:has(> .actions) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.theme-v2 .admin_area form:has(> .actions) > * {
  flex: 1 1 100%;
}

.theme-v2 .admin_area form:has(> .actions) > .actions {
  flex: 0 0 auto;
  margin: 0 !important;
}

.theme-v2 .admin_area form:has(> .actions) > .actions:empty {
  display: none !important;
}

.theme-v2 .admin_area .sec_btn_view {
  align-items: flex-end;
}

.theme-v2 .admin_area .view_count {
  text-align: end;
}

.theme-v2 .admin_area .view_count h4 {
  color: var(--mut);
  font-size: 13px;
  font-weight: 700;
}

.theme-v2 .admin_area .view_count span {
  font-size: 24px;
  font-weight: 800;
}

.theme-v2 .admin_area .badge {
  border-radius: 999px !important;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px !important;
}

.theme-v2 .admin_area .badge.green {
  background: color-mix(in srgb, var(--g) 14%, transparent);
  color: #0b9a58 !important;
}

.theme-v2 .admin_area .badge.red {
  background: color-mix(in srgb, var(--r) 13%, transparent);
  color: #d92d20 !important;
}

.theme-v2 .admin_area .badge.yellow {
  background: color-mix(in srgb, var(--y) 18%, transparent);
  color: #a26200 !important;
}

.theme-v2 .admin_area td a.bg-primary {
  background: var(--o2) !important;
  color: var(--o) !important;
  border-radius: 10px !important;
  font-weight: 700;
  font-size: 13px;
}

.theme-v2 .admin_area td a.bg-primary:hover {
  background: var(--o) !important;
  color: #fff !important;
}

.theme-v2 .ms-l {
  min-width: 240px;
  scrollbar-width: thin;
  scrollbar-color: var(--bd) transparent;
}

.theme-v2 .ms-o span {
  flex: 1;
  white-space: nowrap;
}

/* ---------- Employee pages (home, work time, change password) ---------- */
.theme-v2 .home > header {
  background: transparent !important;
  padding: 16px 28px !important;
}

.theme-v2 .home > header :is(.icon-Home, .icon-Notification, .dropdown-toggle) {
  width: 44px;
  height: 44px;
  padding: 0 !important;
  border-radius: 14px !important;
  background: var(--card) !important;
  color: var(--ink) !important;
  box-shadow: var(--sh);
  border: 0 !important;
  display: grid;
  place-items: center;
  transition: transform .2s, color .2s;
}

.theme-v2 .home > header .dropdown-toggle {
  width: auto;
  padding: 0 14px !important;
  display: flex;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
}

.theme-v2 .home > header .icon-Home {
  background: var(--o) !important;
  color: #fff !important;
}

.theme-v2 .home > header :is(.icon-Home, .icon-Notification, .dropdown-toggle):hover {
  transform: translateY(-2px);
}

.theme-v2 .home > header .icon-Notification svg path {
  fill: currentColor;
}

.theme-v2 .home > header .logo img {
  height: 44px;
}

.theme-v2 .home > header .profile_dropdown {
  background: var(--card) !important;
  border: 1px solid var(--bd);
  border-radius: 16px !important;
  box-shadow: var(--sh-lg) !important;
}

.theme-v2 .home > .container {
  padding-inline: 28px !important;
  max-width: 1400px;
}

.theme-v2 .home > .container > h2.title {
  font-size: 26px;
  font-weight: 800;
  margin: 4px 0 4px;
}

.theme-v2 .home > .container > .path,
.theme-v2 .home > .container > .path a {
  color: var(--mut);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.theme-v2 .home-content {
  gap: 18px !important;
  align-items: flex-start;
}

.theme-v2 .home-content .timeAndDate {
  background: linear-gradient(135deg, var(--o), var(--o-hv)) !important;
  border-radius: var(--rad);
  padding: 22px !important;
  text-align: center;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--o) 30%, transparent);
  margin-bottom: 18px !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.theme-v2 .home-content .timeAndDate .clock {
  white-space: nowrap;
  font-size: 38px;
  font-weight: 800;
  direction: ltr;
  letter-spacing: 1px;
}

.theme-v2 .home-content .timeAndDate .date {
  font-weight: 600;
  opacity: .9;
}

.theme-v2 .home-content :is(.requests, .right > .bg-white, .right > .moon) {
  background: var(--card) !important;
  border-radius: var(--rad) !important;
  box-shadow: var(--sh);
  border: 0 !important;
  overflow: hidden;
}

.theme-v2 .home-content .right > :is(.bg-white, .moon) {
  padding: 18px 20px !important;
  margin-bottom: 14px !important;
  font-weight: 600;
}

.theme-v2 .home-content .requests {
  padding: 18px;
}

.theme-v2 .btns-change-request {
  background: var(--row);
  border-radius: 999px;
  padding: 5px;
  overflow: hidden;
  margin-bottom: 8px;
}

.theme-v2 .btns-change-request::before {
  border-radius: 999px;
}

.theme-v2 .btns-change-request a {
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
}

.theme-v2 .home-content .requests .box h2,
.theme-v2 .home-content .requests .box h3 {
  font-size: 18px;
  font-weight: 800;
}

.theme-v2 .home :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]), select, textarea) {
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--bd);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 14px;
}

.theme-v2 .home :is(input, select, textarea):focus {
  outline: 0;
  border-color: var(--o);
  box-shadow: 0 0 0 4px var(--o2);
}

.theme-v2 .home label {
  color: var(--mut);
  font-weight: 600;
  font-size: 13px;
}

.theme-v2 .home .btn.btn-primary,
.theme-v2 .home button.btn-primary {
  background: var(--o);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 700;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--o) 30%, transparent);
}

/* Posts are not used (agreed 31 Oct): hidden, their data kept. */
.theme-v2 .home-content #write-post,
.theme-v2 .home-content .post {
  display: none !important;
}

@media screen and (max-width: 720px) {
  .theme-v2 .home > header {
    padding: 12px 16px !important;
  }

  .theme-v2 .home > header :is(ul, .sec__left) {
    gap: 8px !important;
  }

  .theme-v2 .home > header .logo {
    display: none;
  }

  .theme-v2 .home > header .profile > a img {
    width: 44px;
    height: 44px;
    object-fit: cover;
  }

  .theme-v2 .home > .container {
    padding-inline: 16px !important;
  }

  .theme-v2 .home > .container > h2.title {
    font-size: 20px;
  }

  .theme-v2 .home-content .requests .input.d-flex {
    flex-wrap: wrap;
  }

  .theme-v2 .home-content .requests .input.d-flex > * {
    flex: 1 1 100%;
  }

  .theme-v2 .home-content .requests :is(input, select) {
    width: 100%;
    max-width: 100%;
  }
}

/* ---------- Employee profile ---------- */
.theme-v2 .content-profile .header_profile {
  border-radius: var(--rad);
  overflow: hidden;
  box-shadow: var(--sh);
}

.theme-v2 .content-profile .header_profile .cover,
.theme-v2 .content-profile .header_profile .cover .imgCover {
  border-radius: 0;
}

.theme-v2 .content-profile .header_profile .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 20, 40, .75), rgba(16, 20, 40, 0) 65%);
  pointer-events: none;
}

.theme-v2 .content-profile .header_profile .profile {
  z-index: 2;
  bottom: 18px;
  left: 18px;
}

.theme-v2 .content-profile .header_profile .edit {
  z-index: 2;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  border-radius: 12px;
  font-weight: 700;
  top: 14px;
  left: 14px;
}

.theme-v2 .content-profile .header_profile .profile .avatar,
.theme-v2 .content-profile .header_profile .profile .avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--card);
  object-fit: cover;
}

.theme-v2 .content-profile .header_profile .profile h3 > span {
  font-size: 22px;
  font-weight: 800;
}

.theme-v2 .content-profile .body_profile {
  gap: 18px;
}

.theme-v2 .content-profile .body_profile .boxss {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.theme-v2 .content-profile .body_profile .box {
  background: var(--card);
  border-radius: var(--rad);
  box-shadow: var(--sh);
  padding: 18px;
  margin: 0 !important;
}

.theme-v2 .content-profile .body_profile .box .title {
  border: 0;
  background: transparent !important;
  color: var(--ink) !important;
  font-weight: 800;
  font-size: 15px;
  padding: 0 0 10px !important;
  justify-content: flex-start !important;
}

.theme-v2 .content-profile .body_profile .box :is(.content_experience, .content_skills, .content_comment, .link_files, .date_interview) {
  background: var(--row) !important;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--mut);
}

.theme-v2 .content-profile .body_profile .box .link_files .item {
  border-radius: 12px !important;
  padding: 8px 12px !important;
}

.theme-v2 .content-profile .body_profile .box > a.btn,
.theme-v2 .content-profile .body_profile .box > a {
  border-radius: 12px;
}

/* ---------- Sign in, forgot / reset password ---------- */
.theme-v2 .sign {
  background: var(--bg);
  min-height: 100vh;
}

.theme-v2 .sign .left-sec {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-v2 .sign .left-sec form {
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--sh-lg);
  padding: 32px 30px !important;
  max-width: 440px;
  width: calc(100% - 32px);
  height: auto !important;
}

.theme-v2 .sign .left-sec form .logo img {
  max-height: 120px;
  width: auto;
}

.theme-v2 .sign .left-sec form .logo span {
  color: var(--mut);
  font-weight: 700;
  letter-spacing: 1px;
}

.theme-v2 .sign .left-sec form .title-sign {
  font-size: 24px;
  font-weight: 800;
}

.theme-v2 .sign .left-sec form .title-sign::before {
  display: none;
}

.theme-v2 .sign .left-sec form .input label {
  color: var(--mut);
  font-weight: 600;
  font-size: 13px;
}

.theme-v2 .sign .left-sec form .input :is(input, select, textarea) {
  background: var(--card);
  border: 1.5px solid var(--bd);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}

.theme-v2 .sign .left-sec form .input :is(input, select, textarea):focus {
  outline: 0;
  border-color: var(--o);
  box-shadow: 0 0 0 4px var(--o2);
}

.theme-v2 .sign .left-sec form .link-forgot-password {
  color: var(--o);
  font-weight: 700;
  font-size: 13px;
}

.theme-v2 .sign .left-sec form .input button {
  background: linear-gradient(135deg, var(--o), var(--o-hv)) !important;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--o) 32%, transparent);
  transition: transform .18s, box-shadow .18s;
}

.theme-v2 .sign .left-sec form .input button:hover {
  transform: translateY(-2px);
}

.theme-v2 .sign .left-sec form :is(.with-social a, .btn-jop-application a) {
  border-radius: 14px;
  border: 1.5px solid var(--bd);
  background: var(--card);
  font-weight: 700;
}

.theme-v2 .sign .right-sec {
  background:
    radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--o) 55%, transparent), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(91, 108, 240, .55), transparent 45%),
    linear-gradient(160deg, #141a3a, #0e1120);
  border-radius: 0 !important;
}

.theme-v2 .sign .right-sec svg {
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35));
}

/* ---------- Employee name box with a list to pick from (employee-picker.js) ---------- */
.theme-v2 .ep {
  position: relative;
}

.theme-v2 .ep > input {
  width: 100%;
  padding-inline-end: 34px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237b8197' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 10px center;
}

[dir="ltr"].theme-v2 .ep > input {
  background-position: right 10px center;
}

.theme-v2 .ep-l {
  position: fixed;
  z-index: 9000;
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 14px;
  box-shadow: var(--sh-lg);
  max-height: 300px;
  overflow: auto;
  padding: 6px;
  display: none;
  scrollbar-width: thin;
  scrollbar-color: var(--bd) transparent;
}

.theme-v2 .ep.open .ep-l {
  display: block;
}

.theme-v2 .ep-o {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
}

.theme-v2 .ep-o:is(:hover, .on) {
  background: var(--o2);
  color: var(--o);
}

.theme-v2 .ep-o.ep-all {
  color: var(--mut);
  font-weight: 700;
  border-bottom: 1px solid var(--bd);
  border-radius: 10px 10px 0 0;
  margin-bottom: 4px;
}

.theme-v2 .ep-none {
  padding: 12px;
  color: var(--mut);
  font-size: 13px;
  text-align: center;
}

.theme-v2 .ep {
  min-width: 240px;
}

/* Profile cover when no client cover is set: the brand gradient. */
.theme-v2 .content-profile .header_profile .cover {
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--o) 70%, transparent), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(91, 108, 240, .6), transparent 50%),
    linear-gradient(160deg, #141a3a, #0e1120);
}

.theme-v2 .admin_area input[type="color"] {
  width: 90px;
  height: 44px;
  padding: 4px;
  border: 1.5px solid var(--bd);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
}

/* Filters that nest two fields in one row (name + department). */
.theme-v2 .admin_area .filter .input.d-flex > .input {
  flex: 1 1 220px;
  min-width: 0;
}

.theme-v2 .admin_area .badge .material-icons {
  font-size: 18px;
}

.theme-v2 .admin_area .filter > .input.d-flex {
  flex: 1 1 100%;
  max-width: 760px;
}

.theme-v2 .ep {
  min-width: 0;
}

/* Textareas that carry an inline dark border. */
.theme-v2 .admin_area textarea[style*="border"] {
  border: 1.5px solid var(--bd) !important;
  border-radius: 12px;
}

@media screen and (max-width: 720px) {
  /* Toolbars (salary period + pay / print / export) wrap instead of widening the page. */
  .theme-v2 .admin_area .content :is(.d-between, .d-flex.gap10) {
    flex-wrap: wrap;
    gap: 10px;
  }

  .theme-v2 .admin_area .content .btn {
    white-space: nowrap;
  }
}

/* Clock inside the employee header (change password, work time pages). */
.theme-v2 .home > header .timeAndDate {
  background: linear-gradient(135deg, var(--o), var(--o-hv)) !important;
  color: #fff;
  border-radius: 14px;
  padding: 8px 14px !important;
  display: flex;
  align-items: center;
  gap: 10px;
  height: auto;
  box-shadow: var(--sh);
}

.theme-v2 .home > header .timeAndDate :is(.clock, .date) {
  color: #fff;
  white-space: nowrap;
  font-weight: 700;
  height: auto;
  width: auto;
}

.theme-v2 .home > header .timeAndDate .clock {
  direction: ltr;
}

@media screen and (max-width: 720px) {
  .theme-v2 .home > header .timeAndDate {
    display: none !important;
  }
}

/* ---------- Permission templates (permissions page) ---------- */
.theme-v2 .perm-templates {
  background: var(--row);
  border-radius: 16px;
  padding: 16px 18px;
  margin-top: 18px;
}

.theme-v2 .perm-templates h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 4px;
}

.theme-v2 .perm-templates .hint {
  color: var(--mut);
  font-size: 13px;
  margin: 0 0 12px;
}

.theme-v2 .perm-templates .row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.theme-v2 .perm-templates .row > .input {
  flex: 1 1 260px;
}

.theme-v2 .perm-templates .row > .input > .d-flex > :is(select, input) {
  flex: 1;
  min-width: 0;
}

.theme-v2 .perm-templates .btn {
  color: #fff;
  border: 0;
  padding: 8px 14px;
  white-space: nowrap;
  cursor: pointer;
}

.theme-v2 .perm-templates .btn.tpl-save {
  background: var(--o);
}

.theme-v2 .perm-templates .btn.tpl-delete {
  padding: 6px 10px;
}

.theme-v2 .perm-templates .tpl-result {
  margin-top: 10px;
  font-weight: 700;
  font-size: 13px;
}

.theme-v2 .perm-templates .tpl-result.success {
  color: var(--g);
}

.theme-v2 .perm-templates .tpl-result.failed {
  color: var(--r);
}

.theme-v2 .content-profile table.request-counts {
  width: 100%;
  font-size: 13px;
}

.theme-v2 .content-profile table.request-counts :is(th, td) {
  padding: 8px 10px;
  text-align: center;
}

.theme-v2 .content-profile table.request-counts td:first-child {
  text-align: start;
  font-weight: 700;
}

.theme-v2 .admin_area .report-note {
  color: var(--mut);
  font-size: 12.5px;
  margin: 4px 0 12px;
}

.theme-v2 .admin_area .report-counts .badge {
  padding: 6px 12px !important;
}

/* ---------- Leave settings ---------- */
.theme-v2 .leave-settings .grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px 24px;
}

.theme-v2 .leave-settings .checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.theme-v2 .admin_area label.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  margin: 4px 0;
}

.theme-v2 .admin_area label.check-row input[type="checkbox"] {
  margin-inline-end: 20px;
}

.theme-v2 .admin_area input.custom-days {
  width: 90px;
  padding: 6px 8px;
}

.theme-v2 .admin_area b.neg {
  color: var(--r);
}

.theme-v2 .admin_area .leave-settings label.check-row {
  display: inline-flex !important;
  flex-direction: row;
  width: auto;
}

.theme-v2 .leave-balance-line {
  background: var(--o2);
  color: var(--ink);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  margin: 6px 0 12px;
}

.theme-v2 .leave-balance-line b {
  color: var(--o);
  font-size: 16px;
}

/* ---------- Salary payments ---------- */
.theme-v2 .pay-totals {
  flex-wrap: wrap;
  margin: 4px 0 12px;
}

.theme-v2 .pay-totals .badge {
  background: var(--row);
  color: var(--ink);
  padding: 8px 14px !important;
  font-size: 13px;
}

.theme-v2 .admin_area .btn.pay-slip {
  background: var(--o);
  padding: 6px 12px;
}

.theme-v2 .pay-dialog {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(16, 20, 40, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.theme-v2 .pay-dialog.d-none {
  display: none !important;
}

.theme-v2 .pay-card {
  background: var(--card);
  border-radius: var(--rad);
  box-shadow: var(--sh-lg);
  padding: 22px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-v2 .pay-card :is(input, textarea) {
  width: 100%;
  border: 1.5px solid var(--bd);
  border-radius: 12px;
  padding: 9px 12px;
}

.theme-v2 .pay-card .btn {
  padding: 8px 16px;
  border-radius: 12px;
}

.theme-v2 .pay-card .pay-cancel {
  background: var(--row);
  color: var(--ink);
}

/* ---------- Employee documents (profile) ---------- */
.theme-v2 .documents-box .doc-upload,
.theme-v2 .documents-box .doc-delete {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.theme-v2 .documents-box .doc-upload input[type="file"] {
  max-width: 190px;
  font-size: 12px;
}

.theme-v2 .documents-box .doc-upload input[type="date"] {
  width: 140px;
  padding: 4px 6px;
}

.theme-v2 .documents-box .btn {
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.theme-v2 .documents-box .doc-soon {
  color: #a26200;
  font-weight: 700;
}

.theme-v2 .documents-box .doc-expired {
  color: var(--r);
  font-weight: 700;
}

.theme-v2 .documents-box .muted {
  color: var(--mut);
}
