/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji";
  overflow-x: hidden !important;
  font-size: 0.9rem !important;
}

#results {
  padding: 20px;
}

.export {
  margin-right: 30px;
}

.status_active {
  color: green;
  font-weight: bold;
  text-align: center;
}

.status_approved {
  color: green;
  font-weight: bold;
  text-align: center;
}

.status_pending {
  color: orange;
  font-weight: bold;
  text-align: center;
}

.status_rejected {
  color: red;
  font-weight: bold;
  text-align: center;
}

.status_inactive {
  color: red;
  font-weight: bold;
  text-align: center;
}

.status_canceled {
  color: blue;
  font-weight: bold;
  text-align: center;
}

.status_panding {
  color: orange;
  font-weight: bold;
  text-align: center;
}

.status_newjoinee {
  color: blue;
  font-weight: bold;
  text-align: center;
}

.cd-quick-view {
  display: block;
  position: fixed;
  max-width: 900px;
  visibility: hidden;
  /* Force Hardware Acceleration in WebKit */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: left, top, width;
  z-index: 1;
}

.employee_name {
  text-transform: capitalize;
}

label.error {
  color: #dc3545 !important;
  font-size: 14px;
}

.quick-left {
  width: 35%;
  height: 200px;
  float: left;
  margin: 1px;
  padding-right: 10px;
}

.quick-left img {
  height: 178px;
  width: 100%;
}

.quick-right {
  height: 200px;
}

.visitor-log {
  margin-top: 3%;
  clear: both;
}

.visitor-log table {
  width: 100%;
  padding: 5px;
}

.visitor-log table thead {
  margin-bottom: 5px;
}

th {
  text-align: inherit;
  padding: 7px;
}

.my_class video {
  width: 427px;
  height: 390px;
}

.visitor-model {
  width: 700px;
}

.my_camera {
  margin-left: 28%;
}

.description {
  height: 300px;
}

tbody {
  text-transform: capitalize;
}

.form-control-md {
  width: 60%;
}

.report-list-heading {
  font-size: large;
  font-weight: 400;
  border-bottom: black;
}

.report-list {
  list-style-type: none;
  margin-top: 60px;
  padding: 20px;
  border: 1px grey solid;
}

.text-center {
  padding-left: 20px;
}

.mandatory {
  color: red;
  margin-left: 2%;
  font-size: 22px;
}

.sub-menu {
  padding-left: 10%;
}

.btn-space {
  margin-right: 1%;
}

.content-header {
  padding: 5px;
}

.dropdown-menu,
.form-control-md,
.form-control-sm,
.form-control {
  font-size: 0.85rem !important;
}

.dropdown {
  font-weight: 400;
  line-height: 1.5;
}

.dropdown .title {
  font-weight: 400;
  line-height: 1.5;
}

.table td,
.table th {
  padding: 0.5rem !important;
}

table.dataTable {
  margin-top: 0px !important;
  margin-bottom: 0px !important;
  font-size: 0.85rem;
}

.col-form-label {
  font-weight: 500 !important;
  padding-top: 0px !important;
}

.form-group {
  margin-bottom: 0.5rem !important;
}

.container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.custom-control-label::before,
.custom-file-label,
.custom-select {
  width: auto !important;
}

.content-header {
  padding: 5px 0.5rem !important;
}

.card-header {
  padding: 0.5rem 1rem !important;
}

.btn {
  padding: 0.25rem 0.5rem !important;
}

.alert-danger ul {
  margin: 0px;
  padding: 0;
}

.alert-danger ul li {
  list-style: none;
}

form .form-control-md {
  width: 50% !important;
}

form .form-control-lx {
  width: 90% !important;
}

form .form-control-sm {
  width: 20% !important;
}

form .form-control-xs {
  width: 20% !important;
}

form .auto-width {
  width: auto !important;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  color: #000;
}

/*.select2-dropdown{
    width: 99% !important;
}*/
.change_letter {
  text-transform: lowercase !important;
}

