  * {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important; 
    -webkit-focus-ring-color: rgba(255, 255, 255, 0) !important; 
    outline: none !important;
  }
  html {
    scroll-behavior: smooth;
  }
  #install-prompt {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    padding: 4px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  }
  
  .install-prompt-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
  }
  
  .install-prompt-text {
    margin: 0;
    font-size: 14px;
    text-align: center;
  }
  
  .install-prompt-button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #479018;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
  }
  
  #install-prompt.show {
    opacity: 1;
    transform: translateY(0);
  }
  #hide-install-prompt{
    color: #525252;
    font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    padding: 8px;
  }
  
  .brokersContainer, .brokers-list {
    display: flex; 
    font: 400 14px / 25px "Roboto", sans-serif;
    color: #a0a1b3;
    padding: 8px 20px;
    flex-direction: row; 
  }
  
  .brokers-list {
    display: grid;
    grid-template-columns: repeat(5, 32px); 
    gap: 10px; 
  }

  @media (max-width: 768px) {
    .brokers-list {
      grid-template-columns: repeat(5, 40px);
    }
    .onlineBrokerImg{
      width: 40px;
      height: 40px;
    }
  }
  
  .brokerIcon {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .onlineBrokerImg {
    object-fit: cover;
    width: 32px;
    height: 32px; 
    border-radius: 50%; 
  }
  
  .captchaInput{
    width: 95%!important;
  }
  .captchaContainer{
    display: flex;
    align-items: center;
  }
  #cap_img_{
    padding: 0px;
    margin: 0px;
    height: 48px;
    padding-top: 4px;
  }

  .toggle_eye{
    right: 10px;
    top: 35%; 
    transform: translateY(-50%);
  }

  @media only screen and (max-width: 600px) {
    .liveEditButton {
        width: 100% !important;
        margin-bottom: 10px !important;
        margin-left: 0px !important;
    }
  }

  .uk-text-bold.uk-text-primary{
    word-wrap: break-word;
  }

  .user_action_icon i.material-icons {
    line-height: 1;
    vertical-align: middle;
  }

  
  .broker-card{
    background-color: #fff!important;
  }

  .home_heading{
    color: #444!important;
  }

  .sub-heading-home{
    color: #727272 !important;
  }

  /* Floating Action Menu */
  .fab-container {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 1000;
  }
  .fab {
    width: 56px;
    height: 56px;
    background: #479018;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .fab i {
      color: white;
  }

  @media (hover: hover) {
      .fab:hover {
          transform: scale(1.1);
      }
  }

  .fab.fab-btn-active {
      transform: scale(1.1);
  }

  .fab-menu {
      list-style: none;
      padding: 0;
      margin: 0;
      position: absolute;
      bottom: 70px;
      right: 0;
      display: none;
  }
  .fab-menu li {
      margin-bottom: 10px;
  }
  .fab-action {
      display: flex;
      align-items: center;
      gap: 10px;
      background: white;
      padding: 10px 15px;
      border-radius: 8px;
      box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
      color: black;
      text-decoration: none;
      transition: all 0.3s ease-in-out;
      white-space: nowrap;
      min-width: 110px;
  }
  .fab-action:hover {
      background: #f1f1f1;
      color: #479018;
  }
  .fab-action:hover i {
    color: #479018;
  } 
  .fab-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.4);
      display: none;
      z-index: 999;
  }

  .fab,
  .fab i {
      user-select: none; 
      -webkit-user-select: none; 
      -moz-user-select: none; 
      -ms-user-select: none;
  }

  .tag-icon {
    position: relative; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mini-icon {
      position: absolute;
      bottom: -4px; 
      right: -3px; 
      width: 16px;  
      height: 16px;
      background: white;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
  }

  .mini-icon i {
      font-size: 14px!important;
      font-weight: 600;
  }


  @media (max-width: 768px) {
    body.no-scroll {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
    }
    .fab-action{
      white-space: wrap;
    }
  
  }
  
  #fab-search-client-modal.uk-modal,
  #fab-search-ref-modal.uk-modal{
    background: rgba(0, 0, 0, 0.5) !important;
  }

  #fab-search-client-modal .uk-modal-dialog,
  #fab-search-ref-modal .uk-modal-dialog{
    padding: 24px !important;
    border-radius: 2px !important;
  }

  /* Mobile Redesign */

  /* .uk-modal-dialog {
    top: 50%   !important;
    margin-top: 0   !important;
    transform: translateY(-50%) !important;
    -webkit-transform: translateY(-50%) !important;
  } */
  
  .btn-holder{
    display: flex;
    gap: 8px;
  }

  #google-sync-expired-warning{
    margin-bottom: 8px;
  }

  .mt-12{
    margin-top: 12px;
  }

  .filtersForm.filters-hidden .filters,
  .filtersForm.filters-hidden {
    display: none;
  }

  .named_tab.uk-hidden{
    display: block !important;
    visibility: visible!important;
  }

  /* request search */
  .search-bar-container {
    display: flex;
    align-items: center;
    gap: 8px; 
  }
  
  .search-input-flex {
    flex-grow: 0; 
    min-width: 400px; 
  }

  @media (max-width: 767px) {
    .search-input-flex {
      flex-grow: 1; 
      min-width: 0; 
    }
  }
  
  .search-input-flex .md-input {
      width: 100%; 
      margin-bottom: 0; 
  }
  
  .search-buttons-flex {
    display: flex; 
    flex-shrink: 0; 
    gap: 8px; 
  }

  
