.patient-communication-actions {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  max-width: -webkit-max-content;
  max-width: -moz-max-content;
  max-width: max-content;
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 4px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}
.patient-communication-actions .patient-communication-action {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.patient-communication-actions .patient-communication-action:hover:not(:disabled) {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  filter: saturate(1.08);
}
.patient-communication-actions .patient-communication-action:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
}
.patient-communication-actions .patient-communication-action:disabled {
  cursor: not-allowed;
  color: #9ca3af;
  background: #eef2f7;
  box-shadow: none;
  opacity: 0.8;
}
.patient-communication-actions .patient-communication-action i {
  font-size: 15px;
  line-height: 1;
}
.patient-communication-actions .patient-communication-call {
  background: linear-gradient(135deg, #10b981, #047857);
}
.patient-communication-actions .patient-communication-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}
.patient-communication-actions .patient-communication-email {
  background: linear-gradient(135deg, #6478ff, #3b4bd8);
}

.staff-profile-accordion .accordion-item {
  background: #fff;
  border-color: #e5e7eb !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
  overflow: hidden;
}
.staff-profile-accordion .accordion-button {
  min-height: 48px;
  padding: 14px 18px;
  color: #111827;
  font-weight: 700;
  background: #f8fafc;
  box-shadow: none;
}
.staff-profile-accordion .accordion-button:not(.collapsed) {
  color: #4f46e5;
  background: #eef2ff;
  box-shadow: inset 4px 0 0 #6366f1;
}
.staff-profile-accordion .accordion-button:focus {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.12);
}
.staff-profile-accordion .accordion-body {
  padding: 18px 18px 4px;
  background: #fff;
}
.staff-profile-accordion .form-label {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}
.staff-profile-accordion .form-control,
.staff-profile-accordion .form-select {
  min-height: 42px;
}

.hide {
  display: none;
}

#error-msg {
  color: red;
  margin-left: 2px;
}

#valid-msg {
  color: green;
  margin-left: 2px;
}

.time-slot {
  display: inline-block;
  padding: 3px 15px;
  border: 1px solid #969696;
  border-radius: 3px;
  text-align: center;
  margin-right: 5px;
  margin-bottom: 10px;
  letter-spacing: 1px;
  box-shadow: 0 2px 4px -2px #777;
  min-width: 80px;
  width: auto;
}

.time-slot-book,
.time-slot:hover {
  background-color: #6571ff;
  cursor: pointer;
  color: #fff;
  border: 1px solid #3596e8;
}

.time-interval:hover {
  cursor: pointer;
}

.slot-heading {
  margin-top: 10px;
  margin-bottom: 10px;
}

.color-information {
  color: #ef930a !important;
}

.unassigned-bed {
  color: #298f3e;
}

.assigned-bed {
  color: #b3381c;
}

.no-bed-available {
  margin: auto;
  margin-bottom: 6px;
  padding: 5px 15px 5px 15px;
  font-size: 20px;
  color: #2e2e2e;
  text-shadow: 3px -1px 4px #cecece;
}

.bad-status-hover {
  display: block;
  position: relative;
}

.bed-status-popup {
  opacity: 0;
  position: absolute;
  top: 32px;
  background: #fafafa;
  border: 1px solid transparent;
  border-radius: 6px;
  height: 0px;
  padding: 0 12px;
  margin-left: 70px;
  margin-top: -30px;
  overflow: hidden;
  transition: all 500ms;
  text-align: left;
}

.bad-status-hover:hover .bed-status-popup {
  padding: 12px 12px;
  height: auto;
  opacity: 1;
  z-index: 50;
  width: 320px;
  border: 1.5px solid;
  max-width: 175px;
}

.iti {
  display: block !important;
  width: 100%;
}

.plan-data {
  width: 60%;
}
@media (max-width: 767px) {
  .plan-data {
    width: 50%;
  }
}

.plan-border-bottom {
  border-bottom: 1px dashed #eff2f5;
}

.flatpickr-day {
  max-width: 39px !important;
}

body {
  overflow-x: hidden;
}

.action-dropdown {
  min-width: 220px !important;
  padding-bottom: 0 !important;
}