.select2height {
  height: calc(2.25rem + 2px) !important;
  width: 99%;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 29px;
  position: absolute;
  top: 1px;
  right: 33px;
  width: 6px;
}

.select2-container .select2-selection--single {
  height: auto;
}

.content-wrapper {
  padding: 20px;
  min-height: calc(100vh - 101px) !important;
  height: auto !important;
}

.elevation-4 {
  box-shadow: none !important;
}

body:not(.layout-fixed) .main-sidebar {
  height: none !important;
}

.errmsg {
  background-color: green;
  color: white;
}

.mr-50 {
  margin-right: 50px;
}

.toggle-link {
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
}

.details-section {
  display: none;
  margin-top: 10px;
}

.no-list-style {
  list-style-type: none;
  padding-left: 0;
}

.info-icon-wrapper {
  position: relative;
  display: inline-block;
}

.info-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  background-color: #007bff;
  color: white;
  font-size: 12px;
  cursor: pointer;
  margin-left: 5px;
}

.tooltip-text {
  visibility: hidden;
  width: max-content;
  max-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;

  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);

  opacity: 0;
  transition: opacity 0.3s;
  white-space: normal;
  font-size: 14px;
  line-height: 1.6;
}

.info-icon-wrapper:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.eye-toggle {
  cursor: pointer;
  height: 100%;
}

#menu_nav {
  font-size: 23px;
}

.custom-alert {
  padding: 14px 20px;
  border-radius: 6px;
  margin-bottom: 24px;
  border: 1px solid transparent;
  font-size: 15px;
}

.custom-alert-danger {
  background-color: #db5858ff;
  color: #fdfdfdff;
  border-color: #f0d4d4;
  width: 100%;
  padding: 14px 20px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-size: 15px;
}

.custom-alert-danger.scrollable {
  max-height: 300px;
  overflow-y: auto;
}

.custom-alert ul {
  margin: 0;
  padding-left: 20px;
}

#multipul_select_box {
  width: 100%;
}

#Weekly_Report {
  max-height: 300px;
}

#date {
  width: 20%;
}

.remove-file-btn {
  position: absolute;
  right: 33px;
  top: 56%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #db5858ff;
  font-size: 30px;
  display: none;
}

#messages_project {
  display: none;
  width: 100%;
  min-height: 30px;
  padding: 8px 12px;
  border-radius: 5px;
  background-color: green;
  color: white;
  border: 1px solid green;
  font-size: 14px;
}

.attendance-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: max-content;
  width: 100%;
}

.attendance-table th,
.attendance-table td {
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  padding: 0.45rem 0.6rem;
}

.sticky-col {
  position: sticky;
  background: #fff;
  z-index: 6;
}

.first-col {
  left: 0;
  z-index: 12;
  min-width: 180px;
  background: #f8fafc;
}

.second-col {
  left: 180px;
  z-index: 11;
  min-width: 100px;
  background: #f8fafc;
}

.attendance-table td.first-col,
.attendance-table td.second-col {
  position: sticky;
  background: #fff;
}

.first-col::after,
.second-col::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: rgba(0, 0, 0, 0.06);
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background-color: #c1c1c1;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.profile_image_preview {
  border: 1px solid #ddd;
  padding: 2px;
  margin-bottom: 15px;
}

form .form-control-sm {
  width: 25% !important;
  font-size: 0.85rem !important;
}

.card.bg-info {
  background: linear-gradient(135deg, #4db6ac, #00897b);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-radius: 0 !important;
  padding: 2.5rem !important;
  /* custom padding */
}

#checkInBtn,
#checkOutBtn {
  padding: 1.5rem 0;
  font-size: 1.6rem;
  border-radius: 0.5rem;
  border: none;
  width: 100%;
  /* full width */
  transition:
    background 0.3s ease,
    transform 0.2s ease;
}

#checkInBtn {
  background: linear-gradient(45deg, #28a745, #218838);
}

