/**
 * Meridian Fashion - Global button, table & form UI enhancements
 * Loaded on admin, employee panel, and auth pages.
 */

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.52rem 1.15rem;
  box-shadow: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  border-radius: 8px;
  padding: 0.32rem 0.75rem;
  font-size: 0.82rem;
}

.btn-lg {
  border-radius: 12px;
  padding: 0.65rem 1.35rem;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #ff59dc;
  --bs-btn-border-color: #ff59dc;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #e807b9;
  --bs-btn-hover-border-color: #e807b9;
  --bs-btn-focus-shadow-rgb: 255, 89, 220;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #d904ad;
  --bs-btn-active-border-color: #d904ad;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #f5a2e3;
  --bs-btn-disabled-border-color: #f5a2e3;
}

.btn-primary:hover {
  box-shadow: 0 8px 18px rgba(255, 89, 220, 0.28);
}

.btn-secondary {
  --bs-btn-color: #475569;
  --bs-btn-bg: #f1f5f9;
  --bs-btn-border-color: #e2e8f0;
  --bs-btn-hover-color: #334155;
  --bs-btn-hover-bg: #e2e8f0;
  --bs-btn-hover-border-color: #cbd5e1;
  --bs-btn-focus-shadow-rgb: 148, 163, 184;
  --bs-btn-active-color: #334155;
  --bs-btn-active-bg: #cbd5e1;
  --bs-btn-active-border-color: #cbd5e1;
}

.btn-success {
  --bs-btn-color: #fff;
  --bs-btn-bg: #10b981;
  --bs-btn-border-color: #10b981;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #059669;
  --bs-btn-hover-border-color: #059669;
  --bs-btn-focus-shadow-rgb: 16, 185, 129;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #047857;
  --bs-btn-active-border-color: #047857;
}

.btn-success:hover {
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.24);
}

.btn-danger {
  --bs-btn-color: #fff;
  --bs-btn-bg: #ef4444;
  --bs-btn-border-color: #ef4444;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #dc2626;
  --bs-btn-hover-border-color: #dc2626;
  --bs-btn-focus-shadow-rgb: 239, 68, 68;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #b91c1c;
  --bs-btn-active-border-color: #b91c1c;
}

.btn-danger:hover {
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.24);
}

.btn-warning {
  --bs-btn-color: #78350f;
  --bs-btn-bg: #fbbf24;
  --bs-btn-border-color: #fbbf24;
  --bs-btn-hover-color: #78350f;
  --bs-btn-hover-bg: #f59e0b;
  --bs-btn-hover-border-color: #f59e0b;
}

.btn-info {
  --bs-btn-color: #fff;
  --bs-btn-bg: #0ea5e9;
  --bs-btn-border-color: #0ea5e9;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0284c7;
  --bs-btn-hover-border-color: #0284c7;
}

.btn-outline-primary {
  --bs-btn-color: #ff59dc;
  --bs-btn-border-color: #ff59dc;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #ff59dc;
  --bs-btn-hover-border-color: #ff59dc;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #e807b9;
  --bs-btn-active-border-color: #e807b9;
}

.text-center .btn + .btn,
.modal-footer .btn + .btn,
.d-flex .btn + .btn {
  margin-left: 0.5rem;
}

.card-title .btn,
.card-title a.btn {
  float: right;
  margin-top: -0.15rem;
  font-size: 0.85rem;
  padding: 0.38rem 0.9rem;
}

/*--------------------------------------------------------------
# Cards & forms (list/filter pages)
--------------------------------------------------------------*/
#main .section:not(.dashboard) .card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

#main .section:not(.dashboard) .card .card-title {
  padding: 1.15rem 0 0.85rem;
  margin-bottom: 0;
  color: #0f172a;
  font-weight: 600;
  border-bottom: 1px solid #eef2f7;
}

#main .section:not(.dashboard) .card .card-body {
  padding: 0 1.35rem 1.35rem;
}

#main .section:not(.dashboard) .card .card-body > form.row.g-3,
#main .section:not(.dashboard) .card .card-body > .row.g-3 > form,
#main .section:not(.dashboard) .card .btn-body-title + form.row.g-3 {
  padding-top: 1.15rem;
}

