@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --color-bg: #070709;
  --color-text: #e8eaf0;
  --color-sidebar-bg: #0d0d12;
  --color-sidebar-link: #111118;
  --color-sidebar-link-hover: #1a2aff;
  --color-button-bg: #2b44ff;
  --color-button-hover: #4d62ff;
  --color-input-border: #222230;
  --color-input-focus: #2b44ff;
  --color-table-bg: #0f0f16;
  --color-table-header: #1a2aff;
  --color-modal-bg: #0f0f16;
  --color-modal-border-focus: #2b44ff;
  --color-hover-effect: rgba(43, 68, 255, 0.13);
  --sidebar-w: 230px;
  --glow: 0 0 18px rgba(43, 68, 255, 0.45);
  --glow-sm: 0 0 8px rgba(43, 68, 255, 0.3);
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: "Inter", "Segoe UI", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ─── SUBTLE GRID BACKGROUND ─── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(43, 68, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 68, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

a {
  text-decoration: none;
  color: inherit;
}
h2,
h3 {
  margin-bottom: 1rem;
  text-align: center;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 1px;
}

/* ─── LAYOUT ─── */
.layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ─── SIDEBAR ─── */
.sidebar {
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #0d0d14 0%, #0a0a10 100%);
  padding: 1.5rem 0.9rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid rgba(43, 68, 255, 0.15);
  box-shadow:
    4px 0 30px rgba(0, 0, 0, 0.8),
    inset -1px 0 0 rgba(43, 68, 255, 0.08);
  transition: var(--transition);
  scrollbar-width: thin;
  scrollbar-color: rgba(43, 68, 255, 0.3) transparent;
  z-index: 100;
}

.sidebar::-webkit-scrollbar {
  width: 3px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(43, 68, 255, 0.4);
  border-radius: 3px;
}

/* ─── SIDEBAR LOGO ─── */
.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1.2rem 0.5rem 1.5rem;
  position: relative;
}

.sidebar-logo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(43, 68, 255, 0.6),
    transparent
  );
}

.logo-img {
  width: 80px;
  height: 70px;
  border-radius: 14px;
  object-fit: contain;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(43, 68, 255, 0.3));
}
.logo-img:hover {
  transform: rotate(8deg) scale(1.1);
  filter: drop-shadow(0 0 18px rgba(43, 68, 255, 0.7));
}

.logo-text {
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-button-bg);
  letter-spacing: 2px;
  text-align: center;
  margin-top: 0.6rem;
  text-shadow: var(--glow-sm);
}

/* ─── NAV LINKS ─── */
.navbar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1rem;
  background-color: var(--color-sidebar-link);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-family: "Inter", sans-serif;
}

.sidebar a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-button-bg);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transition: transform 0.25s ease;
}

.sidebar a:hover {
  background: linear-gradient(
    90deg,
    rgba(43, 68, 255, 0.18) 0%,
    rgba(43, 68, 255, 0.06) 100%
  );
  border-color: rgba(43, 68, 255, 0.3);
  color: #fff;
  box-shadow:
    var(--glow-sm),
    inset 0 0 20px rgba(43, 68, 255, 0.05);
  transform: translateX(4px);
  text-shadow: 0 0 8px rgba(150, 165, 255, 0.5);
}

.sidebar a:hover::before {
  transform: scaleY(1);
}

.sidebar a:last-child {
  margin-top: auto;
  color: rgba(255, 100, 100, 0.8);
  border-color: rgba(255, 80, 80, 0.1);
}
.sidebar a:last-child:hover {
  background: rgba(255, 60, 60, 0.12);
  border-color: rgba(255, 80, 80, 0.3);
  color: #ff6b6b;
  box-shadow: 0 0 12px rgba(255, 60, 60, 0.25);
}

/* ─── MAIN CONTENT ─── */
.main-content {
  flex: 1;
  padding: 2rem 2.5rem;
  min-width: 0;
  position: relative;
  z-index: 1;
}

/* ─── DATETIME WIDGET ─── */
#datetime-widget {
  position: fixed;
  top: 16px;
  right: 22px;
  z-index: 9999;
  text-align: right;
  font-family: "Inter", sans-serif;
  pointer-events: none;
}
#datetime-widget .time {
  font-family: "Orbitron", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  text-shadow: var(--glow-sm);
  letter-spacing: 1px;
}
#datetime-widget .date {
  font-size: 12px;
  color: #555;
  letter-spacing: 0.5px;
}

