@charset "UTF-8";
.status-icon {
  font-size: 2rem;
}

.delivered {
  color: #008000;
}

.waiting {
  color: #fff200;
}

.transit {
  color: #0000FF;
}

.not-picking {
  color: #ff7300;
}

.return-progress {
  color: #FF0000;
  transform: scaleX(-1);
}

.return-pending {
  color: #FF7F00;
}

.returned {
  color: #FF0000;
}

.registered {
  color: #007bff;
}

.custom-qq {
  color: #007bff;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: #f8f9fa;
  font-family: "Inter", sans-serif;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2rem 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2rem 0;
}

.container-xl {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
}

@media (max-width: 576px) {
  .nav-link {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
  .nav-link i {
    margin-right: 5px;
  }
}
/* Общие стили для заголовков (включая h2) */
h1, .page-title, h2, .section-title, h3, h4, h5 {
  color: #343a40;
  font-weight: bold;
  margin-bottom: 15px;
}

h1, .page-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.5rem;
}
@media (max-width: 992px) {
  h1, .page-title {
    font-size: 2rem;
  }
}
@media (max-width: 768px) {
  h1, .page-title {
    font-size: 1.75rem;
  }
}
@media (max-width: 576px) {
  h1, .page-title {
    font-size: 1.5rem;
  }
}

/* Заголовки второго уровня для внутренних секций */
h2, .section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

/* Класс для заголовков страниц маркетинга */
/* Класс для заголовков секций на маркетинговых страницах */
h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  h5 {
    font-size: 1.3rem;
  }
}
@media (max-width: 576px) {
  h5 {
    font-size: 1.2rem;
  }
}

.text-center a {
  text-decoration: none;
  font-weight: 500;
}

.text-center a.btn-link {
  font-size: 0.95rem;
  color: #6c757d;
}
.text-center a.btn-link:hover {
  color: #343a40;
}

.link-hover {
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease-in-out, text-decoration 0.3s ease-in-out;
}
.link-hover:hover {
  color: #343a40;
  text-decoration: underline;
}

header {
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  height: 80px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1000;
  /* Навигация */
  /* Кнопки авторизации */
  /* Бургер-меню */
  /* Выпадающее меню (анимация) */
  /* ============================= */
  /* Адаптивные стили */
  /* ============================= */
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
}
header .logo svg {
  width: 200px;
  height: auto;
  max-width: 100%;
}
header .logo img {
  width: 200px;
  height: auto;
  max-width: 100%;
}
header .nav-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
header .nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  transition: color 0.3s ease-in-out;
}
header .nav-link {
  font-weight: 500;
  color: #343a40;
  transition: color 0.3s ease-in-out;
}
header .nav-link:hover {
  color: #007bff;
}
header .nav-link.active {
  font-weight: bold;
  color: #007bff;
  border-bottom: 3px solid #007bff;
}
header .auth-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 10px;
  /* Кнопки */
  /* Иконки */
}
header .auth-buttons .btn {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.3s ease-in-out;
}
header .auth-buttons .btn:hover {
  transform: scale(1.05);
}
header .auth-buttons .icon-btn {
  display: none;
}
header .burger-menu {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}
header .mobile-nav {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
header .mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
header .mobile-nav ul li a {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  color: #343a40;
  display: block;
  padding: 10px;
}
header .mobile-nav ul li a:hover {
  background: #007bff;
  color: #ffffff;
}
header .mobile-nav.active {
  display: block;
  transform: translateY(0);
  opacity: 1;
}
@media (max-width: 768px) {
  header .burger-menu {
    display: block;
    position: absolute;
    left: 10px;
  }
  header .nav-container {
    display: none;
  }
  header .logo {
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  header .logo img,
  header .logo svg {
    width: 150px;
  }
  header .auth-buttons {
    position: absolute;
    right: 10px;
    /* Прячем текстовые кнопки */
    /* Показываем иконки */
  }
  header .auth-buttons .btn-text {
    display: none;
  }
  header .auth-buttons .icon-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.3rem;
    color: #ffffff;
    background-color: #007bff;
    border: none;
    transition: all 0.3s ease-in-out;
  }
  header .auth-buttons .icon-btn:hover {
    transform: scale(1.05);
  }
  header .auth-buttons .icon-btn.logout {
    background-color: #dc3545;
  }
}

.footer {
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px 0;
  font-size: 14px;
  color: #343a40;
  position: relative;
  bottom: 0;
  z-index: 10;
}
.footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  text-align: left;
}
@media (max-width: 768px) {
  .footer .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}