/*--------------------------------------------------------------
# Global form UI
--------------------------------------------------------------*/
#main form.row.g-3,
.modal form.row.g-3,
.card.mb-3 form.row.g-3 {
  --bs-gutter-x: 1.1rem;
  --bs-gutter-y: 1.1rem;
}

#main .form-label,
.modal .form-label,
.card.mb-3 .form-label {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

#main .form-label .super,
#main .form-label span[style*="color:red"],
#main .form-label span[style*="color: red"],
.modal .form-label .super,
.modal .form-label span[style*="color:red"],
.form-label .text-danger {
  color: #ef4444 !important;
  font-weight: 700;
  margin-left: 0.1rem;
}

#main .form-control,
#main .form-select,
#main select.form-control,
.modal .form-control,
.modal .form-select,
.modal select.form-control,
.card.mb-3 .form-control,
.card.mb-3 .form-select {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  min-height: 42px;
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  color: #334155;
  background-color: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

#main textarea.form-control,
.modal textarea.form-control {
  min-height: 108px;
  resize: vertical;
  line-height: 1.5;
}

#main input[type="file"].form-control,
.modal input[type="file"].form-control {
  min-height: 42px;
  padding: 0.42rem 0.85rem;
  line-height: 1.4;
}

#main .form-control:focus,
#main .form-select:focus,
#main select.form-control:focus,
.modal .form-control:focus,
.modal .form-select:focus,
.card.mb-3 .form-control:focus,
.card.mb-3 .form-select:focus {
  border-color: #ff59dc;
  box-shadow: 0 0 0 0.2rem rgba(255, 89, 220, 0.15);
  outline: none;
}

#main .form-control:read-only,
#main .form-control[readonly],
#main .form-select:disabled,
#main .form-control:disabled,
.modal .form-control:read-only,
.modal .form-control[readonly] {
  background-color: #f8fafc;
  color: #64748b;
  border-color: #e2e8f0;
  cursor: default;
}

#main .form-control::placeholder,
.modal .form-control::placeholder {
  color: #94a3b8;
  opacity: 1;
}

#main .input-group-text,
.modal .input-group-text,
.card.mb-3 .input-group-text {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  border-radius: 10px 0 0 10px;
  min-height: 42px;
}

#main .input-group > .form-control,
.modal .input-group > .form-control,
.card.mb-3 .input-group > .form-control {
  border-radius: 0 10px 10px 0;
}

#main .input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu),
.modal .input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

#main form .text-center,
.modal form .text-center,
#main .form-actions {
  margin-top: 0.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid #eef2f7;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

#main form .text-center .btn,
.modal form .text-center .btn {
  min-width: 6.75rem;
}

#main .align-self-end .btn-primary,
#main .align-self-end .btn-secondary,
#main .align-self-end .btn-success {
  min-width: 6.5rem;
}

#main .card-body > span[style*="color:red"],
#main .card-body > span[style*="color: red"],
#main form > span[style*="color:red"],
#main form > span[style*="color: red"],
.modal-body > span[style*="color:red"],
.modal-body > span[style*="color: red"] {
  display: block;
  width: 100%;
  padding: 0.65rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c !important;
  font-weight: 600 !important;
  font-size: 0.88rem;
}

#main .btn-body-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.15rem 0 0.85rem;
  margin-bottom: 0;
  border-bottom: 1px solid #eef2f7;
}

#main .btn-body-title .card-title {
  padding: 0 !important;
  margin: 0 !important;
  border-bottom: none !important;
}

#main .form-check,
.modal .form-check,
.card.mb-3 .form-check {
  padding-left: 1.65rem;
  min-height: 1.35rem;
}

#main .form-check-input,
.modal .form-check-input,
.card.mb-3 .form-check-input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  border-color: #cbd5e1;
}

#main .form-check-label,
.modal .form-check-label,
.card.mb-3 .form-check-label {
  font-size: 0.9rem;
  color: #475569;
}

#main .form-check-input:checked,
.modal .form-check-input:checked,
.card.mb-3 .form-check-input:checked {
  background-color: #ff59dc;
  border-color: #ff59dc;
}

#main .form-check-input:focus,
.modal .form-check-input:focus,
.card.mb-3 .form-check-input:focus {
  border-color: #f5a2e3;
  box-shadow: 0 0 0 0.2rem rgba(255, 89, 220, 0.2);
}