#checkInBtn:hover {
  background: linear-gradient(45deg, #218838, #19692c);
  transform: scale(1.05);
}

#checkOutBtn {
  background: linear-gradient(45deg, #dc3545, #c82333);
  margin-top: 1rem;
}

#checkOutBtn:hover {
  background: linear-gradient(45deg, #c82333, #991f27);
  transform: scale(1.05);
}

#checkInBtn,
#checkOutBtn {
  padding: 6px 12px;
  font-size: 14px;
}

/* Accordion & General Buttons */
.accordion-item,
.accordion-header,
.accordion-button,
.accordion-body {
  width: 100%;
  box-sizing: border-box;
}

.custom-item {
  border: none;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.custom-btn {
  background: #f8f9fa;
  border-radius: 14px !important;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.custom-btn:not(.collapsed) {
  background: #e9f2ff;
  color: #0d6efd;
}

.accordion-button {
  border: 1px solid #dee2e6;
  background: #f8f9fa;
  border-radius: 8px;
  width: 100%;
  height: 45px;
  justify-content: flex-start;
  text-align: left;
  padding-left: 20px;
}

.accordion-button:not(.collapsed) {
  background: #e9f2ff;
  color: #0d6efd;
  border: 1px solid #cfd8dc;
}

.accordion-button::after {
  margin-left: auto;
}

.accordion-text {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: #384f66;
}

/* Card Titles */
.festive-header .card-title {
  font-size: 1.5rem;
  letter-spacing: 0.8px;
}

.accordion-title {
  font-size: 14px;
  text-align: left;
}

/* Custom Accordion Body */
.custom-accordion-body {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Employee Card */
.employee-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.profile-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.employee-text h6 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.employee-text p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #6c757d;
}

/* Clip Card (Birthday/Anniversary Cards) */
.clip-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px 30px;
  background: linear-gradient(to bottom, #ffffff, #ffe3e3);
  border-radius: 14px;
  clip-path: polygon(0% 0%, 100% 0%, 100% 80%, 50% 93%, 0% 80%);
}

.profile-img-lg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.employee-title {
  font-size: 14px;
  font-weight: 600;
}

.employee-desc {
  font-size: 12px;
  color: #6c757d;
  margin: 0;
}

/* Table Styling */
.table thead.thead-light th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.table tbody tr:hover {
  background-color: #f1f3f5;
}

/* Accordion Wrap */
.custom-accordion-wrap {
  max-width: 420px;
  width: 100%;
}

p {
  margin-top: 0;
  margin-bottom: 0.5rem !important;
}

.dashboard-card {
  border-radius: 14px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 160px;
  padding: 20px;
  position: relative;
  color: #fff;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* New Professional Colors */
.card-indigo {
  background: #3f51b5;
}

.card-emerald {
  background: #1e7e34;
}

.card-purple {
  background: #6f42c1;
}

.card-orange {
  background: #e67e22;
}

.card-slate {
  background: #34495e;
}

.card-Neonblue {
  background: #1f51ff;
}

.card-Neonorange {
  background: #ff5f1f;
}

.card-Amaranth {
  background: #9f2b68;
}

.card-Lincolongreen {
  background: #478778;
}

.dashboard-card h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 5px;
}

.dashboard-card p {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: bolder;
}

.dashboard-icon {
  font-size: 42px;
  opacity: 0.15;
  position: absolute;
  right: 20px;
  top: 20px;
}

.dashboard-footer {
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  margin-top: auto;
}

.dashboard-footer:hover {
  background: rgba(255, 255, 255, 0.22);
  text-decoration: none;
  color: #fff;
}

.dashboard-card table td {
  font-size: 13px;
  padding: 2px 4px 2px 0;
  vertical-align: middle;
}

.dashboard-card small {
  font-size: 13px;
  display: inline-block;
  line-height: 1.4;
}

.empty-text {
  font-size: 13px;
  opacity: 0.85;
}

/* ─── Dashboard Card Responsive Scaling ─── */
@media (max-width: 1400px) {
  .dashboard-card {
    padding: 16px;
  }
  .dashboard-card h3 {
    font-size: 22px;
  }
  .dashboard-card p {
    font-size: 14px;
  }
  .dashboard-card table td,
  .dashboard-card small {
    font-size: 12px;
  }
  .dashboard-icon {
    font-size: 34px;
    right: 15px;
    top: 15px;
  }
}

@media (max-width: 991.98px) {
  .dashboard-card {
    padding: 14px;
    min-height: 140px;
  }
  .dashboard-card h3 {
    font-size: 20px;
  }
  .dashboard-card p {
    font-size: 13px;
  }
  .dashboard-card table td,
  .dashboard-card small,
  .empty-text {
    font-size: 12px;
  }
  .dashboard-footer {
    font-size: 12px;
    padding: 6px 8px;
  }
  .dashboard-icon {
    font-size: 28px;
    right: 12px;
    top: 12px;
  }
}

@media (max-width: 575.98px) {
  .dashboard-card {
    padding: 12px;
    min-height: 120px;
  }
  .dashboard-card h3 {
    font-size: 18px;
  }
  .dashboard-card p {
    font-size: 12px;
  }
  .dashboard-card table td,
  .dashboard-card small,
  .empty-text {
    font-size: 11px;
  }
  .dashboard-footer {
    font-size: 11px;
    padding: 5px 8px;
  }
  .dashboard-icon {
    font-size: 24px;
    right: 10px;
    top: 10px;
  }
}

#celebration-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  cursor: pointer;
  z-index: 9999;
}

.toggle-icon {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 50%, #ffd93d 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.icon-emoji {
  font-size: 32px;
  animation: rotate-emoji 3s ease-in-out infinite;
}

@keyframes rotate-emoji {
  0%,
  100% {
    transform: rotate(-10deg) scale(1);
  }

  50% {
    transform: rotate(10deg) scale(1.1);
  }
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  background: #ff4757;
  border-radius: 50%;
  border: 3px solid white;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.ripple {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid #ff6b6b;
  border-radius: 50%;
  opacity: 0.6;
  animation: ripple-effect 2s ease-out infinite;
}

.delay-1 {
  animation-delay: 1s;
}

@keyframes ripple-effect {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

#celebration-toggle:hover .toggle-icon {
  transform: scale(1.15) rotate(15deg);
  box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
}

/* Overlay */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#overlay.active {
  display: block;
  opacity: 1;
}

/* Celebration Box */
#celebration-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 80%;
  max-width: 1400px;
  height: auto;
  background: #ffffff;
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#celebration-box.active {
  display: flex;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Header */
.celebration-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 10px 20px;
  border-radius: 30px 30px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-icon {
  font-size: 2.5rem;
  animation: bounce-header 2s ease-in-out infinite;
}

@keyframes bounce-header {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.header-text h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.header-text p {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 400;
}

#celebration-close {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: white;
}

#celebration-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Body */
.celebration-body {
  flex: 1;
  overflow-y: auto;
  padding: 35px;
  background: #f8f9fa;
}

.celebration-body::-webkit-scrollbar {
  width: 10px;
}

.celebration-body::-webkit-scrollbar-track {
  background: #e9ecef;
  border-radius: 10px;
}

.celebration-body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 10px;
}