.footer .footer-column {
  flex: 1;
  min-width: 280px;
  padding: 10px;
}
.footer .footer-column h4 {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
  color: #212529;
}
@media (max-width: 768px) {
  .footer .footer-column {
    text-align: center;
  }
}
.footer .text-md-end {
  text-align: right;
}
@media (max-width: 768px) {
  .footer .text-md-end {
    text-align: center;
  }
}
.footer .footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 768px) {
  .footer .footer-contacts {
    align-items: center;
    text-align: center;
  }
}
.footer .footer-contacts .contact-group h5 {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #212529;
}
.footer .footer-contacts .contact-group a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #343a40;
  font-weight: bold;
}
.footer .footer-contacts .contact-group a:hover {
  color: #0d6efd;
}
.footer .footer-contacts .contact-group a i {
  font-size: 16px;
}
.footer .footer-description {
  text-align: center;
  font-size: 14px;
  color: #6c757d;
  max-width: 300px;
  margin: 0 auto;
}
.footer .footer-bottom {
  margin-top: 10px;
  border-top: 1px solid #dee2e6;
  padding-top: 10px;
  text-align: center;
  font-size: 12px;
  color: #6c757d;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.footer .footer-bottom .footer-info {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.footer .footer-bottom .footer-links {
  display: flex;
  gap: 4px;
}
.footer .footer-bottom a {
  text-decoration: none;
  color: #6c757d;
  white-space: nowrap;
}
.footer .footer-bottom a:hover {
  color: #0d6efd;
}

.nav-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav-pills .nav-link {
  font-weight: 500;
  padding: 12px 15px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}
.nav-pills .nav-link i {
  font-size: 1.2rem;
}
.nav-pills .nav-link:hover {
  background-color: rgba(248, 249, 250, 0.8);
}
.nav-pills .nav-link.active {
  background-color: #007bff;
  color: #ffffff;
}

.tab-pane {
  padding: 0;
  opacity: 0;
  transform: none;
  transition: opacity 0.3s ease;
}
.tab-pane.active {
  opacity: 1;
  background-color: transparent;
}

@media (max-width: 768px) {
  .nav-pills {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  .nav-link {
    flex-grow: 1;
    text-align: center;
    font-size: 0.9rem;
  }
  .nav-link i {
    margin-right: 5px;
  }
}
button {
  transition: all 0.3s ease-in-out;
}
button:hover {
  transform: scale(1.05);
}

.btn-equal {
  width: 150px;
  flex-shrink: 0;
}
@media (max-width: 576px) {
  .btn-equal {
    width: 100%;
  }
}

.auth-form {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 8px;
}

.form-signin {
  max-width: 500px;
  width: 100%;
  margin: auto;
}

.form-floating {
  position: relative;
}
.form-floating input {
  padding-right: 3rem;
}
.form-floating i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

.password-input {
  padding-right: 3.5rem !important;
  height: 40px;
  line-height: normal;
  border-radius: 8px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: #6c757d;
  background: none;
}
.toggle-password i {
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 24px;
}
.toggle-password:hover {
  color: #343a40;
}

.input-group {
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  width: 100%;
}
.input-group input {
  border-radius: 8px 0 0 8px;
}
.input-group input:only-child {
  border-radius: 8px;
}
.input-group .btn {
  border-radius: 0 8px 8px 0;
}
@media (max-width: 576px) {
  .input-group {
    align-items: stretch;
  }
  .input-group input,
  .input-group .btn {
    border-radius: 8px !important;
    width: 100%;
  }
  .input-group input {
    margin-bottom: 0.5rem;
  }
}

#numberError {
  display: block;
}
#numberError:empty {
  display: none;
}