/* Filter / search forms on list pages */
#main .card .row.g-3 {
  --bs-gutter-y: 1rem;
}

#main .card form.row.g-3 .col-md-4,
#main .card form.row.g-3 .col-md-3,
#main .card form.row.g-3 .col-md-6 {
  display: flex;
  flex-direction: column;
}

#main .card form.row.g-3 .text-center {
  width: 100%;
  flex: 0 0 100%;
}

/* Modal forms */
.modal-content {
  border: none;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.modal-header {
  border-bottom: 1px solid #eef2f7;
  padding: 1rem 1.25rem;
  background: #fafbfd;
}

.modal-body {
  padding: 1.15rem 1.25rem 1.25rem;
}

.modal-body h5,
.modal-body h4.modal-title + * h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 1.1rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #eef2f7;
}

.modal-body h5:first-child {
  margin-top: 0;
}

.modal-footer {
  border-top: 1px solid #eef2f7;
  padding: 0.85rem 1.25rem;
  background: #fafbfd;
}

.modal-title {
  font-weight: 700;
  color: #0f172a;
}

/* Login / auth forms */
.card.mb-3 {
  border: none;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.card.mb-3 .card-body {
  padding: 1.75rem 1.75rem 1.5rem;
}

.card.mb-3 .card-title {
  color: #0f172a;
  font-weight: 700;
  border-bottom: none;
  padding-bottom: 0.25rem;
}

.card.mb-3 .btn-primary,
.card.mb-3 .btn-primary:hover {
  padding: 0.65rem 1.25rem;
  font-size: 1rem;
  min-height: 44px;
}

.card.mb-3 .btn-primary:hover {
  box-shadow: 0 10px 22px rgba(255, 89, 220, 0.32);
}

.card.mb-3 .form-control,
.card.mb-3 .form-select {
  border-radius: 10px;
  border-color: #e2e8f0;
  min-height: 44px;
}

.card.mb-3 .form-control:focus,
.card.mb-3 .form-select:focus {
  border-color: #ff59dc;
  box-shadow: 0 0 0 0.2rem rgba(255, 89, 220, 0.15);
}

.card.mb-3 form.row.g-3 {
  margin-top: 0.35rem;
}

.card.mb-3 form .text-center {
  border-top: none;
  padding-top: 0.5rem;
}

/* Page title spacing above forms */
.pagetitle {
  margin-bottom: 1.15rem;
}

.pagetitle h1 {
  color: #0f172a;
  letter-spacing: -0.01em;
}

@media (max-width: 767px) {
  #main .section:not(.dashboard) .card .card-body {
    padding: 0 1rem 1.15rem;
  }

  #main form .text-center,
  #main .form-actions {
    flex-direction: column;
  }

  #main form .text-center .btn,
  #main .form-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  #main .btn-body-title {
    flex-direction: column;
    align-items: flex-start;
  }

  #main .btn-body-title .btn {
    width: 100%;
  }
}

/*--------------------------------------------------------------
# Dashboard page cards
--------------------------------------------------------------*/
#main .section.dashboard .dash-stat-card .card-body {
  padding: 1.35rem 1.35rem 1.35rem 1.5rem;
}

#main .section.dashboard .card:not(.dash-stat-card) {
  border: none;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

#main .section.dashboard .card:not(.dash-stat-card) .card-body {
  padding: 1.25rem;
}

#main .section.dashboard .card:not(.dash-stat-card) .card-title {
  padding: 0 0 0.85rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
  font-weight: 600;
}

.dashboard .pagetitle.dash-section-title {
  padding-bottom: 0.25rem;
  margin-bottom: 0.5rem;
}

.dashboard .dashboard-card-link {
  display: block;
  height: 100%;
}

/*--------------------------------------------------------------
# Tables
--------------------------------------------------------------*/
#main .table,
#main table.table,
#main .datatable-table {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0;
  font-size: 0.92rem;
}

#main .table thead th,
#main .datatable-table thead th {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: #334155;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #e2e8f0 !important;
  border-top: none;
  padding: 0.85rem 0.9rem;
  white-space: nowrap;
  vertical-align: middle;
}