/* ─── BUTTONS ─── */
button {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.6rem 1.3rem;
  margin: 0.3rem 0;
  background: linear-gradient(135deg, #2b44ff, #1a2ee0);
  color: #fff;
  border: 1px solid rgba(43, 68, 255, 0.4);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
button:hover::after {
  opacity: 1;
}
button:hover {
  background: linear-gradient(135deg, #4d62ff, #2b44ff);
  box-shadow:
    var(--glow),
    0 4px 15px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}
button:active {
  transform: translateY(0) scale(0.98);
}

#excel {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 0.6rem 1.3rem;
  margin: 0.3rem 0;
  background: linear-gradient(135deg, #1a8d1a, #157015);
  color: #fff;
  border: 1px solid rgba(26, 141, 26, 0.4);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
#excel:hover {
  background: linear-gradient(135deg, #22b022, #1a8d1a);
  box-shadow: 0 0 18px rgba(26, 141, 26, 0.5);
  transform: translateY(-2px);
}

/* ─── INPUTS / SELECTS ─── */
input,
select,
textarea {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  padding: 0.6rem 0.8rem;
  margin: 0.4rem 0;
  background: rgba(13, 13, 20, 0.8);
  border: 1px solid var(--color-input-border);
  border-radius: 8px;
  color: #fff;
  outline: none;
  transition: var(--transition);
  text-align: center;
  width: 51%;
  max-width: 250px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-input-focus);
  box-shadow:
    0 0 0 3px rgba(43, 68, 255, 0.2),
    var(--glow-sm);
  background: rgba(15, 15, 25, 0.95);
}
select option {
  background: #0d0d14;
  color: #fff;
}

/* ─── TABLE ─── */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: var(--color-table-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(43, 68, 255, 0.1);
}
table th,
table td {
  padding: 0.8rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: "Inter", sans-serif;
  font-size: 15px;
}
table thead {
  background: linear-gradient(90deg, #1a2aff, #2b44ff);
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
table tbody tr {
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
table tbody tr:hover {
  background: var(--color-hover-effect);
  transform: scale(1.005);
}

/* ─── MODAL ─── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  z-index: 200000;
  padding: 20px;
  backdrop-filter: blur(6px);
}
/* Когда JS открывает через style.display = "flex" или "block" — оба варианта работают */
.modal[style*="display: block"],
.modal[style*="display:block"],
.modal[style*="display: flex"],
.modal[style*="display:flex"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.modal.hidden {
  display: none !important;
}

.modal-content {
  background: linear-gradient(160deg, #0f0f18, #0d0d14);
  width: 600px;
  max-width: 92%;
  max-height: 85vh;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(43, 68, 255, 0.2);
  box-shadow:
    0 0 0 0 var(--color-modal-border-focus) inset,
    0 24px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.3s ease;
  transition: box-shadow 0.4s ease;
}
.modal-content.show-focus {
  box-shadow: 0 0 30px 6px rgba(43, 68, 255, 0.3) inset;
}
.modal-content label {
  margin-top: 0.8rem;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.login-container {
  background: linear-gradient(160deg, #0f0f18, #0d0d14);
  width: 400px;
  max-width: 100%;
  max-height: 70vh;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(43, 68, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow-y: auto;
  margin: 0 auto;
  position: relative;
  top: 80px;
  animation: modalIn 0.3s ease;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.4rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}
.close:hover {
  color: #fff;
  background: rgba(255, 60, 60, 0.2);
  transform: rotate(90deg);
}

/* ─── PAGINATION ─── */
.pagination {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.2rem;
}

/* ─── FILTERS ─── */
.filters,
.filter {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.2rem 0;
}
.flex_it,
.flext {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
}
.flex_it {
  margin-top: 20px;
}
#expenseForm {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* SPECIFIC WIDTHS */
#expenseReason,
#expenseAmount,
#filterFrom,
#filterTo,
#filterStatus,
#filterClient,
#filterService,
#filterEmployee,
#rangeTo,
#rangeFrom {
  width: 220px;
  margin: 0;
}
#serviceSelect,
#carTypeSelect {
  width: 280px;
  margin: 0;
}
#employeeSelect {
  width: 180px;
  margin: 0;
}
#empStartDate,
#empEndDate {
  width: 130px;
  margin: 0;
}
#searchForm {
  width: 360px;
  margin-right: 20px;
}
#categoryName {
  width: 360px;
  margin-right: 10px;
}
#cardNumber {
  width: 180px;
}
#filterBtn {
  margin: 0;
}
#resetFilters {
  margin-left: 10px;
}

.form-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.second_product {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.payment-part {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
  align-items: center;
}
.part-method {
  width: 150px;
}
.part-amount {
  width: 180px;
}
.margin {
  margin: 15px 0;
}
.top_category {
  margin-bottom: 20px;
}

/* ─── CATALOG ─── */
#catalog,
#check {
  width: 90%;
  margin: 0 auto;
  padding: 40px 0;
}
.top_catalog {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.bottom_catalog {
  flex-direction: column;
  margin: 0 auto;
  margin-top: 40px;
}
.catalog-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.first_top_catalog {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInTop 0.4s ease;
}
.catalog-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.catalog-logo:hover {
  transform: scale(1.05);
}
.catalog-logo img {
  width: 80px;
  border-radius: 16px;
  height: 60px;
  object-fit: contain;
}

/* ─── EMPLOYEE REPORT ─── */
.employee-report {
  margin-top: 40px;
}

/* ─── CASHIER ─── */
.main-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}
.cashier-container {
  background: linear-gradient(160deg, #0d0d14, #0a0a10);
  width: 100%;
  max-width: 600px;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(43, 68, 255, 0.15);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
  animation: slideIn 0.4s ease;
}
.price-display {
  font-family: "Orbitron", sans-serif;
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin: 20px 0;
  color: var(--color-button-bg);
  text-shadow: 0 0 20px rgba(43, 68, 255, 0.5);
}
.change-display {
  text-align: center;
  font-weight: 700;
  height: 24px;
  margin-bottom: 15px;
  color: #27ae60;
  font-size: 18px;
}
.btn-submit {
  width: 100%;
  padding: 1.2rem;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #27ae60, #1e8449);
  border-radius: 10px;
  margin-top: 10px;
  text-transform: uppercase;
}
.btn-submit:hover {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  box-shadow: 0 0 25px rgba(39, 174, 96, 0.45);
}
.cashier-container .form-group {
  width: 100%;
  margin-bottom: 15px;
}
.cashier-container .form-control {
  width: 100% !important;
  max-width: 80% !important;
  height: 40px;
}

/* ─── MISC ─── */
.no-photo-box {
  width: 50px;
  height: 50px;
  background: #fff;
  border: 1px dashed #ccc;
  border-radius: 6px;
  display: inline-block;
  vertical-align: middle;
}
.hidden-setup {
  display: none;
}
.flex_create {
  flex-direction: column;
  margin-left: 10px;
}
.filters_flex {
  flex-direction: column;
}

/* ─── MOBILE HEADER ─── */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: linear-gradient(90deg, #0d0d14, #0f0f1a);
  z-index: 100001;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid rgba(43, 68, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.burger-btn {
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 2px;
}
.burger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-button-bg);
  border-radius: 2px;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.burger-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.burger-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-logo-text {
  margin-left: 14px;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 16px;
  letter-spacing: 2px;
  text-shadow: var(--glow-sm);
}
/* ─── SIDEBAR OVERLAY ─── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 99999;
  backdrop-filter: blur(0px);
  transition:
    background 0.35s,
    backdrop-filter 0.35s;
}
.sidebar-overlay.active {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

/* ─── KEYFRAMES ─── */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInTop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Взрослый слайд — без bounce */
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ─── RESPONSIVE ─── */

/* Medium tablets */
@media (max-width: 1100px) {
  :root {
    --sidebar-w: 200px;
  }
  #datetime-widget .time {
    font-size: 18px;
  }
  .main-content {
    padding: 1.5rem;
  }
  input,
  select,
  textarea {
    max-width: 200px;
  }
  #searchForm {
    width: 300px;
  }
  #categoryName {
    width: 280px;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-w: 180px;
  }
  table th,
  table td {
    padding: 0.6rem 0.5rem;
    font-size: 13px;
  }
  #categoryName {
    width: 240px;
  }
  #employeeSelect,
  #empStartDate,
  #empEndDate {
    width: 150px;
  }
}