#phone {
  border-radius: 8px !important;
}

.reputation-badge {
  z-index: 1;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
}

.reputation-new {
  background: #17a2b8;
  color: #ffffff;
}

.reputation-reliable {
  background: #28a745;
  color: #ffffff;
}

.reputation-neutral {
  background: #6c757d;
  color: #ffffff;
}

.reputation-unreliable {
  background: #dc3545;
  color: #ffffff;
}

.card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.table-container {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.price-placeholder {
  visibility: hidden;
}

.modal {
  display: none;
}
.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}
.modal .modal-dialog {
  max-width: 600px;
  width: 100%;
  margin: auto;
}
.modal .modal-content {
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.modal .modal-header {
  border-bottom: none;
  font-size: 1.25rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
  padding: 15px;
}
.modal .modal-footer {
  border-top: none;
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
}
.modal .btn-close {
  font-size: 1rem;
  opacity: 0.8;
  transition: opacity 0.3s ease-in-out;
}
.modal .btn-close:hover {
  opacity: 1;
}
.modal .modal-title {
  font-size: 1.75rem;
  font-weight: 700;
}
@media (max-width: 768px) {
  .modal .modal-dialog {
    max-width: 90%;
  }
  .modal .modal-content {
    padding: 15px;
  }
  .modal .modal-title {
    font-size: 1.3rem;
  }
  .modal .modal-body {
    max-height: 60vh;
    padding: 10px;
  }
  .modal .modal-footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .modal .btn {
    width: 100%;
  }
}
@media (max-width: 576px) {
  .modal .modal-dialog {
    max-width: 95%;
  }
  .modal .modal-title {
    font-size: 1.1rem;
  }
  .modal .modal-body {
    max-height: 55vh;
  }
}

.cookie-modal {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  transition: all 0.4s ease-in-out;
  background: #ffffff;
  padding: 20px 26px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 420px;
  min-width: 280px;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  font-size: 16px;
  text-align: center;
  word-wrap: break-word;
  line-height: 1.4;
  transition: opacity 0.3s ease-in-out;
}
.cookie-modal.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}
.cookie-modal p {
  font-size: 15px;
  color: #343a40;
  margin: 0 0 12px 0;
  max-width: 380px;
}
.cookie-modal a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
}
.cookie-modal a:hover {
  transform: scale(1.05);
}
.cookie-modal .cookie-buttons {
  display: flex;
  justify-content: center;
  width: 100%;
}
.cookie-modal .cookie-buttons .btn {
  padding: 8px 14px;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  width: 60%;
  max-width: 220px;
  text-align: center;
  transition: all 0.3s ease-in-out;
}
.cookie-modal .cookie-buttons .btn.btn-primary {
  background-color: #007bff;
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 5px;
  text-align: center;
  display: inline-block;
  transition: background, border-color, filter 0.3s ease-in-out;
}
.cookie-modal .cookie-buttons .btn.btn-primary:hover {
  background-color: rgb(0, 98.4, 204);
  border-color: rgb(0, 86.1, 178.5);
  filter: brightness(90%);
}

.track-refresh-countdown {
  display: block;
  width: 100%;
  max-width: 16rem;
  text-align: right;
  word-break: break-word;
  hyphens: auto;
}