/* ============================================= */
/* Common Mobile Card Base Styles                */
/* ============================================= */
.mobile-ad-card,
.mobile-client-card {
  display: flex;
  background: #fff;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
}
.mobile-ad-card{
  flex-wrap:wrap;
}
.mobile-ad-card:active,
.mobile-client-card:active,
.mobile-ad-card.card-touch-active,
.mobile-client-card.card-touch-active,
.mobile-inspection-card.card-touch-active { 
  transform: scale(0.98);
}

.mobile-hidden-actions {
  display: none;
}

/* ============================================= */
/* Common Action Trigger Button Style            */
/* ============================================= */
.card-action-trigger {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.card-action-trigger:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.card-action-trigger i {
  font-size: 28px;
  z-index: 2;
}
.card-action-trigger.clicked::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1;
  transform-origin: center;
}
.card-action-trigger.clicked.clicked-active::after {
  transform: scale(1.6);
  opacity: 1;
}

/* ============================================= */
/* Action Panel Core Styles                      */
/* ============================================= */
#action-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  touch-action: none;
}
#action-overlay.visible {
  opacity: 1;
}

#action-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 80vh;
  background: #fff;
  z-index: 3000;
  border-radius: 16px 16px 0 0;
  display: none;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  overscroll-behavior: contain;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}
#action-panel.active {
  transform: translateY(0);
}
#action-panel.dragging {
  transition: none;
}

.action-header {
  background: #fff;
  padding: 15px;
  border-bottom: 1px solid #ddd !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  touch-action: none;
  border-radius: 16px 16px 0 0;
  z-index: 1;
  cursor: grab;
  transition: background-color 0.2s ease;
}
.action-header:hover {
  background-color: #f8f8f8;
}
.action-header.header-active {
  background-color: #f0f0f0;
  cursor: grabbing;
}

.action-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  margin-right: 10px;
}
.action-ad-name,
.action-client-name {
  font-weight: 500;
  color: #444;
}

.action-close {
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.1s ease;
  padding: 5px;
  line-height: 1;
  flex-shrink: 0;
}
.action-close:active {
  transform: scale(0.9);
}

.action-content {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background-color: white;
}
.action-buttons {
  padding: 10px;
  gap: 10px;
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
  align-items: stretch;
}