/* Section Header */
/* .celebration-section {
        margin-bottom: 45px;
    } */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #ff6b9d, #ffa07a);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(255, 107, 157, 0.3);
  animation: float-icon 3s ease-in-out infinite;
}

.anniversary-icon {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

@keyframes float-icon {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.section-title h3 {
  font-size: 1.2rem;
  color: #2d3748;
  font-weight: 600;
}

.section-count {
  background: linear-gradient(135deg, #ff6b9d, #ffa07a);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.anniversary-count {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Cards Container */
.cards-container {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  padding-bottom: 20px;
  scrollbar-width: thin;
}

.cards-container::-webkit-scrollbar {
  height: 8px;
}

.cards-container::-webkit-scrollbar-track {
  background: #e9ecef;
  border-radius: 10px;
}

.cards-container::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 10px;
}

/* Celebration Card */
.celebration-card {
  max-width: 400px;
  background: white;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.celebration-card:hover {
  transform: translateY(+5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Card Glow Effect */
.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 157, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.anniversary-glow {
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.1) 0%,
    transparent 70%
  );
}

.celebration-card:hover .card-glow {
  opacity: 1;
}

/* Card Decorations */
.card-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.floating-shape {
  position: absolute;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 157, 0.1),
    rgba(255, 160, 122, 0.1)
  );
  border-radius: 50%;
  animation: float-shape 4s ease-in-out infinite;
}

.anniversary-decoration .floating-shape {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.1),
    rgba(255, 140, 0, 0.1)
  );
}