@media (max-width: 576px) {
  .cookie-modal {
    width: 90%;
    max-width: 320px;
  }
  .cookie-buttons {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .cookie-buttons .btn {
    width: 100%;
    max-width: 240px;
  }
}
.timeline {
  position: relative;
  margin-left: 0.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--bs-border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -0.9rem;
  top: 0.35rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: var(--bs-secondary);
}

.timeline-item-current .timeline-marker {
  background-color: var(--bs-primary);
}
.timeline-item-current .timeline-status {
  color: var(--bs-primary);
  font-weight: 600;
}

.timeline-status {
  font-weight: 500;
}

.timeline-details {
  margin-top: 0.25rem;
  line-height: 1.4;
}

.text-danger {
  margin-top: 0.5rem;
  display: block;
  font-size: 0.875rem;
}
.text-danger.small {
  font-size: 0.875rem;
  margin-top: 5px;
}

.alert,
.alert-danger {
  padding: 10px;
  font-size: 0.9rem;
  border-radius: 8px;
}

#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.progress-popup {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1250;
  background: #ffffff;
  color: #1d1d1f;
  padding: 12px 16px;
  border-radius: 12px;
  width: fit-content;
  min-width: 220px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  animation: fadeInUp 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}

.progress-track {
  height: 6px;
  background: #e4e9f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #00b8ff);
  border-radius: 4px;
  transition: width 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.offcanvas {
  max-width: 250px;
}

.offcanvas-title {
  font-size: 1.25rem;
  font-weight: bold;
}

.menu-toggle {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 0 25px 25px 0;
  background-color: #007bff;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 1050;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: 0.3s 0.3s ease-in-out;
}
.menu-toggle:hover {
  background-color: rgb(0, 98.4, 204);
  width: 50px;
}

@media (max-width: 768px) {
  .col-md-4 {
    display: none;
  }
}
@media (min-width: 768px) {
  .sticky-sidebar {
    position: sticky;
    top: 1rem;
  }
}
.limit-warning {
  font-size: 18px;
  font-weight: bold;
  color: #0d6efd;
  background-color: rgb(215.3278688525, 231.2295081967, 254.6721311475);
  padding: 12px;
  border: 2px solid #0d6efd;
  border-radius: 8px;
  text-align: center;
  margin-top: 15px;
  transition: fadeIn 0.5s ease-in-out;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  .limit-warning {
    font-size: 16px;
    padding: 10px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* --- Стили для кнопки обновления --- */
.history-refresh-btn {
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #007bff;
  padding: 12px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  /* Эффект при наведении */
  /* Эффект нажатия */
}
.history-refresh-btn:hover {
  transform: rotate(360deg) scale(1.1);
  background: rgba(0, 123, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.history-refresh-btn:active {
  transform: scale(0.95);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.history-refresh-btn i {
  font-size: 1.6rem;
}

/* Фильтр и форма */
.history-filters {
  background: #ffffff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.history-filters .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.history-filters .filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.history-filters .filter-item label {
  font-weight: bold;
  color: #343a40;
}
.history-filters .filter-item .form-select {
  min-width: 150px;
}
.history-filters .submit-btn .btn {
  font-size: 1rem;
  font-weight: bold;
  padding: 10px 15px;
  transition: all 0.3s ease-in-out;
}
.history-filters .submit-btn .btn:hover {
  transform: scale(1.05);
}

/* === Улучшенные стили для чекбоксов === */
.checkbox-column {
  text-align: center;
  width: 50px;
}
.checkbox-column input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #007bff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.checkbox-column input[type=checkbox]:hover {
  border-color: rgb(0, 110.7, 229.5);
}
.checkbox-column input[type=checkbox]:checked {
  background: #007bff;
  border-color: #007bff;
  position: relative;
}
.checkbox-column input[type=checkbox]:checked::after {
  content: "\f26b";
  font-family: "bootstrap-icons";
  font-size: 18px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Центрируем чекбоксы в таблице === */
.history-table th.checkbox-column,
.history-table td.checkbox-column {
  text-align: center;
  vertical-align: middle;
}

/* Кнопки выделения */
.history-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
  gap: 6px;
  /* Кнопка "Выделить все" */
  /* Кнопка "Удалить выделенное" */
}
.history-actions .btn {
  flex: 1;
  max-width: 150px;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.3s ease-in-out;
}
.history-actions .btn i {
  font-size: 1rem;
}
.history-actions #selectAllBtn {
  background: #007bff;
  color: #ffffff;
  border: none;
  font-weight: bold;
}
.history-actions #selectAllBtn:hover {
  background: rgb(0, 110.7, 229.5);
}
.history-actions #selectAllBtn:active {
  transform: scale(0.95);
}
.history-actions #selectAllBtn i {
  font-size: 1.2rem;
}
.history-actions #deleteSelectedBtn {
  background: #dc3545;
  color: #ffffff;
  border: none;
  cursor: not-allowed;
  transition: all 0.3s ease-in-out;
}
.history-actions #deleteSelectedBtn:hover {
  background: rgb(209.4151898734, 36.2848101266, 52.8721518987);
}
.history-actions #deleteSelectedBtn:active {
  transform: scale(0.95);
}
.history-actions #deleteSelectedBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.history-actions #deleteSelectedBtn.active {
  opacity: 1;
  cursor: pointer;
}
.history-actions #deleteSelectedBtn.active:hover {
  background: rgb(197.7810126582, 34.2689873418, 49.9348101266);
  transform: scale(1.05);
}