.action-button {
  width: calc(50% - 5px);
  background: #f8f8f8;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  transition: all 0.15s ease-in-out;
  flex: 1 1 calc(50% - 10px);
  gap: 10px;
  min-height: 50px;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
.action-button:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.action-button:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.6;
}
.action-button:disabled:hover {
  transform: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.action-icon {
  font-size: 28px;
  color: #333;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.action-label {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  text-align: left;
  line-height: 1.3;
  flex-grow: 1;
}

/* ============================================= */
/* Common Badge/Bubble Styles                    */
/* ============================================= */
.icon-with-badge {
  position: relative;
  display: inline-block;
}
.num-bubble {
  position: absolute;
  top: -2px;
  right: -10px;
  background: #4299e1;
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1;
  padding: 1px 3px;
  font-weight: 600;
  min-width: 14px;
  text-align: center;
  z-index: 1;
}
.hidden-tooltip-data {
  display: none;
}

/* ============================================= */
/* Global Styles                                 */
/* ============================================= */
body.modal-open {
  overflow: hidden!important;
  touch-action: none;   
}

/* ============================================= */
/* Responsive Adjustments for Shared Elements    */
/* ============================================= */
@media (max-width: 360px) {
  .mobile-ad-card,
  .mobile-client-card {
    padding: 8px;
    margin-bottom: 10px;
  }
  .action-button {
    padding: 8px 5px;
    width: calc(50% - 4px);
    flex-basis: calc(50% - 8px);
    gap: 5px;
    min-height: 45px;
  }
  .action-icon {
    font-size: 22px;
  }
  .action-label {
    font-size: 12px;
  }
  .num-bubble {
    font-size: 10px;
    padding: 1px 3px;
    min-width: 12px;
    top: -1px;
    right: -8px;
  }
  .action-title {
    font-size: 16px;
  }
  .card-action-trigger {
    width: 32px;
    height: 32px;
  }
  .card-action-trigger i {
    font-size: 24px;
  }
}

.desktop-ad-info-box {
  display: flex;
  align-items: center; 
  gap: 10px;
  min-width: 250px; 
}

.desktop-ad-info-box .ad-thumb {
  width: 60px; 
  height: 45px; 
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  background-color: #e0e0e0;
}

.desktop-ad-info-box .ad-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-ad-info-box .ad-main-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  justify-content:  center; 
  height: 60px; 
}

.desktop-ad-info-box .ad-title-desktop {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.desktop-ad-info-box .ad-title-desktop a {
    color: inherit;
    text-decoration: none;
}
.desktop-ad-info-box .ad-title-desktop a:hover {
    text-decoration: underline;
}

.desktop-ad-info-box .ad-meta-desktop {
  display: flex;
  flex-wrap: wrap; 
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #666;
}

.desktop-ad-info-box .ad-price-desktop {
  font-weight: bold;
  color: #111;
  font-size: 12px;
  white-space: nowrap;
}
.desktop-ad-info-box .ad-price-desktop small {
    font-weight: normal;
}

.desktop-ad-info-box .ad-broker-badge-desktop .uk-badge {
  font-size: 10px;
  padding: 1px 4px;
  line-height: 1.2;
  font-weight: 500;
}

.desktop-ad-info-box .ad-id-desktop a {
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}
.desktop-ad-info-box .ad-id-desktop a:hover {
    text-decoration: underline;
}

.desktop-ad-info-box .view-ad-btn-desktop i {
    font-size: 16px;
    color: #555;
    vertical-align: middle;
}
.desktop-ad-info-box .view-ad-btn-desktop {
    line-height: 1; 
}


.desktop-ad-info-box .lang-flag-desktop {
   display: flex;
   align-items: center;
}
.desktop-ad-info-box .lang-flag-desktop img {
    width: 16px;
    height: auto;
    vertical-align: middle;
}
.desktop-ad-info-box .lang-flag-unknown-desktop {
    font-size: 10px;
    color: #999;
}

/* -----------------------------------------
   Inspections: Estates grid
----------------------------------------- */
.insp-estates-holder {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}
.insp-estates-holder:last-child {
  margin-bottom: 0;
}

/* -----------------------------------------
   Client “pill” box
----------------------------------------- */
.client-box {
  display: flex;
  align-items: center;
}

.client-box-logo {
  flex-shrink: 0;
}
.client-box-logo img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}



