/* ============================================================
   JTEL WEB SUITE - MODULE 021 : CLIENTS INDEX - STYLES
   ------------------------------------------------------------
   Folder : 021-clients-index/021-clients-index.css
   Loaded after 999-common.css, so rules here refine the common
   baseline for this module only. Section notes show the original
   styles.css block each rule came from.

   Build 015 - module-wise split (2026-09-30). No visual change.
   ============================================================ */

/* ---------- from [CLIENT-MODULE-001] ---------- */

.screen-clients-index {
  flex-direction: column;
  background: #e9eff3;
}

.clients-index-workspace {
  min-height: 0;
  flex: 1 1 auto;
}

.clients-index-filter-copy h2 {
  margin: 6px 0 5px;
  color: #263d4d;
  font-size: 1.35rem;
}

.clients-index-filter-copy p {
  margin: 0;
  color: #71808b;
  font-size: 0.78rem;
}

.clients-index-workspace {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.clients-index-filter-card,
.clients-index-results-card {
  background: #fff;
  border: 1px solid #c6d2da;
  border-radius: 15px;
  box-shadow: 0 8px 22px rgba(19, 39, 54, 0.09);
}

.clients-index-filter-card {
  padding: 17px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.clients-index-filter-copy {
  min-width: 260px;
}

.clients-index-search-row {
  min-width: 0;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.clients-index-search-row input {
  width: min(520px, 100%);
  height: 40px;
  padding: 0 13px;
  border: 1px solid #b9c8d1;
  border-radius: 9px;
  outline: 0;
}

.clients-index-search-row input:focus {
  border-color: #6c879a;
  box-shadow: 0 0 0 3px rgba(75,111,136,0.12);
}

.clients-index-results-card {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.clients-index-table-scroll {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
}

.clients-index-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

.clients-index-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 11px;
  color: #fff;
  background: linear-gradient(#536d80, #314d61);
  border-right: 1px solid rgba(255,255,255,0.16);
  font-size: 0.66rem;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.clients-index-table td {
  padding: 9px 11px;
  color: #344a58;
  border-bottom: 1px solid #e2e8ec;
  font-size: 0.72rem;
  vertical-align: middle;
}

.clients-index-table tbody tr:hover {
  background: #f2f7fa;
}

.clients-index-table td strong,
.clients-index-table td small,
.clients-index-table td span {
  display: block;
}

.clients-index-table td small {
  margin-top: 3px;
  color: #7a8994;
  font-size: 0.63rem;
}

.cl-col-code { width: 145px; }

.cl-col-title { width: 250px; }

.cl-col-house { width: 120px; }

.cl-col-address { width: auto; }

.cl-col-phone { width: 135px; }

.cl-col-action { width: 82px; text-align: center; }

.client-index-edit-button {
  width: 33px;
  height: 31px;
  display: inline-grid;
  place-items: center;
  color: #315f78;
  background: linear-gradient(#f8fbfc, #dceaf1);
  border: 1px solid #bfd2dc;
  border-radius: 8px;
  cursor: pointer;
}

.client-index-edit-button svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.client-index-view-only {
  color: #87949d;
  font-size: 0.62rem;
  font-weight: 750;
}

.clients-index-empty {
  position: absolute;
  inset: 45px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #83919b;
  pointer-events: none;
}

.clients-index-empty span {
  font-size: 2rem;
}

.clients-index-empty strong {
  margin-top: 7px;
  color: #536875;
  font-size: 0.86rem;
}

.clients-index-empty small {
  margin-top: 4px;
  font-size: 0.68rem;
}

.clients-index-footer {
  min-height: 45px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #647784;
  background: #f4f7f9;
  border-top: 1px solid #d3dde3;
  font-size: 0.68rem;
}

.clients-index-footer strong {
  color: #2f4b5e;
  font-size: 0.76rem;
}

.client-new-header-button {
  color: #fff;
  background: rgba(255,255,255,0.10);
}

@media (max-width: 880px) {
  .clients-index-filter-card {
      align-items: stretch;
      flex-direction: column;
    }

  .clients-index-search-row {
      justify-content: stretch;
    }

  .clients-index-search-row input {
      width: 100%;
    }
}

@media (max-width: 620px) {
  .clients-index-workspace {
    padding: 12px;
  }

  .clients-index-search-row {
    flex-direction: column;
  }
}