.history-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  /* Добавляем анимацию появления строк истории */
}
.history-table thead {
  background: #007bff;
  color: #ffffff;
}
.history-table th, .history-table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #f8f9fa;
}
.history-table th:nth-child(2),
.history-table td:nth-child(2) {
  text-align: left;
}
.history-table tbody tr {
  animation: fadeSlideIn 0.5s ease forwards;
}
.history-table tbody tr:hover {
  background: rgba(0, 123, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.history-table .checkbox-column {
  width: 40px;
}
.history-table button {
  border: none;
  background: none;
  color: #007bff;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
}
.history-table button:hover {
  text-decoration: underline;
  color: rgb(0, 104.55, 216.75);
  transform: scale(1.1);
}

.customer-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 0.25rem;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}
.customer-icon:hover {
  color: rgb(0, 110.7, 229.5);
  transform: scale(1.1);
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
}
.pagination .page-item {
  margin: 0;
}
.pagination .page-item .page-link,
.pagination .page-item .page-link-current {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  font-weight: bold;
  color: #007bff;
  background: #ffffff;
  border: 1px solid #007bff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}
.pagination .page-item .page-link:hover,
.pagination .page-item .page-link-current:hover {
  background: rgb(51, 149.4, 255);
  color: #ffffff;
  border-color: rgb(12.75, 129.6, 255);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
  transform: scale(1.08);
}
.pagination .page-item.active .page-link,
.pagination .page-item .page-link-current {
  background: rgb(0, 110.7, 229.5);
  color: #ffffff;
  border-color: rgb(0, 104.55, 216.75);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.35);
  cursor: default;
  transform: none;
}
.pagination .page-item .page-link-current {
  pointer-events: none;
}
.pagination .page-item .page-link-current:hover {
  background: rgb(0, 110.7, 229.5);
  color: #ffffff;
  border-color: rgb(0, 104.55, 216.75);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.35);
  transform: none;
}
.pagination .page-item.disabled .page-link {
  color: #6c757d;
  background: #f8f9fa;
  border-color: #f8f9fa;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}
@media (max-width: 576px) {
  .pagination {
    gap: 0.35rem;
    padding: 0 0.5rem;
  }
  .pagination .page-item .page-link {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem;
}

.gap-2 {
  gap: 0.5rem;
}

.btn-outline-primary {
  border-color: #0d6efd;
  color: #0d6efd;
}
.btn-outline-primary:hover {
  background-color: #0d6efd;
  color: white;
}

/* Кнопки выбора количества треков */
.size-btn {
  padding: 8px 15px;
  font-size: 0.9rem;
  border-radius: 8px;
  min-width: 50px;
}
.size-btn.active {
  background-color: rgb(216.75, 235.2, 255);
  color: rgb(0, 86.1, 178.5);
  border-color: rgb(153, 202.2, 255);
}
.size-btn:hover {
  background-color: rgb(229.5, 241.8, 255);
  border-color: #007bff;
}

@media (max-width: 576px) {
  .history-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .history-filters .row {
    flex-direction: column;
    align-items: stretch;
  }
  .history-actions {
    flex-direction: row;
    justify-content: flex-start;
    gap: 5px;
  }
  .history-actions .btn {
    font-size: 0.85rem;
    padding: 5px 10px;
    max-width: 120px;
  }
  .history-controls {
    /* Для группы выбора размера элементов оставляем горизонтальное
       расположение кнопок на мобильных устройствах */
  }
  .history-controls .filter-group {
    flex-direction: column;
    align-items: stretch;
  }
  .history-controls .filter-group button,
  .history-controls .filter-group select {
    width: 100%;
  }
  .history-controls .size-controls {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .history-controls .size-controls button {
    width: auto;
  }
  .table-responsive {
    overflow-x: auto;
  }
}
/* === Отображение статуса посылки и номера === */
.parcel-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #17a2b8;
  padding: 2px 6px;
  border-radius: 8px;
}

/* Стили для номера посылки */
.track-number {
  font-weight: 600;
  color: #343a40;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}
.track-number:hover {
  color: #007bff;
}

/* Анимация появления строк в таблице */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* маленькие флаги-индикаторы: не расширяют строку */
.small-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  font-size: 16px; /* чтобы иконка стала 16px */
  line-height: 1;
}

/* колонка чекбокса — фиксированная ширина */
.history-table .checkbox-column {
  width: 44px; /* под кастомный чекбокс */
  white-space: nowrap;
}

/* ячейка номера: иконка статуса + номер в ряд без скачков */
.history-table .status-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 0.25rem;
}

/* кнопки-линки внутри таблицы — без лишних отступов и без переносов номера */
.history-table .btn.btn-link.parcel-number {
  padding: 0;
  white-space: nowrap;
}

/* имя покупателя — не разрывать, телефон ниже — нормально переносится */
.history-table td .customer-icon {
  padding: 0;
  white-space: nowrap;
}

/* на узких экранах разрешаем перенос ФИО, но индикаторы останутся фикс. ширины */
@media (max-width: 576px) {
  .history-table td .customer-icon {
    white-space: normal;
  }
}
.hidden {
  display: none !important;
}

.tg-settings-content {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.tg-settings-content.collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}
.tg-settings-content.expanded {
  max-height: none;
  opacity: 1;
}

.custom-template-fields textarea {
  min-height: 4rem;
  resize: vertical;
}

.template-toggle-group .btn {
  padding: 0.25rem 0.75rem;
}

.store-id {
  text-align: center;
  vertical-align: middle;
}

.legal-container {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto;
}
.legal-container .page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #343a40;
}
.legal-container .legal-date {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.legal-container .legal-section {
  margin-bottom: 1.5rem;
}
.legal-container .legal-section .section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #343a40;
  border-left: 4px solid #007bff;
  padding-left: 0.5rem;
}
.legal-container .legal-section p,
.legal-container .legal-section li {
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.legal-container .legal-section ul {
  padding-left: 1.5rem;
  list-style: disc outside;
}
.legal-container .legal-note {
  margin-top: 2rem;
  padding: 1rem;
  font-size: 0.9rem;
  background-color: #f8f9fa;
  border-left: 4px solid #ffc107;
}
.legal-container .legal-note strong {
  color: #dc3545;
}

/* Основные стили для всего контейнера */
.container {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Стили для карточек */
.custom-card {
  border-radius: 10px;
  padding: 20px;
  background-color: #f8f9fa;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}
.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}
.custom-card .card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #343a40;
  text-align: center;
}
.custom-card .card-title .metric-icon {
  margin-right: 8px;
  font-size: 1.3rem;
  color: inherit;
}
.custom-card .card-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #007bff;
  text-align: center;
}
.custom-card.bg-primary .card-title,
.custom-card.bg-primary .card-text, .custom-card.bg-success .card-title,
.custom-card.bg-success .card-text, .custom-card.bg-warning .card-title,
.custom-card.bg-warning .card-text, .custom-card.bg-info .card-title,
.custom-card.bg-info .card-text, .custom-card.bg-secondary .card-title,
.custom-card.bg-secondary .card-text, .custom-card.bg-dark .card-title,
.custom-card.bg-dark .card-text, .custom-card.bg-danger .card-title,
.custom-card.bg-danger .card-text {
  color: #ffffff;
}
.custom-card.bg-primary i, .custom-card.bg-success i, .custom-card.bg-warning i, .custom-card.bg-info i, .custom-card.bg-secondary i, .custom-card.bg-dark i, .custom-card.bg-danger i {
  color: #ffffff;
}