.client-box-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.client-info-top {
  display: flex;
  align-items: flex-end;
}

.client-info-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-box-sync i {
  font-size: 18px;
}

.client-id {
  font-size: 12px;
}

@media (min-width: 768px) {
  .client-info-bottom {
    justify-content: start;
  }
  .client-box-logo {
    margin-right: 10px;
  }
}
/* -----------------------------------------
   Executor “pill” box
----------------------------------------- */
.executor-info {
  display: flex;
  align-items: center;
  width: fit-content;
  height: fit-content;
  border-radius: 9999px;
  color: white;
}

.executor-info:not(:last-child) {
  margin-bottom: 6px; /* adjust spacing as you like */
}

.executor-picture {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 50%;
  padding: 3px;
  margin-right: 2px;
  
}

.executor-name {
  color: white;
  padding-right: 10px;
  font-size: 12px;
  line-height: normal;
}

/* -----------------------------------------
   Formatted inspection date
----------------------------------------- */
.insp-date-formatted {
  display: flex;
  align-items: center;
  font-size: 12px;
  justify-content: start;
}

.insp-date-day {
  font-weight: bold;
  font-size: 18px;
  min-width: 30px;
  text-align: center;
}

.insp-date-today {
  background-color: #65b731;
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-right: 5px;
}

.insp-date-month,
.insp-date-weekday {
  font-size: 11px;
  text-transform: uppercase;
}

.insp-date-month {
  color: #555;
}

.insp-date-weekday {
  margin-left: 3px;
  color: #888;
}

/* -----------------------------------------
   Stacked badges (status/type)
----------------------------------------- */
.stacked-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* -----------------------------------------
   Mobile ad‐info box
----------------------------------------- */
.request-ad-info {
  display: flex;
  align-items: center;
  background-color: #f7f7f7;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 5px 5px;
  gap: 5px;
  overflow: hidden;
  width: fit-content;
}

.ad-thumb {
  width: 39px;
  height: 34px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
  background-color: #e0e0e0;
}
.ad-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ad-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  line-height: 1.2;
  min-width: 0;
  flex-grow: 1;
  padding-left: 5px;
}

