body {
  font-family: Arial, sans-serif;
  background: #f6f8fa;
  margin: 0;
  padding: 0;
  /*user-select: none;           !* Disable text selection *!*/
  /*-webkit-user-select: none;   !* Safari/Chrome *!*/
  /*-ms-user-select: none;       !* IE/Edge *!*/
  display: flex;
  justify-content: center;
}

/* — Page layout with sidebars and center content — */
.page {
  display: flex;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  padding: 10px;
  align-items: flex-start;
  gap: 10px;
}


:root {
  --sidebar-w: 200px;
  --sidebar-gap: 12px;
}

.sidebar-slot {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
}

.sidebar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sidebar-gap);
  margin-bottom: 200px;
}

.sidebar img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}


.main {
  flex: 1;
  display: flex;
  justify-content: center;
}

.container {
  max-width: 750px;
  margin: 0 auto 40px auto;
  background: white;
  padding: 25px 35px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 25px;
}

select, input {
  width: 100%;
  padding: 10px;
  margin: 8px 0 15px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio-group input[type="radio"] {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

.hemkarlar-workplace-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.hemkarlar-workplace-row #hemkarlar {
  flex: 1;
}

.workplace-inline {
  flex: 1;
}

.workplace-inline .radio-group {
  margin: 8px 0 15px 0;
  flex-wrap: wrap;
}

button {
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.btn-calc {
  background-color: #0077cc;
  color: white;
}

.btn-reset {
  background-color: #ccc;
  color: black;
}

.result {
  background: #eef4ff;
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
}

.deductions {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

.note {
  background: #fdf6e3;
  border-left: 4px solid #f2b600;
  padding: 10px;
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.5;
}

.muted {
  color: #666;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

/* --- Ad containers --- */
.ad-vertical {
  display: block;
  width: 160px;
  min-width: 160px;
  min-height: 600px;
  height: 600px;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f8f8;
}

.ad-inline {
  display: block;
  min-width: 160px;
  width: 100%;
  margin: 15px 0;
}

#mobile-top-ad-container {
  display: none;
}

/* --- Mobile adjustments: hide sidebars, show mobile ads --- */
@media (max-width: 992px) {
  .sidebar {
    display: none;
  }

  .sidebar-slot {
    display: none;
  }


  /* hide vertical ads on smaller screens */
  .page {
    padding: 10px 8px;
    max-width: 900px;
  }

  .container {
    margin-top: 20px;
    padding: 20px;
  }

  .mobile-ad-top, .mobile-ad-bottom {
    display: block;
  }

  #mobile-top-ad-container {
    display: block;
    width: 100%;
    margin: 12px 0;
  }

  #mobile-top-ad-container #ad-link {
    display: block;
    width: 100%;
  }

  #mobile-top-ad-container #ad-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
  }
}

/* hide mobile-specific ad blocks on desktop */
.mobile-ad-top, .mobile-ad-bottom {
  display: none;
}

@media (max-width: 600px) {
  .container {
    padding: 16px;
  }

  .hemkarlar-workplace-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
}

.banner-img {
  width: 100%;
  height: 160px; /* web üçün */
  object-fit: cover;
  display: block;
}

.banner-middle {
  display: none;
  width: 100%;
  margin: 20px 0;
}

.banner-middle.show {
  display: block;
}

/* mobil */
@media (max-width: 768px) {
  .banner-img {
    height: auto;
    object-fit: contain;
  }
}
.discount-box { position: relative; }

.discount-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  z-index: 50;
  max-height: 320px;
  overflow: auto;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.discount-group { margin-bottom: 10px; }

.discount-title {
  font-weight: bold;
  margin: 8px 0 6px 0;
  color: #333;
  font-size: 13px;
}

.discount-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
}

.discount-item input { margin-top: 2px; width: auto; }

.discount-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}
#discountBtn.salary-select {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
}