#main .table tbody td,
#main .datatable-table tbody td {
  padding: 0.8rem 0.9rem;
  vertical-align: middle;
  color: #334155;
  border-color: #eef2f7;
}

#main .table tbody tr,
#main .datatable-table tbody tr {
  transition: background-color 0.15s ease;
}

#main .table tbody tr:hover,
#main .datatable-table tbody tr:not(.datatable-empty):hover {
  background-color: #fdf2fa !important;
}

#main .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: #fcfdff;
  box-shadow: none;
}

#main .table-striped > tbody > tr:nth-of-type(even) > * {
  background-color: #fff;
  box-shadow: none;
}

#main .table-bordered,
#main .table-bordered > :not(caption) > * > * {
  border-color: #e8edf3;
}

#main .table .badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.38em 0.65em;
  border-radius: 999px;
}

#main .table a:not(.btn) {
  color: #ff59dc;
  font-weight: 600;
  text-decoration: none;
}

#main .table a:not(.btn):hover {
  color: #e807b9;
  text-decoration: underline;
}

#main .table .btn-sm {
  min-width: 2.2rem;
}

.table-responsive {
  border-radius: 12px;
  border: 1px solid #e8edf3;
  overflow-x: auto !important;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

#main .table-responsive > table,
#main .table-responsive .datatable-table,
#main .pending-issue-scroll table,
#main .pending-issue-scroll .datatable-table {
  width: max-content !important;
  min-width: 100%;
  max-width: none !important;
  table-layout: auto;
}

#main .table-responsive .datatable-wrapper,
#main .pending-issue-scroll .datatable-wrapper {
  overflow: visible;
  width: 100%;
}

#main .table-responsive .datatable-container,
#main .pending-issue-scroll .datatable-container {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

/*--------------------------------------------------------------
# Simple DataTables
--------------------------------------------------------------*/
.datatable-wrapper {
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #e8edf3;
  background: #fff;
  width: 100%;
}

.datatable-container {
  overflow-x: auto !important;
  width: 100%;
}

.datatable-top,
.datatable-bottom {
  padding: 0.75rem 1rem;
  background: #fafbfd;
  border-color: #e8edf3 !important;
}

.datatable-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 0.65rem 1rem;
}

.datatable-top > nav:first-child,
.datatable-top > div:first-child,
.datatable-bottom > nav:first-child,
.datatable-bottom > div:first-child {
  float: none !important;
}

.datatable-top .datatable-dropdown {
  margin-right: auto;
}

.datatable-top .datatable-search,
.datatable-top > div:last-child {
  margin-left: auto;
}

.datatable-top::after,
.datatable-bottom::after {
  content: "";
  display: table;
  clear: both;
}

.datatable-dropdown label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.86rem;
  color: #64748b;
  font-weight: 500;
}

.datatable-selector {
  height: 34px;
  min-height: unset;
  width: auto;
  padding: 0.25rem 1.75rem 0.25rem 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: #fff;
  font-size: 0.86rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.datatable-selector:focus {
  border-color: #ff59dc;
  box-shadow: 0 0 0 0.15rem rgba(255, 89, 220, 0.12);
  outline: none;
}

.datatable-search {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.datatable-search::before {
  content: "\F52A";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0.7rem;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

.datatable-input {
  height: 34px;
  min-height: unset;
  width: 210px;
  max-width: 100%;
  padding: 0.3rem 0.65rem 0.3rem 2rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 400;
  color: #334155;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.datatable-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.datatable-input:focus {
  border-color: #ff59dc;
  box-shadow: 0 0 0 0.15rem rgba(255, 89, 220, 0.12);
  outline: none;
}

.datatable-input::-webkit-search-decoration,
.datatable-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.datatable-input::-moz-search-clear-button {
  display: none;
}

.datatable-info {
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 500;
}

.datatable-pagination a {
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  font-weight: 600;
  margin: 0 2px;
  padding: 0.35rem 0.65rem !important;
  font-size: 0.84rem;
}

.datatable-pagination .datatable-active a,
.datatable-pagination .datatable-active a:focus,
.datatable-pagination .datatable-active a:hover {
  background: #ff59dc !important;
  border-color: #ff59dc !important;
  color: #fff !important;
}

.datatable-pagination a:hover {
  background: #fdf2fa !important;
  border-color: #f5a2e3 !important;
  color: #c026a3 !important;
}

.datatable-sorter::before,
.datatable-sorter::after {
  opacity: 0.35;
}

.datatable-sorter:hover::before,
.datatable-sorter:hover::after {
  opacity: 0.8;
}

@media (max-width: 767px) {
  .datatable-top .datatable-search,
  .datatable-top > div:last-child {
    margin-left: auto;
  }

  .datatable-input {
    width: 180px;
  }
}

.card-title {
  letter-spacing: -0.01em;
}

@media (max-width: 767px) {
  #main .table thead th,
  #main .table tbody td,
  #main .datatable-table thead th,
  #main .datatable-table tbody td {
    padding: 0.65rem 0.7rem;
    font-size: 0.84rem;
  }

  .btn {
    padding: 0.48rem 0.95rem;
  }

  .card-title .btn,
  .card-title a.btn {
    float: none;
    display: inline-block;
    margin-top: 0.65rem;
  }
}

/*--------------------------------------------------------------
# Cancelled / highlighted rows
--------------------------------------------------------------*/
#main .table tbody tr.bg,
#main .table tbody tr.table-row-cancelled {
  background-color: #fee2e2 !important;
}

#main .table tbody tr.bg > *,
#main .table tbody tr.table-row-cancelled > * {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #fecaca !important;
  box-shadow: none;
}