.ad-id-link {
  font-size: 11px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
  display: block;
}
.ad-id-link:hover {
  text-decoration: underline;
}


    /* Translate Check Desktop */
    .uk-table th, .translate_check.uk-table td {
      vertical-align: middle;
      font-size: 1em; 
      padding: 10px 12px;
  }
   .translate_check.uk-table th {
       background-color: #f8f8f8;
       font-weight: 600;
       color: #444;
   }
  .translate_check.uk-table td {
       color: #333;
  }

  .item-info-flex { display: flex; align-items: center; gap: 10px; }
  .item-pic { width: 60px; height: 45px; object-fit: cover; border: 1px solid #eee; flex-shrink: 0; border-radius: 3px;}
  .item-no-pic { width: 60px; height: 45px; background-color: #f5f5f5; border: 1px solid #eee; display: inline-flex; align-items: center; justify-content: center; color: #bbb; font-size: 22px; flex-shrink: 0; border-radius: 3px;}
  .item-details { display: flex; flex-direction: column; justify-content: center; }
  .item-id { font-weight: bold; display: block; font-size: 0.85em; color: #888; line-height: 1.2; margin-bottom: 2px; }
  .item-title-main { display: block; color: #111; font-size: 1.05em; font-weight: 500; line-height: 1.3; }
  .item-broker { color: #555; font-size: 0.9em; display: block; margin-top: 3px;}

  .lang-status-item { display: flex; align-items: center; margin-bottom: 3px; font-size: 0.9em; }
  .lang-status-item .material-icons { font-size: 1.2em; margin-right: 4px; vertical-align: middle; }
  .status-ok { color: #2e7d32; } 
  .status-ok .material-icons { color: #66bb6a; } 
  .status-missing { color: #c62828; }
  .status-missing .material-icons { color: #ef5350; }
  .field-name { color: #444; } 



   .nav-stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.translation-stats-inline {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #555;
    flex-wrap: wrap;
}
.stat-item-inline {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 5px;
    border-radius: 3px;
    background-color: #eeeeee;
}
.stat-item-inline .stat-value {
    font-weight: bold;
    color: #d32f2f;
    margin-left: 3px;
}
.stat-item-inline .material-icons {
    font-size: 14px;
    color: #757575;
}
.stat-item-inline .stat-label {
     margin-right: 2px;
}
@media (max-width: 768px) {

  .translate_check tbody tr td:not(:last-child) {
    width: 100% !important;
  }

  .translate_check thead { 
    display: none; 
  }

  .translate_check tbody td {
    border: 0; 
    display: block; 
    padding: 12px 15px;
    box-sizing: border-box;
  }

  .translate_check tbody tr {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin: 0 0 18px;
    position: relative; 
  }

  .translate_check tbody td:first-child {
    grid-column: 1 / -1; 
    text-align: center;
    padding: 8px 15px; 
    border-bottom: 1px solid #eeeeee;
  }

  .translate_check tbody td:nth-of-type(2) {
    grid-column: 1 / -1; 
  }

  .translate_check tbody td:nth-child(n+3):not(:last-child) {
    position: relative;
    padding-top: 34px; 
  }
  
  .translate_check tbody td:last-child {
    position: absolute; 
    top: 6px; 
    right: 10px;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    text-align: left;
    display: flex !important; 
    align-items: center;
    justify-content: flex-end;
    width:unset;
  }

  .item-pic,
  .item-no-pic {
    width: 50px;
    height: 38px;
  }

  .translate_check tbody td:nth-of-type(3)[data-lang="bg"]::after { 
    content: "BG";
  }
  .translate_check tbody td:nth-of-type(4)[data-lang="en"]::after { 
    content: "EN";
  }
  .translate_check tbody td:nth-of-type(5)[data-lang="ru"]::after {
    content: "RU";
  }
  .translate_check tbody td:nth-of-type(6)[data-lang="de"]::after {
    content: "DE";
  }

  .translate_check tbody td:nth-child(n+3):not(:last-child)::after {
    position: absolute;
    top: 6px; left: 6px;
    display: inline-block;
    min-width: 30px;
    padding: 3px 6px;
    color: #444;
    border-radius: 2px;
    letter-spacing: .5px;
  }

  /* Calls */
  #ts_pager_filter,
  #wordsTable {
    border: none;
    width: 100%;
  }
  #ts_pager_filter td .responsivetitlediv,
  #wordsTable td .responsivetitlediv {
    white-space: normal;
  }
  #ts_pager_filter thead,
  #wordsTable thead{
    display: none;
  }
  #ts_pager_filter tr,
  #wordsTable tr {
    display: block;
    border: 1px solid #ccc;
    margin-bottom: 20px;
  }
  #ts_pager_filter td,
  #wordsTable td {
    display: flex;
    flex-direction: column;
    width: 100%!important;
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px dotted #eee;
    box-sizing: border-box;
    gap: 4px;
    margin: 10px 0;
    font-size: 15px;
    align-items: center;
  }
  #ts_pager_filter tr td:last-child,
  #wordsTable tr td:last-child {
    border-bottom: none;
  }
  #ts_pager_filter td::before,
  #wordsTable td::before {
    content: attr(data-label);
    display: block;
    font-weight: bold;
    color: #333;
    text-align: left;
  }

}

/* ========================================================================
   reusable translation-checker styles
   ======================================================================== */
.row-updated-permanent{
    background:#e8f5e8!important;
    transition:background .3s;
}

#bulkWrap{
    margin-bottom:10px;
    height:0;
    overflow:hidden;
    transition:height .3s;
}

/* MULTISELECT ==============================================================*/

.mobile-multiselect-bar {
  position: fixed;
  bottom: 0; left: 0; width: 100%; height: 56px;
  background: #f8f9fa; border-top: 1px solid #dee2e6;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
  transform: translateY(100%); visibility: hidden;
  transition: transform .25s ease-out, visibility 0s linear .25s;
  z-index: 1030;
}
.mobile-multiselect-bar.bar-visible {
  transform: translateY(0); visibility: visible;
  transition: transform .25s ease-out, visibility 0s linear 0s;
}

.mobile-client-card.card-selected,
.mobile-ad-card.card-selected,
.mobile-inspection-card.card-selected {
  background: #e3f2fd !important;
  border-left: 4px solid #2196f3 !important;
}

.mobile-client-card,
.mobile-ad-card,
.mobile-inspection-card {
    border-left: 4px solid transparent;
    background-color: #fff;
    transition: background-color 0.2s ease-out,
                border-left-color 0.2s ease-out,
                transform 0.05s ease-out; 
}
body.multiselect-active .mobile-client-card a,
body.multiselect-active .mobile-client-card .card-action-trigger,
body.multiselect-active .mobile-ad-card a,
body.multiselect-active .mobile-ad-card .card-action-trigger,
body.multiselect-active .mobile-inspection-card a,
body.multiselect-active .mobile-inspection-card .card-action-trigger {
  pointer-events: none;
}

#mobile-multiselect-bar .action-button {
  border: none !important;
  box-shadow: none !important;
  flex: none;
  width: auto;
}

#multi-select-hint {
  display: none;
  width: 100%;
  background-color: #fdfbe1;
  color: #333;
  text-align: center;
  padding: 12px;
  border-radius: 8px;      
  box-sizing: border-box;
  margin-bottom: 12px;     
  font-size: 14px;
  line-height: 1.4;
}

