/* AutoService24 R006.1 - scoped, responsive Laravel paginator fix.
 * Laravel's default Tailwind paginator emits w-5/h-5 SVGs, but this project
 * intentionally serves hand-written CSS rather than Tailwind utilities.
 * Limit these rules to pagination wrappers; other icons, SVGs, and maps
 * are unaffected. */
.pagination,
.r003-pagination {
  margin-block: 24px 32px;
  max-width: 100%;
  min-width: 0;
}
.pagination nav,
.r003-pagination nav {
  display: block;
  max-width: 100%;
  width: 100%;
  font-size: 13px;
  line-height: 1.4;
}
/* Large-screen paginator: result range + compact numbered pages. */
.pagination nav > div:first-child,
.r003-pagination nav > div:first-child {
  display: none;
}
.pagination nav > div:last-child,
.r003-pagination nav > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  width: 100%;
  min-width: 0;
}
.pagination nav > div:last-child > div:first-child p,
.r003-pagination nav > div:last-child > div:first-child p {
  margin: 0;
  color: #596e84;
  font-size: 12px;
}
.pagination nav > div:last-child > div:last-child > span,
.r003-pagination nav > div:last-child > div:last-child > span {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  max-width: 100%;
}
/* Previous / next arrows: explicit dimensions without Tailwind classes. */
.pagination nav svg,
.r003-pagination nav svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex: 0 0 18px !important;
  overflow: visible;
  vertical-align: middle;
}
.pagination nav > div:last-child > div:last-child a,
.pagination nav > div:last-child > div:last-child span[aria-disabled="true"] > span,
.pagination nav > div:last-child > div:last-child span[aria-current="page"] > span,
.r003-pagination nav > div:last-child > div:last-child a,
.r003-pagination nav > div:last-child > div:last-child span[aria-disabled="true"] > span,
.r003-pagination nav > div:last-child > div:last-child span[aria-current="page"] > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 7px 10px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #d6e1ee;
  border-radius: 9px;
  color: #123250;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 2px 9px rgba(8, 29, 54, .05);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.pagination nav > div:last-child > div:last-child a:hover,
.r003-pagination nav > div:last-child > div:last-child a:hover {
  background: #fff4e6;
  border-color: #f59a26;
  color: #a55106;
}
.pagination nav > div:last-child > div:last-child span[aria-current="page"] > span,
.r003-pagination nav > div:last-child > div:last-child span[aria-current="page"] > span {
  background: #f68b26;
  border-color: #f68b26;
  color: white;
}
.pagination nav > div:last-child > div:last-child span[aria-disabled="true"] > span,
.r003-pagination nav > div:last-child > div:last-child span[aria-disabled="true"] > span {
  color: #9aabba;
  background: #f2f5f9;
  box-shadow: none;
}
.r003-pagination nav > div:last-child > div:first-child p {
  color: #bfd1e2;
}
/* Mobile: show the Laravel previous / next pair, hide long page lists. */
@media (max-width: 640px) {
  .pagination nav > div:first-child,
  .r003-pagination nav > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  .pagination nav > div:last-child,
  .r003-pagination nav > div:last-child {
    display: none;
  }
  .pagination nav > div:first-child > a,
  .pagination nav > div:first-child > span,
  .r003-pagination nav > div:first-child > a,
  .r003-pagination nav > div:first-child > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 13px;
    border: 1px solid #d6e1ee;
    border-radius: 10px;
    background: white;
    color: #163656;
    text-align: center;
    font-weight: 800;
  }
  .pagination nav > div:first-child > a,
  .r003-pagination nav > div:first-child > a {
    border-color: #f4a033;
    color: #9a510a;
  }
  .pagination nav > div:first-child > span,
  .r003-pagination nav > div:first-child > span {
    color: #9aabba;
    background: #f2f5f9;
  }
}