/* ─── MOBILE (≤ 768px) ─── */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .layout {
    display: block !important;
  }

  .mobile-header {
    display: flex !important;
  }

  .sidebar {
    position: fixed !important;
    left: -100% !important;
    top: 0;
    bottom: 0;
    width: 82% !important;
    max-width: 300px;
    height: 100vh !important;
    z-index: 150000 !important;
    transition: left 0.35s ease !important;
    padding-top: 75px !important;
    border-right: 1px solid rgba(43, 68, 255, 0.3) !important;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.9) !important;
  }
  .sidebar.active {
    left: 0 !important;
  }
  .sidebar-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(3px) !important;
    z-index: 9998 !important;
    display: none !important;
  }

  .main-content {
    width: 100% !important;
    padding: 80px 14px 24px !important;
  }

  /* Filters stacked */
  .filters,
  .flex_it,
  .filter,
  #expenseForm,
  .filters_flex {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin: 14px 0 !important;
  }
  .flext {
    flex-direction: column !important;
    text-align: center !important;
    margin: 10px 0 !important;
    gap: 10px !important;
  }

  /* All inputs/selects full width on mobile */
  .filters input,
  .filters select,
  .flex_it input,
  .flex_it select,
  .filter input,
  .filter select,
  #expenseForm input,
  #expenseForm select {
    width: 100% !important;
    max-width: 100% !important;
    height: 47px !important;
    margin: 0 !important;
    font-size: 15px !important;
    text-align: left !important;
  }
  input,
  select,
  textarea {
    width: 100% !important;
    max-width: 100% !important;
    height: 47px !important;
  }
  #searchForm,
  #categoryName,
  #expenseReason,
  #expenseAmount,
  #filterFrom,
  #filterTo,
  #filterStatus,
  #filterClient,
  #filterService,
  #filterEmployee,
  #rangeTo,
  #rangeFrom,
  #serviceSelect,
  #carTypeSelect,
  #employeeSelect,
  #empStartDate,
  #empEndDate,
  #cardNumber {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Buttons */
  button,
  #excel {
    width: 100% !important;
    max-width: 100% !important;
    height: 46px !important;
    font-size: 14px !important;
    margin: 4px 0 !important;
    padding: 0 16px !important;
    border-radius: 9px !important;
  }
  #filterBtn,
  #resetFilters {
    width: 100% !important;
    margin: 0 !important;
  }

  .table-responsive {
    border-radius: 0;
  }
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
    width: 100%;
    overflow: auto;
  }
  table thead {
    display: none;
  }
  table tr {
    background: var(--color-table-bg) !important;
    margin-bottom: 14px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(43, 68, 255, 0.12) !important;
    padding: 12px 14px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }
  #btnAddServiceToList {
    width: 70px !important;
  }
  table td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 9px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    font-size: 14px;
    text-align: right !important;
  }
  table td:last-child {
    border-bottom: none !important;
    margin-top: 8px;
  }
  table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #5569ff;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
    flex: 1;
    text-align: left;
  }

  /* Modal */
  .modal-content {
    width: 96% !important;
    padding: 1.4rem !important;
    max-height: 92vh;
    border-radius: 14px !important;
  }
  .modal-content input,
  .modal-content select {
    width: 100% !important;
    max-width: 100% !important;
  }

  #datetime-widget {
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    margin: 8px auto !important;
    text-align: center;
  }

  .form-group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .second_product {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .payment-part {
    flex-direction: column;
    gap: 10px;
  }

  #catalog,
  #check {
    width: 100%;
    padding: 20px 0;
  }
  .top_catalog {
    flex-direction: column;
    align-items: stretch;
  }

  .main-wrapper {
    align-items: flex-start;
    padding-top: 30px;
  }
  .cashier-container {
    padding: 1.2rem;
    max-width: 100%;
    border-radius: 12px;
    background: linear-gradient(160deg, #0d0d14, #0a0a10);
  }
  .price-display {
    font-size: 32px;
  }

  #excel {
    background: linear-gradient(135deg, #1a8d1a, #157015) !important;
  }

  .makewidth {
    width: 100% !important;
    max-width: 100% !important;
  }
  .direction {
    flex-direction: column !important;
  }
  .employee_page {
    width: 100% !important;
    max-width: 100% !important;
  }
  .btn_max {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 16px !important;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

@media (max-width: 380px) {
  .mobile-logo-text {
    font-size: 13px;
    letter-spacing: 1px;
  }
  .main-content {
    padding: 74px 10px 20px !important;
  }
  table tr {
    padding: 10px !important;
  }
  .price-display {
    font-size: 26px;
  }
}