#multi-select-hint button#hint-dismiss {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: #333;
  margin-left: 12px;
  cursor: pointer;
}

/* STATS ON CLIENTS */
.border-w-1px{
  border-width: 1px !important;
}

.stats-card-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.period-block {
  min-width: 180px;
  padding-right: 20px;
}
@media (max-width: 600px) {
  .period-block {
    margin-left: auto;
    margin-right: auto;
    padding-right: 0;
    text-align: center;
    }
}
.period-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  text-transform: uppercase;
  color: #333;
}
.period-range {
  font-size: 13px;
  color: #555;
}

.blocks-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex: 1;
  min-width: 300px;
}

.stats-block {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 12px;
  flex: 1;
  min-width: 220px;
  box-sizing: border-box;
}
.stats-block-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  text-transform: uppercase;
  color: #333;
  text-align: center;
}

.stats-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.stats-badge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}
.stats-count {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.stats-empty,
.stats-no-range {
  font-style: italic;
  color: #777;
  font-size: 13px;
  width: 100%;
  text-align: center;
  padding: 16px 0;
}

#toggle_stats{
  margin-right: 6px;
}
.toggle_stats_label{
  display: flex;
  align-items: center; 
  font-weight: 500;
}
.uk-width-medium-1-8,
.uk-width-large-1-8{
  width: 12.5%;
}
.remove-pt .md-input-wrapper{
  padding-top: 0;
}
.md-btn-flat-disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
}
.material-icons.md-18{
  font-size: 18px;
}

