* Userbox */ .userbox {
  display: inline-block;
  margin: 3px 17px 0 0;
  position: relative;
  vertical-align: middle;
}

.userbox > a {
  display: inline-block;
  text-decoration: none;
}

.userbox a:hover {
  text-decoration: none;
}

.userbox .profile-info,
.userbox .profile-picture {
  display: inline-block;
  vertical-align: middle;
  margin: 0;
}

.userbox .profile-picture img {
  width: 35px;
  color: transparent;
}

.userbox .profile-info {
  margin: -15px 75px 0 10px;
}

.userbox .name,
.userbox .role {
  display: block;
}

.userbox .name {
  color: #000011;
  font-size: 12.8px;
  font-size: 0.8rem;
  line-height: 17.6px;
  line-height: 1.1rem;
}

.userbox .role {
  color: #acacac;
  font-size: 11.2px;
  font-size: 0.7rem;
  line-height: 11.2px;
  line-height: 0.7rem;
}

.userbox .custom-caret {
  color: #000011;
  font-size: 16px;
  font-weight: bold;
}

.userbox .custom-caret:before {
  content: '\f107';
}

@media only screen and (max-width: 767px) {
  .userbox .name,
  .userbox .role {
    max-width: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Userbox - Open */
.userbox > a.show {
  position: relative;
  z-index: 993;
}

.userbox > a.show .custom-caret:before {
  content: '\f106';
}

.userbox .dropdown-menu {
  border: none;
  box-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.2);
  box-sizing: content-box;
  left: -11px !important;
  padding: 45px 10px 0;
  top: -10px !important;
  transform: none !important;
  width: 100%;
  min-width: 0;
  z-index: 992;
}

.userbox .dropdown-menu li {
  margin-bottom: 5px;
}

.userbox .dropdown-menu a {
  border-radius: 2px;
  color: #7d7d7d;
  display: block;
  line-height: 20.8px;
  line-height: 1.3rem;
  padding: 4px 10px;
  font-size: 12px;
  font-size: 0.75rem;
}

.userbox .dropdown-menu a i {
  font-size: 17.6px;
  font-size: 1.1rem;
}

.userbox .dropdown-menu a:hover {
  background: #ccc;
  color: #fff;
}

.userbox .dropdown-menu i {
  margin-right: 3px;
  vertical-align: middle;
}

/* Userbox - Mobile */
@media only screen and (max-width: 767px) {
  .userbox {
    float: left;
    margin: 16px 0 0 12px;
    position: relative;
  }

  .userbox:after {
    background: #e9e9e6;
    content: '';
    height: 63px;
    margin: 0;
    position: absolute;
    right: -21px;
    top: -18px;
    width: 1px;
  }

  .text-6 {
    font-size: 1.8em !important;
  }

  .top-5 {
    top: 5px !important;
  }
  .top-5 {
    top: 5px !important;
  }
  .text-6 {
    font-size: 1.8em !important;
  }

  .userbox .profile-picture {
    display: none;
  }

  .userbox .dropdown-menu {
    left: -5px !important;
    padding: 43px 0 0 0;
  }
}
.body-sign .card-sign {
  background: transparent;
}
.body-sign .card-sign .card-title-sign .title {
  background-color: #0088cc;
  border-radius: 5px 5px 0 0;
  color: #fff;
  display: inline-block;
  font-size: 12px;
  font-size: 0.75rem;
  padding: 13px 17px;
  vertical-align: bottom;
}
form label {
  font-weight: normal;
}
.adminTitle {
  background-color: #243f90 !important;
  letter-spacing: 1px;
}
.font-weight-bold,
b,
strong {
  font-weight: 700 !important;
}
.text-uppercase {
  text-transform: uppercase !important;
}
.font-weight-bold {
  font-weight: 700 !important;
}
.text-uppercase {
  text-transform: uppercase !important;
}

.body-sign .card-sign .card-body {
  background: #fff;
  border-top: 5px solid #ccc;
  border-radius: 5px 0 5px 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 33px 33px 15px;
}

.adminCardBody {
  border-top-color: #243f90 !important;
}
.card-body {
  background: #fdfdfd;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  border-radius: 5px;
}

.required {
  display: inline-block;
  color: #d2322d;
  font-size: 0.8em;
  font-weight: bold;
  position: relative;
  top: -0.2em;
}

.text-2 {
  font-size: 0.9em !important;
}

.opacity-8 {
  opacity: 0.8 !important;
}

.customForm.ant-form-small .ant-form-item .ant-form-item-label > label {
  font-size: 13px;
}

.customForm.ant-form-small
  .ant-form-item
  .ant-form-item-control
  .ant-form-item-control-input
  .ant-form-item-control-input-content
  > input {
  font-size: 13px !important;
}
.customForm.ant-form-small
  .ant-form-item
  .ant-form-item-control
  .ant-form-item-control-input
  .ant-form-item-control-input-content
  > span {
  font-size: 13px !important;
}

/* CSS */
.customButton {
  appearance: none;
  background-color: #fafbfc;
  border: 1px solid rgba(27, 31, 35, 0.15);
  border-radius: 6px;
  box-shadow:
    rgba(27, 31, 35, 0.04) 0 1px 0,
    rgba(255, 255, 255, 0.25) 0 1px 0 inset;
  box-sizing: border-box;
  color: #24292e;
  cursor: pointer;
  display: inline-block;
  font-family:
    -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif,
    'Apple Color Emoji', 'Segoe UI Emoji';
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  list-style: none;
  padding: 6px 16px;
  position: relative;
  transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
  word-wrap: break-word;
}

.customButton:hover {
  background-color: #f3f4f6;
  text-decoration: none;
  transition-duration: 0.1s;
}

.customButton:disabled {
  background-color: #fafbfc;
  border-color: rgba(27, 31, 35, 0.15);
  color: #959da5;
  cursor: default;
}

.customButton:active {
  background-color: #edeff2;
  box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
  transition: none 0s;
}

.customButton:focus {
  outline: 1px transparent;
}

.customButton:before {
  display: none;
}

.customButton:-webkit-details-marker {
  display: none;
}

.employee-card {
  width: 100%; /* full responsive width */
  min-height: 280px;
  margin: auto;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.employee-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.emp-name {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
  color: #1a1a1a;
}

.emp-id {
  font-size: 0.8rem;
  margin: 0;
  color: gray;
}

.emp-info {
  font-size: 0.8rem;
  margin: 0.25rem 0;
  color: #444;
}

/* Container */
.custom-tabs .ant-tabs-nav {
  margin-bottom: 0px;
  border-bottom: none; /* remove the underline */
}

/* Each tab button */
.custom-tabs .ant-tabs-tab .ant-tabs-tab-btn {
  background: #f0f0f0;
  border-radius: 8px;
  padding: 8px 16px;
  margin-right: -29px;
  transition: all 0.3s ease;
  font-weight: 400;
  color: #555;
}

/* Hover effect */
.custom-tabs .ant-tabs-tab:hover .ant-tabs-tab-btn {
  background: #e6f7ff;
  color: #1890ff;
}

/* Active tab */
.custom-tabs .ant-tabs-tab-active .ant-tabs-tab-btn {
  background: #ffffff;
  color: #1677ff !important;
  font-weight: 400;
}

/* Hide default ink bar */
.custom-tabs .ant-tabs-ink-bar {
  display: none;
}

/* Custom class for an ultra-compact button */
.btn-compact-primary.ant-btn {
  height: 24px; /* Standard small is ~24px, go lower if needed */
  padding: 0 8px; /* Reduces horizontal bulk */
  font-size: 12px; /* Shrinks text from default 14px */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Ensure icons shrink too */
.btn-compact-primary.ant-btn .anticon {
  font-size: 10px;
}

/* components/animated-tabs.css */

/* ====== Design Tokens (tweak to your brand) ====== */
:root {
  --admin-bg: #ffffff;
  --admin-panel-bg: #ffffff;
  --admin-border: #e6e9ee;
  --admin-text: #2e2f33;
  --admin-muted: #6b7280;
  /* --admin-primary: #1677ff; Ant Design default blue */
  --admin-primary-soft: rgba(22, 119, 255, 0.08);
  --admin-hover: #f2f6ff;
  --admin-radius: 10px;
  --admin-radius-lg: 14px;
  --admin-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.06);
  --admin-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ====== Shell & Header ====== */
.admin-tabs-shell {
  background: var(--admin-bg);
  padding: 8px 0 24px;
}

.admin-tabs-header {
  position: sticky;
  top: 64px; /* adjust if your app header height differs */
  z-index: 20;
  /* background: linear-gradient(
    to bottom,
    rgba(247, 248, 250, 0.9),
    rgba(247, 248, 250, 1)
  ); */
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--admin-border);
  box-shadow: 0 6px 10px -8px rgba(0, 0, 0, 0.12);
}

/* Ensure the Tabs nav itself sits on the sticky container nicely */
.admin-tabs-header .ant-tabs-nav {
  margin: 0 auto;
  padding: 12px 16px;
  max-width: 1400px; /* keeps it readable on ultra-wide screens */
  background: transparent; /* let the header background shine through */
}

/* ====== Tabs presentation ====== */
.admin-custom-tabs .ant-tabs-nav::before {
  display: none; /* remove default bottom border */
}

/* The tab list can scroll horizontally on smaller screens */
.admin-custom-tabs .ant-tabs-nav-list {
  gap: 8px;
  overflow: auto hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

/* Tab "chip" buttons */
.admin-custom-tabs .ant-tabs-tab {
  padding: 0 !important;
  margin: 0; /* use gap above instead */
}

.admin-custom-tabs .ant-tabs-tab .ant-tabs-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f4f6f8;
  color: var(--admin-muted);
  font-weight: 500;
  border-radius: 999px; /* pill shape */
  padding: 10px 16px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  box-shadow: none;
  line-height: 1;
  white-space: nowrap;
}

.admin-custom-tabs .ant-tabs-tab:hover .ant-tabs-tab-btn {
  background: #eef2f7;
  color: var(--admin-text);
}

/* Active tab */
.admin-custom-tabs .ant-tabs-tab-active .ant-tabs-tab-btn {
  background: var(--admin-primary-soft);
  color: var(--admin-primary);
  border-color: rgba(22, 119, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.06);
}

/* Focus-visible for keyboard nav (a11y) */
.admin-custom-tabs .ant-tabs-tab:focus-visible .ant-tabs-tab-btn {
  outline: 3px solid rgba(22, 119, 255, 0.35);
  outline-offset: 2px;
}

/* Disabled state */
.admin-custom-tabs .ant-tabs-tab.ant-tabs-tab-disabled .ant-tabs-tab-btn {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Ink bar accent (under active tab) */
.admin-custom-tabs .ant-tabs-ink-bar {
  height: 3px;
  border-radius: 2px;
  background: var(--admin-primary);
}

/* ====== Animated pane + content wrapper ====== */
.admin-tab-pane-anim {
  /* small fade/slide is driven by framer-motion; here we style the container if needed */
}

.admin-tabs-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px; /* breathing room below tabs */
}

/* Panels can also have a light card wrapper if your tables look cramped */
.admin-tabs-content .admin-panel {
  background: var(--admin-panel-bg);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-lg);
  box-shadow: var(--admin-shadow-sm);
  padding: 16px;
}

/* If your data tables hug edges, add panel wrapper around them */
.admin-panel + .admin-panel {
  margin-top: 16px;
}

/* ====== Responsive tweaks ====== */
@media (max-width: 992px) {
  .admin-tabs-header .ant-tabs-nav {
    padding: 10px 12px;
  }
  .admin-custom-tabs .ant-tabs-nav-list {
    gap: 6px;
  }
  .admin-custom-tabs .ant-tabs-tab .ant-tabs-tab-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  .admin-tabs-content {
    padding: 12px;
  }
}

@media (max-width: 576px) {
  .admin-tabs-header {
    top: 56px; /* a bit smaller sticky offset on phones */
  }
  .admin-custom-tabs .ant-tabs-tab .ant-tabs-tab-btn {
    padding: 8px 10px;
    font-size: 12.5px;
  }
  .admin-tabs-content {
    padding: 10px;
  }
}

/* On mobile, don’t reserve space for a wide tab bar */
@media (max-width: 576px) {
  .admin-custom-tabs .ant-tabs-nav {
    display: none;
  }
}

/* END OF ANIMATED TABS */

/* Optional: subtle table container helpers (if your lists are AntD Tables) */
.table-card {
  background: var(--admin-panel-bg);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow-sm);
  padding: 12px;
}

