/* QNB Branches page — filter panel + cards (EN/AR) */
.page-subpage .branches-atm-box {
  position: relative;
  z-index: 2;
}

#branchesApp {
  background: #fff;
  border-radius: 14px;
  padding: 22px 22px 12px;
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.08);
}

#branchesApp .branches-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-bottom: 14px;
}

#branchesApp .branches-filters .form-group {
  margin: 0;
}

#branchesApp .branches-filters label {
  color: #1b1f24 !important;
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 6px;
  display: block;
}

#branchesApp .branches-filters .form-control,
#branchesApp .branches-filters select {
  display: block;
  width: 100%;
  background: #fff !important;
  border: 1px solid #d0d5dd !important;
  color: #1b1f24 !important;
  min-height: 44px;
  height: 44px;
  border-radius: 8px !important;
  box-shadow: none !important;
  padding: 8px 12px;
  font-size: 16px;
}

#branchesApp .select2-container {
  width: 100% !important;
  display: block;
}

#branchesApp .select2-container .select2-selection--single {
  height: 44px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
}

#branchesApp .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 42px;
  color: #1b1f24;
  padding-left: 12px;
  padding-right: 28px;
}

#branchesApp .select2-container .select2-selection--single .select2-selection__arrow {
  height: 42px;
}

#branchesApp .select2-dropdown {
  border-color: #d0d5dd;
  z-index: 10051 !important;
}

#branchesApp .branches-keyword-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

#branchesApp .branches-keyword-row .form-group {
  margin: 0;
  min-width: 0;
  width: auto !important;
  float: none !important;
}

#branchesApp .branches-keyword-row .form-control {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
}

#branchesApp .btn.btn-search,
#branchesApp .btn-search {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 110px;
  height: 44px !important;
  line-height: 1 !important;
  padding: 0 24px !important;
  margin: 0 !important;
  background: #870052 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

#branchesApp .btn.btn-search:hover,
#branchesApp .btn-search:hover {
  background: #5c0038 !important;
  color: #fff !important;
}

#branchesApp .branches-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

#branchesApp #branchesCount {
  color: #667085;
  font-size: 1.3rem;
  font-weight: 600;
}

#branch-list.atm-branch-list-box,
#branch-list {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  min-height: 80px;
}

#branchesApp .branch-card {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#branchesApp .branch-card:hover {
  border-color: #d6a3c0;
  box-shadow: 0 4px 14px rgba(135, 0, 82, 0.08);
}

#branchesApp .branch-card-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: #870052 !important;
  font-size: 1.7rem !important;
  line-height: 1.35;
  font-weight: 700;
}

#branchesApp .branch-card-title img {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex-shrink: 0;
}

#branchesApp .branch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

#branchesApp .branch-meta span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f9eef4;
  color: #5c0038;
  font-size: 1.2rem;
  font-weight: 600;
}

#branchesApp .branch-address {
  margin: 0;
  color: #344054;
  font-size: 1.4rem;
  line-height: 1.5;
}

#branchesApp .branch-address strong {
  color: #101828;
  font-weight: 700;
}

#branchesApp .branch-address strong::after {
  content: ":";
  margin-inline-end: 4px;
}

#branchesApp .branches-empty,
#branchesApp .branches-loading {
  padding: 28px 12px;
  text-align: center;
  color: #667085;
  font-size: 1.45rem;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px dashed #d0d5dd;
}

#branchesApp.is-loading .branch-card {
  opacity: 0.45;
}

#branchesApp #c_pagination {
  margin-top: 8px;
  padding-bottom: 8px;
}

#branchesApp #paginationBranch {
  border: 0 !important;
  display: flex;
  justify-content: center;
}

#branchesApp #paginationBranch ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

#branchesApp #paginationBranch .pagination-li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  background: #f2f4f7;
  color: #344054 !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1.3rem;
}

#branchesApp #paginationBranch .pagination-li.current a,
#branchesApp #paginationBranch .pagination-li a:hover {
  background: #870052;
  color: #fff !important;
}

#branchesApp #paginationBranch .pagination-li.hidden {
  display: none !important;
}

.select2-container--open {
  z-index: 10050 !important;
}
.select2-dropdown {
  z-index: 10051 !important;
}

@media (max-width: 767px) {
  #branchesApp {
    padding: 16px 14px 10px;
  }
  #branchesApp .branches-filters {
    grid-template-columns: 1fr;
  }
  #branchesApp .branches-keyword-row {
    grid-template-columns: 1fr;
  }
  #branchesApp .btn.btn-search,
  #branchesApp .btn-search {
    width: 100% !important;
  }
}