.custom-row-padding {
  padding: 15px 0 !important;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.width-sm-280 {
  width: 280px !important;
}

.price-column div {
  justify-content: end !important;
}

.price-sec-column div {
  justify-content: center !important;
}

.modal-header .btn-close {
  margin: inherit !important;
  padding: 0.9375rem 0.9375rem 0.9375rem 0 !important;
}

@media (max-width: 2560px) {
  .custom-modal {
    max-width: 1400px !important;
  }
}
@media (max-width: 1440px) {
  .custom-modal {
    max-width: 1400px !important;
  }
}
@media (max-width: 1024px) {
  .custom-modal {
    max-width: 950px !important;
  }
}
@media (max-width: 768px) {
  .custom-modal {
    max-width: 700px !important;
  }
}

.swal-text {
  text-align: center !important;
}

.custom-btn {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

@media (min-width: 425px) {
  .custom-margin {
    margin-right: 0.75rem !important;
  }
}

@media (min-width: 921px) {
  .appointment-custom-row {
    flex-direction: row !important;
  }
}

.custom-width {
  width: 210px !important;
}

.break-form-check {
  padding-left: 3.063em;
}

#avlQtyDiv {
  width: 180px !important;
}

.available-qty-div {
  width: 180px !important;
}

.custom-payment-btn {
  position: absolute;
  right: 0;
  top: 0;
}
@media (max-width: 496px) {
  .custom-payment-btn {
    position: relative;
  }
}

.listing-skeleton .card {
  height: 750px;
}
.listing-skeleton .pulsate {
  background: linear-gradient(90deg, #dddddd, #f0f0f0, #dddddd, #f0f0f0);
  background-size: 400% 400%;
  -webkit-animation: Gradient 2s ease infinite;
          animation: Gradient 2s ease infinite;
}
.listing-skeleton .card-content {
  clear: both;
  box-sizing: border-box;
  padding: 16px;
  background: #fff;
}
.listing-skeleton .search-box {
  width: 300px;
  height: 40px;
  margin-top: 8px;
  margin-left: 5px;
}
.listing-skeleton .widget {
  width: 300px;
  height: 180px;
  margin-top: 8px;
  margin-left: 5px;
}
.listing-skeleton .widget-2 {
  width: 300px;
  height: 180px;
  margin-top: 8px;
  margin-left: 5px;
  margin-right: 500px;
}
.listing-skeleton .date-box {
  width: 220px;
  height: 40px;
  margin-top: 8px;
  margin-left: 5px;
}
.listing-skeleton .filter-box {
  width: 50px;
  height: 40px;
  margin-top: 8px;
  margin-left: 5px;
}
.listing-skeleton .export-box {
  width: 110px;
  height: 40px;
  margin-top: 8px;
  margin-left: 5px;
}
.listing-skeleton .event-box {
  height: 240px;
  margin-bottom: 8px;
}
.listing-skeleton .add-button-box {
  width: 120px;
  height: 40px;
  margin-top: 8px;
  margin-left: 5px;
}
.listing-skeleton .table {
  width: 100%;
  height: 45px;
  margin-top: 8px;
  margin-left: 5px;
}
.listing-skeleton .column-box {
  height: 45px;
  margin-top: 8px;
  margin-left: 10px;
}
@-webkit-keyframes Gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes Gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.dashboard-skeleton .card {
  height: 800px;
}
.dashboard-skeleton .pulsate {
  background: linear-gradient(90deg, #dddddd, #f0f0f0, #dddddd, #f0f0f0);
  background-size: 400% 400%;
  -webkit-animation: Gradient 2s ease infinite;
          animation: Gradient 2s ease infinite;
}
.dashboard-skeleton .card-content {
  clear: both;
  box-sizing: border-box;
  padding: 16px;
  background: #fff;
}
.dashboard-skeleton .search-box {
  width: 300px;
  height: 40px;
  margin-top: 8px;
  margin-left: 5px;
}
.dashboard-skeleton .widget {
  width: 300px;
  height: 180px;
  margin-top: 8px;
  margin-left: 5px;
}
.dashboard-skeleton .widget-2 {
  width: 300px;
  height: 180px;
  margin-top: 8px;
  margin-left: 5px;
  margin-right: 500px;
}
.dashboard-skeleton .date-box {
  width: 220px;
  height: 40px;
  margin-top: 8px;
  margin-left: 5px;
}
.dashboard-skeleton .filter-box {
  width: 50px;
  height: 40px;
  margin-top: 8px;
  margin-left: 5px;
}
.dashboard-skeleton .chart {
  width: 100%;
  height: 360px;
  margin-top: 5px;
}
.dashboard-skeleton .table {
  width: 100%;
  height: 45px;
  margin-top: 8px;
  margin-left: 5px;
}
.dashboard-skeleton .column-box {
  height: 45px;
  margin-top: 8px;
  margin-left: 10px;
}
@-webkit-keyframes Gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes Gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.admin-dashboard-skeleton .card {
  height: 680px;
}
.admin-dashboard-skeleton .pulsate {
  background: linear-gradient(90deg, #dddddd, #f0f0f0, #dddddd, #f0f0f0);
  background-size: 400% 400%;
  -webkit-animation: Gradient 2s ease infinite;
          animation: Gradient 2s ease infinite;
}
.admin-dashboard-skeleton .card-content {
  clear: both;
  box-sizing: border-box;
  padding: 16px;
  background: #fff;
}
.admin-dashboard-skeleton .search-box {
  width: 300px;
  height: 40px;
  margin-top: 8px;
  margin-left: 5px;
}
.admin-dashboard-skeleton .widget {
  width: 300px;
  height: 180px;
  margin-top: 8px;
  margin-left: 5px;
}
.admin-dashboard-skeleton .widget-2 {
  width: 300px;
  height: 180px;
  margin-top: 8px;
  margin-left: 5px;
  margin-right: 500px;
}
.admin-dashboard-skeleton .date-box {
  width: 220px;
  height: 40px;
  margin-top: 8px;
  margin-left: 5px;
}
.admin-dashboard-skeleton .filter-box {
  width: 50px;
  height: 40px;
  margin-top: 8px;
  margin-left: 5px;
}
.admin-dashboard-skeleton .chart {
  width: 100%;
  height: 360px;
  margin-top: 5px;
}
.admin-dashboard-skeleton .table {
  width: 100%;
  height: 45px;
  margin-top: 8px;
  margin-left: 5px;
}
.admin-dashboard-skeleton .column-box {
  height: 45px;
  margin-top: 8px;
  margin-left: 10px;
}
@-webkit-keyframes Gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes Gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.time-slot-grid-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.time-slot-box {
  min-width: 80px;
  padding: 6px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  border: 1.5px solid #ddd;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.time-slot-box.available {
  background-color: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}
.time-slot-box.available:hover {
  background-color: #dcfce7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}
.time-slot-box.booked {
  background-color: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
  cursor: not-allowed;
  opacity: 0.65;
  filter: blur(0.4px);
  pointer-events: none;
}
.time-slot-box.selected {
  background-color: #16a34a;
  color: #ffffff;
  border-color: #15803d;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
  transform: translateY(-2px);
}

.time-slot-area.d-none {
  display: none !important;
}

/* Added for profile image resizing and rounding */
.image.image-circle {
  border-radius: 50% !important;
  overflow: hidden !important;
  display: inline-block;
}
.image.image-circle img {
  border-radius: 50% !important;
  -o-object-fit: cover !important;
     object-fit: cover !important;
}

.image.image-small {
  width: 100px !important;
  height: 100px !important;
}
.image.image-small img {
  width: 100px !important;
  height: 100px !important;
}

nav .nav-item .active.nav-link:after,
.header .navbar-nav .nav-item .active.nav-link:after,
nav .nav-item .nav-link:after,
.header .navbar-nav .nav-item .nav-link:after {
  transform: none !important;
  -webkit-transform: none !important;
}

.hms-styled-table,
.table-responsive > table.table-striped {
  border-collapse: separate !important;
  border-spacing: 0 10px !important;
  background: transparent !important;
  min-width: 1100px;
  white-space: nowrap;
}
.hms-styled-table thead th,
.table-responsive > table.table-striped thead th {
  background: transparent !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 0 !important;
  padding-top: 8px !important;
  padding-bottom: 10px !important;
}
.hms-styled-table tbody tr,
.table-responsive > table.table-striped tbody tr {
  --bs-table-accent-bg: transparent;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.hms-styled-table tbody tr:nth-child(4n+1) td,
.table-responsive > table.table-striped tbody tr:nth-child(4n+1) td {
  background: #fff7ed !important;
}
.hms-styled-table tbody tr:nth-child(4n+2) td,
.table-responsive > table.table-striped tbody tr:nth-child(4n+2) td {
  background: #ecfdf5 !important;
}
.hms-styled-table tbody tr:nth-child(4n+3) td,
.table-responsive > table.table-striped tbody tr:nth-child(4n+3) td {
  background: #eff6ff !important;
}
.hms-styled-table tbody tr:nth-child(4n+4) td,
.table-responsive > table.table-striped tbody tr:nth-child(4n+4) td {
  background: #f5f3ff !important;
}
.hms-styled-table tbody tr:hover,
.table-responsive > table.table-striped tbody tr:hover {
  transform: translateY(-1px);
}
.hms-styled-table tbody tr:nth-child(4n+1):hover td,
.table-responsive > table.table-striped tbody tr:nth-child(4n+1):hover td {
  background: #ffedd5 !important;
}
.hms-styled-table tbody tr:nth-child(4n+2):hover td,
.table-responsive > table.table-striped tbody tr:nth-child(4n+2):hover td {
  background: #d1fae5 !important;
}
.hms-styled-table tbody tr:nth-child(4n+3):hover td,
.table-responsive > table.table-striped tbody tr:nth-child(4n+3):hover td {
  background: #dbeafe !important;
}
.hms-styled-table tbody tr:nth-child(4n+4):hover td,
.table-responsive > table.table-striped tbody tr:nth-child(4n+4):hover td {
  background: #ede9fe !important;
}
.hms-styled-table tbody td,
.table-responsive > table.table-striped tbody td {
  border: 0 !important;
  color: #475569 !important;
  font-weight: 600;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  vertical-align: middle !important;
}
.hms-styled-table tbody td:first-child,
.table-responsive > table.table-striped tbody td:first-child {
  box-shadow: inset 6px 0 0 #f97316;
}
.hms-styled-table tbody td a,
.table-responsive > table.table-striped tbody td a {
  font-weight: 800 !important;
}
.hms-styled-table tbody td .badge,
.table-responsive > table.table-striped tbody td .badge {
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #0284c7 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}
.hms-styled-table .image img,
.hms-styled-table .user-img,
.table-responsive > table.table-striped .image img,
.table-responsive > table.table-striped .user-img {
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.opd-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