/* Tighten header & control rows inside tables */
.table-card .ant-table-title,
.table-card .ant-table-footer {
  padding: 8px 8px;
}

.ant-table-content .even-row {
  background-color: #f5f5f5; /* Define your even row background color */
}

.ant-table-content .odd-row {
  background-color: #ffffff; /* Define your odd row background color */
}

.ant-table-content .even-row .ant-table-cell-fix-right {
  background: #f5f5f5; /* Define your even row background color */
}

.ant-table-content .odd-row .ant-table-cell-fix-right {
  background: #ffffff; /* Define your odd row background color */
}

/* FILE UPLOAD PREVIEW */

/* Root spacing */
.fup-root {
  margin-top: -4px;
  margin-bottom: 8px;
}

/* Card layout */
.fup-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr; /* media | actions */
  gap: 16px;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  padding: 14px;
}

/* Media area */
.fup-media {
  position: relative;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fafbfd 0%, #f5f7fb 100%);
  border-radius: 10px;
  border: 1px solid #eef1f6;
  overflow: hidden;
}

.fup-media-img-wrap {
  position: relative;
  width: 100%;
  height: 220px; /* set consistent preview height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.fup-image {
  width: 100%;
  height: 100%;
}

/* Hover overlay with quick actions */
.fup-media-overlay {
  position: absolute;
  inset: 8px;
  display: flex;
  align-items: end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.fup-media:hover .fup-media-overlay {
  opacity: 1;
  pointer-events: auto;
}
.fup-media-overlay .ant-btn {
  backdrop-filter: blur(4px);
}

/* Generic file placeholder block */
.fup-media-generic {
  display: grid;
  place-items: center;
  gap: 8px;
  height: 160px;
  padding: 12px;
}

.fup-doc-chip {
  background: rgba(22, 119, 255, 0.1);
  color: #1677ff;
  border: 1px solid rgba(22, 119, 255, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.fup-file-name {
  max-width: 90%;
  text-align: center;
}

/* Actions area */
.fup-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border: 1px dashed #e5e9f1;
  border-radius: 10px;
  padding: 12px;
}

.fup-btn {
  min-width: 8.5rem;
}

/* Empty (no file) state */
.fup-empty {
  text-align: center;
  padding: 24px 12px;
  border: 1px dashed #d9dfe8;
  border-radius: 12px;
  background: #fafcff;
}

/* Modal image */
.fup-modal-img {
  border-radius: 8px;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .fup-card {
    grid-template-columns: 1fr; /* stack media and actions */
    padding: 12px;
  }
  .fup-media-img-wrap {
    height: 200px;
  }
}

/* SPINNER */

.loading-text {
  letter-spacing: 3px;
  margin-top: 1rem;
  font-weight: 900;
  font-size: x-large;
  z-index: 111;
}
.loading-text span {
  display: inline-block;
  opacity: 0;
  animation: fadeIn 1s infinite alternate;
  color: #007bff;
}

.loading-spinner-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.65);
  z-index: 9999;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}
@keyframes fadeLetter {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(1px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Smooth fade transitions */
.loading-spinner-container.fade-in {
  opacity: 1;
  pointer-events: all;
}

.loading-spinner-container.fade-out {
  opacity: 0;
  pointer-events: none;
}

.spinner-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spinLoading-text {
  margin-top: 3rem;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 6px;
  color: #1677ff;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
}

.spinLoading-text span {
  display: inline-block;
  opacity: 0.4;
  transform: translateY(10px);
  animation: waveFade 1.5s ease-in-out infinite;
}

@keyframes waveFade {
  0% {
    opacity: 0.2;
    transform: translateY(10px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 10px rgba(22, 119, 255, 0.5);
  }
  100% {
    opacity: 0.4;
    transform: translateY(-5px);
  }
}