/* Стили для элементов списка */
.custom-list-item {
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 15px;
  color: #343a40;
  font-size: 1.1rem;
  transition: all 0.3s ease-in-out;
}
.custom-list-item:hover {
  background-color: #f8f9fa;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.custom-list-item i {
  margin-right: 10px;
  color: #007bff;
}

@media (max-width: 768px) {
  .custom-card {
    margin-bottom: 30px;
  }
}
body.loading {
  cursor: wait;
  opacity: 0.6;
  pointer-events: none;
  overflow: hidden;
}

.store-statistics-content {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}
.store-statistics-content.collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0 !important;
  margin: 0 !important;
}
.store-statistics-content.expanded {
  max-height: 1000px;
  opacity: 1;
}

.chart-container {
  position: relative;
  height: 300px;
}

.chart-wrapper {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.chart-wrapper h5 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 15px;
}
.chart-wrapper canvas {
  flex-grow: 1;
}

.no-data-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0.6;
}

.tariff-features li {
  margin-bottom: 0.75rem;
}

.price-yearly {
  color: inherit;
}

.discount-label {
  color: #28a745;
  font-weight: 500;
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

.recommended-label {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #0d6efd;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 8px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
  padding: 1rem;
  background-color: #fff;
}

.faq-question {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
  will-change: max-height, opacity, margin-top;
}

.faq-item.open .faq-answer {
  margin-top: 0.5rem;
  opacity: 1;
}

.faq-toggle-icon {
  transition: transform 0.3s;
}

@media (max-width: 576px) {
  .faq-nav {
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
  }
}

@media (max-width: 576px) {
  .faq-item {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
.about-hero {
  background-color: #f8f9fa;
  padding-top: 4rem;
  padding-bottom: 4rem;
  text-align: center;
}
.about-hero .page-title {
  font-weight: 700;
}
.about-hero p {
  font-size: 1.25rem;
  color: #6c757d;
}

.about-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.about-section--light {
  background-color: #f8f9fa;
}
.about-section--white {
  background-color: #ffffff;
}
.about-section--dark {
  background-color: #343a40;
  color: #ffffff;
}
.about-section .section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.about-section p {
  font-size: 1rem;
  line-height: 1.6;
}
.about-section img {
  max-height: 280px;
}

.about-quote {
  border-top: 1px solid rgb(218.95, 224.1, 229.25);
  padding-top: 3rem;
  margin-top: 3rem;
  text-align: center;
}
.about-quote .blockquote {
  font-size: 1.25rem;
  font-style: italic;
}
.about-quote .blockquote-footer {
  color: #6c757d;
  font-size: 0.95rem;
}

.testimonial-large-panel {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.founder-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
  position: relative;
}

.speech-bubble {
  position: relative;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  max-width: 360px;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Хвостик снизу по центру */
.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 10px 0 10px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

/* Контур хвостика */
.speech-bubble::before {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 12px 0 12px;
  border-style: solid;
  border-color: #ddd transparent transparent transparent;
}

/*# sourceMappingURL=style.css.map */
