/* =========================================================
   FILTER BAR (Search + Status + Sort)
   ========================================================= */

.inv-filters {
  width: 100%;
  margin: 0 0 14px 0;
}

.inv-filters-form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.inv-search {
  flex: 1 1 280px;
  min-width: 220px;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  outline: none;
}

.inv-search:focus {
  border-color: #cfcfcf;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}

.inv-select {
  flex: 0 0 auto;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.inv-select:focus {
  border-color: #cfcfcf;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}

.inv-filter-btn {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.inv-filter-btn:hover {
  opacity: 0.92;
}

.inv-clear-btn {
  height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.inv-clear-btn:hover {
  background: #f7f7f7;
}

@media (max-width: 640px) {
  .inv-filters-form { gap: 10px; }
  .inv-search { flex: 1 1 100%; }
  .inv-select,
  .inv-filter-btn,
  .inv-clear-btn {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
  }
}

/* =========================================================
   Invitations TABLE
   ========================================================= */

.inv-table-wrap {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  box-sizing: border-box;
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.inv-table thead th {
  font-size: 12px;
  letter-spacing: .03em;
  color: #111;
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid #e9e9e9;
  font-weight: 700;
}

.inv-table tbody td {
  padding: 18px 10px;
  border-bottom: 1px solid #efefef;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.35;
  word-break: break-word;
}

.inv-table .col-title { width: 54%; }
.inv-table .col-offers { width: 10%; }
.inv-table .col-created { width: 12%; }
.inv-table .col-deadline { width: 12%; }
.inv-table .col-views { width: 7%; }
.inv-table .col-actions { width: 5%; text-align: right; }

.inv-title-link {
  color: #111;
  text-decoration: none;
  font-weight: 500;
}
.inv-title-link:hover { text-decoration: underline; }

.inv-offers-count { color: #111; font-weight: 700; }

.inv-offers-link {
  color: #0a66c2;
  text-decoration: none;
  font-weight: 700;
}
.inv-offers-link:hover { text-decoration: underline; }

.inv-actions { position: relative; display: inline-block; }

.inv-actions-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}
.inv-actions-btn:hover { background: #f2f2f2; }

.inv-actions-btn .dots { font-size: 18px; line-height: 1; display: inline-block; }

.inv-actions-menu {
  position: absolute;
  right: 0;
  top: 34px;
  min-width: 160px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  padding: 8px;
  z-index: 9999;
}

.inv-action-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: #111;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
}
.inv-action-item:hover { background: #f5f5f5; }

.inv-empty { padding: 18px 10px; color: #666; }

/* =========================================================
   Entries HEADER + TABLE
   ========================================================= */

.inv-entries-wrap{
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.inv-entries-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.inv-entries-head h3{
  font-size: 18px;
  line-height: 1.35;
  margin: 0;
  font-weight: 600;
  max-width: 80%;
}

.inv-back{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  background: #fff;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.inv-back:hover{ background: #f7f7f7; }

.inv-entries-table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.inv-entries-table th,
.inv-entries-table td{
  padding: 14px 10px;
  border-bottom: 1px solid #efefef;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.35;
  word-break: break-word;
}

.inv-entries-table thead th{
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid #e9e9e9;
}

/* 5 columns */
.inv-entries-table th:nth-child(1),
.inv-entries-table td:nth-child(1){ width: 28%; }

.inv-entries-table th:nth-child(2),
.inv-entries-table td:nth-child(2){ width: 22%; }

.inv-entries-table th:nth-child(3),
.inv-entries-table td:nth-child(3){ width: 20%; }

.inv-entries-table th:nth-child(4),
.inv-entries-table td:nth-child(4){ width: 18%; white-space: nowrap; }

.inv-entries-table th:nth-child(5),
.inv-entries-table td:nth-child(5){ width: 12%; }

.inv-file-link{
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  background: #fafafa;
  font-weight: 600;
  font-size: 13px;
  color: #0a66c2;
  text-decoration: none;
}
.inv-file-link:hover{
  background: #f2f2f2;
  text-decoration: none;
}

@media (max-width: 900px){
  .inv-entries-head{ flex-direction: column; }
  .inv-entries-head h3{ max-width: 100%; }
  .inv-entries-table{ table-layout: auto; }
  .inv-entries-table th:nth-child(4),
  .inv-entries-table td:nth-child(4){ white-space: normal; }
}

/* Entries table (3 columns): Field 1, Date, File */
.inv-entries-table--3cols th:nth-child(1),
.inv-entries-table--3cols td:nth-child(1){ width: 55%; }

.inv-entries-table--3cols th:nth-child(2),
.inv-entries-table--3cols td:nth-child(2){ width: 25%; white-space: nowrap; }

.inv-entries-table--3cols th:nth-child(3),
.inv-entries-table--3cols td:nth-child(3){ width: 20%; }

/* =========================================================
   Pagination
   ========================================================= */

.inv-pagination{
  display: flex;
  justify-content: center;
  margin: 18px 0 0;
  gap: 6px;
  flex-wrap: wrap;
}

.inv-pagination .page-numbers{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: #111;
  font-size: 14px;
}

.inv-pagination .page-numbers.current{
  background: #111;
  color: #fff;
  border-color: #111;
}

.inv-pagination .page-numbers:hover{
  background: #f7f7f7;
}


/* Invitations stats shortcode */
.inv-stats{margin:20px 0 28px}
.inv-stats-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.inv-stats-title{margin:0;font-size:22px;line-height:1.2}
.inv-stats-subtitle{font-size:13px;opacity:.8}
.inv-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.inv-stat-card{background:#fff;border:1px solid #e3e7ee;border-radius:14px;padding:18px 16px;box-shadow:0 6px 18px rgba(16,24,40,.05)}
.inv-stat-value{font-size:28px;font-weight:700;line-height:1.1;margin-bottom:6px}
.inv-stat-label{font-size:13px;line-height:1.35;color:#475467}
@media (max-width: 1024px){.inv-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width: 640px){.inv-stats-grid{grid-template-columns:1fr;}.inv-stats-title{font-size:20px;}}
