/* FIXED: All @import rules moved to the top of the file */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');
@import url('https://fonts.cdnfonts.com/css/sf-pro-display');

.main-main{
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;

    padding: 0 !important;

}
.list-container {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f6fa;
  -webkit-font-smoothing: antialiased;
  padding: 0 !important;
  display: block;
  margin-top: 55px !important;
}

.filter-layout {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  min-height: 80vh;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.table-section {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.workflow-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  min-height: 129px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid #f0f1f3;
  background: #fff;
}

/* Typography and Headings */
.pagetitle h1 {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  vertical-align: middle;
}

.pagetitle .subtitle {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 16.5px;
  color: #9ca3af;
  margin-top: 4px;
  vertical-align: middle;
}

.toolbar-list-desgin {
  width: 100%;
  max-width: 1360px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1px;
  gap: 4px;
  background: transparent;
}
.toolbar-list-desgin-left,
.toolbar-list-desgin-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 6px 12px;
  width: 280px;
}

.search-box {
  display: flex;
  align-items: center;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 6px 12px;
  width: 280px;
}

.search-box input {
  border: none;
  background: transparent;
  font-size: 13px;
  margin-left: 8px;
  outline: none;
  width: 100%;
  color: #374151;
}

.search-box input:focus {
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-box input::placeholder {
  color: #adb5bd;
}

.btn-toolbar-list-desgin-icon,
.btn-reset {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-toolbar-list-desgin-icon:hover {
  background: #F3F4F6;
}

.btn-toolbar-list-desgin-icon i {
  font-size: 0.9rem;
  color: #6b7280;
}

.btn-toolbar-list-desgin-icon.filter-active {
  background: #EEF2FF;
  border-color: #C7D2FE;
  color: #4338CA;
}

.btn-toolbar-list-desgin-icon.filter-active i {
  color: #4338CA;
}

.btn-reset:hover {
  background: #f3f4f6;
  color: #374151;
}

.btn-add {
  font-family: "Roboto", sans-serif;
  background: #2969FF;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-add:hover {
  background: #1f2937;
  transform: translateY(-1px);
}

.btn-add i {
  font-size: 0.95rem;
}

.table-responsive {
  /* overflow: visible !important; */
  overflow-x: auto;
  overflow-y: visible;
  /* Changed from visible */
  /* max-height: 874px; */
  padding: 20px 20px 0 20px;
  /* position: relative; */
  /* Context for z-index */
}

table.modern-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
}

.modern-table th,
.modern-table td {
  font-size: 14px;
  font-weight: normal;
  font-style: normal;
  line-height: 16.5px;
  letter-spacing: 0.28px;
  vertical-align: middle;
  -webkit-font-smoothing: antialiased;
}

table.modern-table thead tr {
  border-bottom: 1px solid #f0f1f3;
}

table.modern-table thead th {
  background: #F9FAFB;
  padding: 12px 16px;
  border-bottom: 1px solid #E5E7EB;
  white-space: nowrap;
  top: 0;
  z-index: 10;
}

table.modern-table thead th .th-inner {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 16.5px;
  letter-spacing: 0.28px;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: none;
}

table.modern-table tbody tr {
  border-bottom: 1px solid #F1F3F6;
  transition: background 0.18s ease;
  animation: rowIn 0.25s ease both;
}

table.modern-table tbody tr.active-row {
  position: relative;
  z-index: 100;
  background: #f9fafb;
}

table.modern-table tbody tr:last-child {
  border-bottom: none;
}

table.modern-table tbody td {
  padding: 13px 16px;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 16.5px;
  color: #111827;
  vertical-align: middle;
}

.action-col-header,
.action-col-data {
  text-align: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  position: relative;
  overflow: visible !important;
  justify-content: center;
}

.td-primary {
  font-weight: 500;
  color: #111827;
  margin-bottom: 2px;
}

.td-secondary {
  font-weight: 400;
  color: #6B7280;
  text-align: left;
}

td.action-col-data {
  position: relative;
  overflow: visible !important;
  z-index: 5;
  text-align: center !important;
}

.kebab-wrapper {
  position: relative;
  display: inline-block;
}

.kebab-wrapper.active-wrapper {
  z-index: 9999 !important;
}

/* .btn-kebab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50.96875px;
  height: 24px;
  padding-left: 13.48px;
  padding-right: 13.48px;
  border-radius: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s;
} */
.btn-kebab {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: #f3f4f6;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: all 0.2s ease;
}

/* .btn-kebab::before {
  content: "\22EE";
  font-size: 20px;
  font-weight: bold;
  line-height: 20px;
  letter-spacing: 2px;
  color: #6B7280;
} */
.btn-kebab::before {
  content: "\22EE";
  font-size: 18px;
  color: #6b7280;
  font-weight: 700;
}
.btn-kebab:hover,
.btn-kebab.active {
  background: #F3F4F6;
}

/* .action-dropdown {
  display: none;
  position: absolute;
  right: 100%;
  top: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  min-width: 155px;
  z-index: 99999;
  padding: 5px;
  animation: dropIn 0.15s ease;
} */
.action-dropdown {
  position: absolute;

  top: 42px;
  right: 0;

  width: 190px;

  background: #fff;

  border-radius: 14px;

  border: 1px solid #ececec;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.10);

  padding: 8px 0;
   z-index: 9999;

  display: none;

  animation: dropdownAnim 0.18s ease;
}
.action-dropdown.open {
  display: block;
}

/* .action-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px 4px;
} */
.action-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px 14px;
  border-bottom: 1px solid #f1f1f1;
}
/* .action-dropdown-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c4c9d4;
} */
.action-dropdown-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #9ca3af;
}
/* .close-kebab-btn {
  background: none;
  border: none;
  color: #c4c9d4;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  transition: color 0.15s;
} */
.close-kebab-btn {
  border: none;
  background: transparent;

  color: #9ca3af;

  cursor: pointer;

  font-size: 14px;
}
.close-kebab-btn:hover {
  color: #ef4444;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 0.83rem;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111827;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
  border: none;
  background: none;
  width: 100%;
  font-weight: 500;
  text-decoration: none;
}

