/**
 * DeeBesto Employer Portal - Internship posting and management styles.
 * Enqueued alongside employer-profile.css (reuses its .dbemp-* card/button/
 * input/select/textarea/checkbox tokens) on pages containing the
 * [deebesto_post_internship] or [deebesto_manage_internships] shortcodes.
 */

.dbemp-duration-group {
  display: flex;
  gap: 10px;
}
.dbemp-duration-group .dbemp-input {
  flex: 1;
}
.dbemp-duration-group .dbemp-select {
  flex: 1;
}

.dbemp-form-actions-split {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Conditional field visibility ---------- */
.dbep-conditional {
  margin-top: 18px;
}
.dbep-hidden {
  display: none !important;
}

/* ---------- Internship list table ---------- */
.dbep-table-scroll {
  overflow-x: auto;
}
.dbep-internship-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.dbep-internship-table th,
.dbep-internship-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #E5E7EB;
  white-space: nowrap;
}
.dbep-internship-table th {
  color: #667085;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.dbep-internship-table tbody tr:last-child td {
  border-bottom: none;
}
.dbep-internship-table td a {
  color: #111111;
  font-weight: 600;
  text-decoration: none;
}
.dbep-internship-table td a:hover {
  text-decoration: underline;
}

.dbep-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.dbep-inline-action-form {
  display: inline;
  margin: 0;
}
.dbep-link-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #B8860B;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}
.dbep-link-button:hover {
  opacity: 0.8;
}

/* ---------- Responsive: card-style table on narrow screens ---------- */
@media (max-width: 782px) {
  .dbep-internship-table thead {
    display: none;
  }
  .dbep-internship-table,
  .dbep-internship-table tbody,
  .dbep-internship-table tr,
  .dbep-internship-table td {
    display: block;
    width: 100%;
  }
  .dbep-internship-table tr {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 6px 0;
  }
  .dbep-internship-table td {
    white-space: normal;
    border-bottom: none;
    padding: 8px 14px;
  }
  .dbep-internship-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #98A2B3;
    margin-bottom: 2px;
  }
}

@media (max-width: 600px) {
  .dbemp-duration-group {
    flex-direction: column;
  }
  .dbemp-form-actions-split {
    flex-direction: column;
  }
  .dbemp-form-actions-split .dbemp-btn {
    width: 100%;
  }
}