@media (max-width: 600px) {
  .uk-width-medium-1-8,
  .uk-width-large-1-8{
    width: 100%;
  }
  #share_ads_modal .uk-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  #share_ads_modal .uk-flex > a,
  #share_ads_modal .uk-flex > button {
    flex: 0 0 48%;
    max-width: 48%;
    text-align: center;
  }
  .user_heading{
    display: flex;
    gap: 20px;
    justify-content: start;
  }
  .person_icon_big{
    display: flex;
    width: fit-content;
  }
  .user_heading_content{
    width: 100%;
  }
  .user_heading_content .heading_b .sub-heading{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
    font-size: 13px;
  }
  #user_profile_tabs li{
    width: 49%;
    max-height: 45px;

  }

}
#modal_content .multibox {
  float: none !important;
  display: inline-block;
}
#modal_content .picture_uploaded {
  float: none !important;
  display: block;
  margin: 0 auto;
}


.mobile-ad-card,
.mobile-client-card,
.mobile-ad-card *,
.mobile-client-card * {
    -webkit-touch-callout: none;       /* iOS / Android link menu          */
    -webkit-user-select:  none;        /* Safari / Chrome text select      */
       -moz-user-select:  none;        /* Firefox                          */
        -ms-user-select:  none;        /* IE / Edge                        */
            user-select:  none;        /* Standard                         */
    -webkit-tap-highlight-color: transparent; /* removes grey tap flash    */
}

.thumb-link--ajax            { pointer-events:none; }

.gallery-icon-overlay-new,
.youtube-icon                { pointer-events:auto; z-index:4; }

.gallery-icon-overlay-new    { cursor:pointer; }

.text-break{
  word-break: break-word;
  overflow-wrap: break-word;
}

.page-jump-dropdown{
  width: 80px;
}
.k-state-selected{
  color: #77b445 !important;
}
.modules_types,
.news_search{
  gap: 0 5px;
}

.search_url_label{
  line-height: normal;
}

/* modules editable 10 - disabled */

.md-input-wrapper-disabled input[disabled] {
  background-color: #f5f5f5;  
  color: #999;        
}

/* MAXAI SIDEBAR */
.token-progress {
  padding: 8px 20px;
  color: #cdcedf;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.token-progress__label {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.token-progress__bar {
  width: 100%;
  height: 4px;
  background: #e5e5e5;
  border-radius: 2px;
}

.token-progress__fill {
  height: 100%;
  background: #7894bc;
}

.uk-print-preview-bar {          
  padding: 8px 12px;
  border-bottom: 1px solid #e5e5e5;
  background: #fafafa;
  gap: 10px;
  align-items: center;
}

.preview-container{
  display: flex;          
  flex-direction: column; 
  gap: 2rem;              
  align-items: center;   
}

.preview-wrapper{
  width: 60vw;
  max-width: 800px;
  margin: 0;
  border: 1px solid #ddd;
  box-shadow: 0 3px 12px rgba(0,0,0,.15);
  background: #fff;
  overflow: hidden;
}

.preview-wrapper iframe{
  width: 100%;
  aspect-ratio: 1 / 1.4142;
  height: auto;
  border: 0;
}
.w-fit-content{
  width: fit-content!important;
}
@media screen and (max-width:768px){
  .uk-print-preview-bar{
    flex-wrap:wrap;
    gap:.5rem 1rem;
  }
  .uk-print-preview-bar label{
    margin-bottom:0;            
  }

  .preview-container{ gap:1.5rem; }

  .preview-wrapper{
    width: 92vw;               
    max-width: none;
    box-shadow:0 2px 8px rgba(0,0,0,.12);
  }
}


.inspectations .change-field-pair,
.inspectations .stacked-badge{
  width: 100% !important;
}
.insp-date-grid {
    display: grid;
    grid-template-columns: 2.6em auto;   
    grid-template-rows: auto auto;
    column-gap: .25em;
    align-items: center;                
}

.insp-date-day {
    grid-column: 1 / 2;
    grid-row:    1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: normal;
}

.insp-month-weekday {
    grid-column: 2 / 3;
    grid-row:    1 / 2;
    font-size: .9em;
}