.action-item:hover {
  background: #f3f4f6;
}

.action-item.danger {
  color: #dc2626;
}

.action-item.danger:hover {
  background: #fff1f1;
}

.action-item.disabled-item {
  opacity: 0.4;
  pointer-events: none;
}

.action-item i {
  font-size: 13px;
  width: 15px;
  text-align: center;
}

.action-divider {
  height: 1px;
  background: #f0f1f3;
  margin: 4px 6px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}

.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
  color: #d1d5db;
}

.empty-state p {
  font-size: 0.9rem;
  margin: 0;
}

.pagination-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid #f0f1f3;
  background: #fff;
  border-radius: 0 0 16px 16px;
}

.pagination-info {
  font-size: 0.82rem;
  color: #9ca3af;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #6b7280;
  font-size: 0.83rem;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.pagination .page-item.active .page-link {
  background: #111827 !important;
  color: #fff !important;
  border-color: #111827 !important;
}

.pagination .page-item.disabled .page-link {
  color: #d1d5db;
  pointer-events: none;
}

.pagination .page-link:hover:not(.active) {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.filter-panel {
  width: 287px;
  min-width: 287px;
  border-left: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  z-index: 200;
  opacity: 1;
  animation: slideInRight 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.filter-header {
  height: 56px;
  padding: 0 16px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #F1F3F6;
  flex-shrink: 0;
}

.filter-header h3 {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 19.5px;
  letter-spacing: 0px;
  text-align: center;
  color: #111827;
  margin: 0;
  display: flex;
  align-items: center;
}

.filter-header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.filter-header button:hover {
  background: #f3f4f6;
  color: #374151;
}

.filter-grid {
  display: flex;
  flex-direction: column;
  padding: 14px 11px;
  gap: 0;
  overflow-y: auto;
  flex: 1;
}

.filter-group {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #F1F3F6;
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group>label {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #9ca3af;
  letter-spacing: 0.7px;
  margin-bottom: 8px;
  display: block;
}

.custom-select-trigger {
  position: relative;
  min-height: 36px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 4px 28px 4px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  transition: all 0.18s;
}

.custom-select-trigger:hover {
  border-color: #a5b4fc;
}

.custom-select-trigger.is-open {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  flex: 1;
}

.filter-badge {
  background: #ede9fe;
  color: #6d28d9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid #ddd6fe;
  font-weight: 600;
  white-space: nowrap;
}

.filter-badge i {
  font-size: 0.65rem;
  cursor: pointer;
  color: #7c3aed;
}

.filter-badge i:hover {
  color: #4c1d95;
}

.arrow-icon {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.7rem;
  pointer-events: none;
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 6px;
  z-index: 9999;
  max-height: 220px;
  overflow-y: auto;
  animation: slideUp 0.15s ease-out;
}

.option-item {
  padding: 5px 7px;
  border-radius: 6px;
  transition: background 0.15s;
  font-size: 0.82rem;
}

.option-item:hover {
  background: #f5f3ff;
}

.option-item .form-check {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.option-item .form-check-label {
  font-size: 0.82rem;
  color: #374151;
  cursor: pointer;
  margin: 0;
}

/* --- Global Clickable Row CSS --- */
.clickable-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.clickable-row:hover {
  background-color: #f3f4f6 !important;
  /* Halka sa gray background hover pe */
}

/* Action/Kebab menu wale cell par click hone se rokne ke liye */
.action-col-data {
  cursor: default;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(30px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Responsive Queries */
@media (max-width: 1024px) {
  .filter-layout {
    flex-direction: column;
  }

  .filter-panel {
    width: 100%;
    min-width: 100%;
    border-left: none;
    border-top: 1px solid #E5E7EB;
  }
}

@media (max-width: 768px) {
  .toolbar-list-desgin {
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }

  .search-box {
    width: 100%;
  }
}
/* pagetop-bar css manae permission ,manage sub admin and admdin and role permissions  */

/* ================= PAGE ================= */

.premium-ui {

  background: #f4f6fa;

  min-height: 100vh;

}


/* ================= MAIN ================= */

.main.premium-ui {

  padding-top: 0 !important;

}


/* ================= TOP BAR ================= */

app-page-top-bar {

  display: block;

 width: calc(100% + 72px);

  margin-left: -40px;

  /* margin-top: -20px; */

}


/* ================= INTERNAL TOP BAR FIX ================= */

app-page-top-bar ::ng-deep .ptb {

  padding-left: 40px !important;

  padding-right: 20px !important;

}


/* ================= SPACING ================= */

.ptb-bleed {

  margin-bottom: 20px;

}


/* ================= SECTION ================= */

.section.profile {

  margin-top: 0;

}


/* ================= LOADER ================= */

.spinner-border {

  width: 3rem;

  height: 3rem;

}

/* ─────────────────────────────────────────────
   FILTER SUMMARY
───────────────────────────────────────────── */
.filter-summary {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 600;
}
.btn-toolbar-list-desgin-icon {
  position: relative;
}

.filter-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
}