.shape-1 {
  top: 20px;
  left: 20px;
  animation-delay: 0s;
}

.shape-2 {
  top: 60px;
  right: 30px;
  width: 40px;
  height: 40px;
  animation-delay: 0.7s;
}

.shape-3 {
  bottom: 40px;
  left: 50px;
  width: 50px;
  height: 50px;
  animation-delay: 1.4s;
}

@keyframes float-shape {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: translateY(-20px) scale(1.1);
    opacity: 0.5;
  }
}

/* Card Content */
.card-content {
  position: relative;
  z-index: 1;
  padding: 35px 25px 30px;
  text-align: center;
}

/* Profile Wrapper */
.profile-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.profile-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #ff6b9d, #ffa07a);
  box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

.anniversary-ring {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.profile-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
}

.celebration-emoji {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #ff6b9d, #ffa07a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
  border: 3px solid white;
  animation: pulse-emoji 2s infinite;
}

.anniversary-emoji {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
  width: 55px;
  height: 55px;
}

@keyframes pulse-emoji {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.trophy-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.trophy-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
}

.trophy-text {
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  margin-top: -2px;
}

/* Employee Info */
.employee-info {
  margin-bottom: 20px;
}

.employee-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 12px;
}

.celebration-wish {
  font-size: 0.95rem;
  color: #718096;
  line-height: 1.6;
  font-style: italic;
  padding: 0 10px;
}

/* Celebration Date */
.celebration-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffe5ec, #ffd1dc);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  color: #c2185b;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
}

.anniversary-date-badge {
  background: linear-gradient(135deg, #fff8dc, #ffe5b4);
  color: #d97706;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.date-icon {
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  #celebration-box {
    width: 95%;
    height: 95vh;
    border-radius: 20px;
  }

  .celebration-header {
    padding: 20px;
    border-radius: 20px 20px 0 0;
  }

  .header-text h2 {
    font-size: 1rem;
  }

  .celebration-body {
    padding: 20px;
  }

  .celebration-card {
    min-width: 280px;
  }

  .section-title h3 {
    font-size: 1.3rem;
  }

  .card-content {
    padding: 30px 20px 25px;
  }
}

/* ── Parent row highlight when expanded ── */
tr.shown > td {
  background-color: #f0f4ff !important;
}

/* ── Blue left border on child row wrapper ── */
#departmentList tbody tr.shown + tr > td {
  padding: 0 !important;
  border-top: 0 !important;
  border-left: 3px solid #4e73df !important;
}

/* ── Sub department rows ── */
.sub-dept-row {
  background-color: #fafbff !important;
}

.sub-dept-row:hover {
  background-color: #f0f4ff !important;
}

.sub-dept-row td {
  padding: 8px 12px !important;
  border-bottom: 1px dashed #e3e6f0 !important;
  font-size: 0.875rem;
  color: #3a3f5c;
}

/* ── Dot indicator ── */
.sub-dept-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4e73df;
  margin-right: 8px;
  vertical-align: middle;
}