#main .table tbody tr.bg:hover > *,
#main .table tbody tr.table-row-cancelled:hover > * {
  background-color: #fecaca !important;
}

#main .table tbody tr.bg a:not(.btn),
#main .table tbody tr.table-row-cancelled a:not(.btn) {
  color: #b91c1c !important;
}

/*--------------------------------------------------------------
# table-dark → brand header (analytics pages)
--------------------------------------------------------------*/
#main .table thead.table-dark th {
  background: linear-gradient(180deg, #ff59dc 0%, #e807b9 100%) !important;
  color: #fff !important;
  border-color: #e807b9 !important;
}

/*--------------------------------------------------------------
# Legacy inline booking/item tables (#tb)
--------------------------------------------------------------*/
#main table#tb {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 0.5rem;
  font-size: 0.92rem;
}

#main table#tb th {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: #334155;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 0.9rem;
  border-bottom: 2px solid #e2e8f0;
}

#main table#tb td {
  padding: 0.75rem 0.9rem;
  vertical-align: middle;
  border-bottom: 1px solid #eef2f7;
  color: #334155;
}

#main table#tb tr:last-child td {
  border-bottom: none;
}

#main table#tb tr:hover td {
  background-color: #fdf2fa;
}

#main table#tb .form-control,
#main table#tb .form-select {
  min-height: 38px;
  font-size: 0.88rem;
}

#main table#tb td .btn-link {
  font-weight: 600;
  text-decoration: none;
}

#main table#tb td .btn-link:hover {
  text-decoration: underline;
}

/*--------------------------------------------------------------
# Modal close buttons (legacy markup)
--------------------------------------------------------------*/
.close.btn.btn-primary {
  background: #fff !important;
  color: #ff59dc !important;
  border: 2px solid #ff59dc !important;
  border-radius: 50% !important;
  width: 2.25rem;
  height: 2.25rem;
  line-height: 1.1rem;
  padding: 0 !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0 !important;
}

.close.btn.btn-primary:hover {
  background: #ff59dc !important;
  color: #fff !important;
}

/*--------------------------------------------------------------
# Filter / export action bars
--------------------------------------------------------------*/
.card .row.g-3 .btn-success {
  margin-top: 0.25rem;
}

/*--------------------------------------------------------------
# Success message modal
--------------------------------------------------------------*/
.success-message-modal .modal-header.bg-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.success-message-modal .sent-message-body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #334155;
}

.item-count-link {
  font-weight: 600;
  text-decoration: none !important;
}

.item-count-link:hover {
  text-decoration: underline !important;
}

/*--------------------------------------------------------------
# DataTable Export Buttons
--------------------------------------------------------------*/
.dt-export-bar {
  display: inline-flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-left: 0.75rem;
}

.dt-export-btn {
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.dt-export-btn i {
  margin-right: 3px;
}

@media (max-width: 767px) {
  .dt-export-bar {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
  }
}