.insp-time {
    grid-column: 2 / 3;
    grid-row:    2 / 3;
    display: flex;
    align-items: center;
    gap: .25em;            
    font-size: .9em;
}

@media (min-width: 768px){
  .insp-date-day{
    font-size: 1.8em;     
  }
  .insp-date-today {
    width: 35px;
    height: 35px;
  }
}

.insp-desktop-table .executor-info,
.request-desktop-table .uk-badge{
  margin-left: auto;
    margin-right: auto;
}
.request-desktop-table .uk-badge{
    display: flex;
    width: fit-content;
}

.tablesorter-altair .change-field-pair .uk-badge,
.ads_badges .uk-badge {
 width: 100%;
}

#chatResponse{
  overflow: auto!important;
}
.maxai-badge{
  background:rgba(124, 179, 66, 0.2);
  border-radius:4px;
  padding:2px 8px;
  font-size:10px;
}
#savePromptRow{
  float: right;
}
.cke_reset{
  width: 100%;
  min-width: 100%;
}

.goals_label{
  background-color: white;
  width: fit-content;
}

.uk-text-18{
  font-size: 18px !important;
}

.goals-grid { 
  display: flex; 
  flex-wrap: wrap; 
  margin: -10px; 
}
.goals-grid > div {
  padding: 10px;
}
.goals-grid .md-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  text-align: center;
}
.goal-circle {
  --p: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(#77b445 calc(var(--p)*1%), #e9e9e9 0);
  position: relative;
  display: grid;
  place-items: center;
}
.goal-circle::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: 50%;
}
.goal-circle .value {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 600;
}
.goals-grid .label {
  font-size: 14px;
  color: #666;
  line-height: 1.2;
  min-height: 2.2em;
}


/* НОВИ ПРОМЕНИ ЗА MAXHOTEL */
select.md-input:focus,
textarea.md-input:focus,
input.md-input:focus {
    background: #fff !important;
}

.executor-list {
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 6px;
    background: #fafafa;
    max-height: 180px;
    overflow-y: auto;
}

.executor-list label {
    display: inline-block;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 10px;
    margin: 4px 5px;
    cursor: pointer;
    transition: 0.2s;
}
.executor-list label:hover {
    background: #f2f2f2;
}
.executor-list input[type=checkbox] {
    margin-right: 6px;
}


/* Subtasks */
.subtask-item {
  transition: opacity 0.2s;
}

.subtask-item.removing {
  opacity: 0;
}

.subtask-checkbox:hover {
  transform: scale(1.1);
}

.subtask-delete-btn:hover i {
  color: #f44336 !important;
}

.subtask-title:focus {
  outline: 1px solid #2196f3;
  border-radius: 3px;
}

#subtasks_list {
  max-height: 400px;
  overflow-y: auto;
}


.md-card-horizontal .md-card-head-avatar img {
  min-height: 100%;
  object-fit: cover;
}

/* Worktime card compact layout */
.worktime-card .info-table {
    max-width: 620px;
}
.worktime-range-form table {
    width: auto;
}
.worktime-range-form .md-input {
    width: 180px;
    max-width: 100%;
    box-sizing: border-box;
}
.worktime-range-form .info-label {
    width: 120px;
}
.worktime-range-form button {
    margin-top: 4px;
}


/* Worktime range form - modern flexbox layout */
.worktime-range-form {
    margin-bottom: 20px;
}
.worktime-range-controls {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}
.worktime-date-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.worktime-date-label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin: 0;
}
.worktime-date-input {
    width: 180px;
    min-width: 150px;
}
.worktime-submit-group {
    display: flex;
    align-items: flex-end;
}
@media (max-width: 600px) {
    .worktime-range-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .worktime-date-group {
        width: 100%;
    }
    .worktime-date-input {
        width: 100%;
    }
    .worktime-submit-group {
        width: 100%;
    }
    .worktime-submit-group button {
        width: 100%;
    }
}