/* ── Status badges ── */
.sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.sub-badge-active {
  background: #d4edda;
  color: #1a7a3c;
}

.sub-badge-inactive {
  background: #fde8e8;
  color: #c0392b;
}

/* ── Expand button ── */
.expand-btn {
  border: none !important;
  background: transparent !important;
  padding: 2px 6px !important;
}

.expand-btn:focus {
  outline: none !important;
  box-shadow: none !important;
}

.select-card {
  border: 2px solid #dee2e6;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.select-card:hover {
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

.select-card.active {
  border-color: #007bff;
  background-color: #e8f0fe;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.4);
}

.cost-value.form-control-sm.cost-input-wide {
  width: 60% !important;
}

#detailDocumentsList a {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 5px;
  font-size: 13px;
  word-break: break-all;
  display: inline-block;
  max-width: 100%;
}

.payroll-component-card {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
}

.payroll-component-card .card-body {
  padding: 1.75rem;
}

.payroll-component-card .page-title {
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.payroll-component-card .page-subtitle {
  color: #777;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.payroll-component-card .section-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  margin: 1.5rem 0 1rem;
  border-top: 1px solid #eee;
  padding-top: 1.25rem;
}

.payroll-component-card .section-title:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.payroll-component-card label.col-form-label {
  display: block;
  color: #444;
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  padding: 0;
}

.payroll-component-card .form-control {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  color: #1a1a1a;
  padding: 0.55rem 0.75rem;
  height: auto;
}

.payroll-component-card .form-control::placeholder {
  color: #aaa;
}

.payroll-component-card .form-control:focus {
  background: #fff;
  border-color: #6a6af0;
  color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(106, 106, 240, 0.12);
}

.payroll-component-card select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 18px;
}

.payroll-component-card .form-group.row {
  display: block;
  margin-bottom: 1rem;
}

.payroll-component-card .col-sm-3,
.payroll-component-card .col-sm-9 {
  width: 100%;
  padding: 0;
  max-width: 100%;
  flex: none;
}

.payroll-component-card .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}

.payroll-component-card .grid-3,
.payroll-component-card .grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 1.25rem;
}

.payroll-component-card .grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 767px) {
  .payroll-component-card .grid-2,
  .payroll-component-card .grid-3,
  .payroll-component-card .grid-4 {
    grid-template-columns: 1fr;
  }
}

.content-header .card-header .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  vertical-align: middle;
}

/* ==========================================================================
   PROJECT PERFORMANCE INSIGHTS RESPONSIVE STYLES
   ========================================================================== */
.project-costing-title {
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 600;
}

.project-costing-filter-label {
  font-size: clamp(10.5px, 0.75vw, 12px);
  white-space: nowrap;
}

.project-costing-filter-select {
  font-size: clamp(11px, 0.8vw, 12.5px);
  height: 30px;
  padding: 2px 6px;
}

.kpi-metric-card {
  min-height: 64px;
  padding: 8px 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.2s ease;
}

.kpi-metric-card:hover {
  background: #fff;
  border-color: #dee2e6;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.kpi-metric-label {
  font-size: clamp(9px, 0.7vw, 11px);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #6c757d;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-metric-val {
  font-size: clamp(15px, 1.25vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breakdown-heading {
  font-size: clamp(12.5px, 0.95vw, 14.5px);
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 6px;
}

.breakdown-table {
  width: 100%;
  margin-bottom: 12px;
}

.breakdown-table td {
  padding: 3px 0;
  vertical-align: middle;
  font-size: clamp(11px, 0.85vw, 13px);
}

.breakdown-table .badge {
  font-size: clamp(10.5px, 0.8vw, 12px);
  font-weight: 600;
  padding: 3px 7px;
  white-space: nowrap;
}

.breakdown-variance-text {
  font-size: clamp(11px, 0.85vw, 13px);
  font-weight: 700;
  white-space: nowrap;
}

