/**
 * DeeBesto Employer Portal - Company Profile / Employer Dashboard styles.
 * Enqueued only on pages containing the [deebesto_company_profile] shortcode.
 */

.dbemp-wrap * {
  box-sizing: border-box;
}
.dbemp-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #F5F6F8;
  color: #111111;
  padding: 32px 20px 60px;
}
.dbemp-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Top / Welcome ---------- */
.dbemp-hero {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 36px 32px;
  margin-bottom: 24px;
}
.dbemp-hero h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  color: #111111;
}
.dbemp-hero p {
  margin: 0 0 22px;
  color: #667085;
  font-size: 15px;
  line-height: 1.6;
  max-width: 640px;
}

/* ---------- Company Profile header (read-only view) ---------- */
.dbemp-profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
}
.dbemp-profile-logo img {
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  display: block;
}
.dbemp-profile-heading {
  flex: 1 1 auto;
  min-width: 0;
}
.dbemp-profile-heading h1 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  color: #111111;
}
.dbemp-profile-heading .dbemp-card-sub {
  margin: 0 0 10px;
}
.dbemp-profile-header-action {
  flex: 0 0 auto;
}

/* ---------- Buttons ---------- */
.dbemp-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 8px;
  text-align: center;
  transition: opacity 0.15s ease, transform 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.dbemp-btn:hover {
  opacity: 0.88;
}
.dbemp-btn-primary {
  background: #F5B731;
  color: #111111;
}
.dbemp-btn-outline {
  background: #FFFFFF;
  color: #111111;
  border: 1px solid #E5E7EB;
}
.dbemp-btn-block {
  display: block;
  width: 100%;
}
.dbemp-btn-disabled {
  background: #F5F6F8;
  color: #98A2B3;
  border: 1px solid #E5E7EB;
  cursor: not-allowed;
}
.dbemp-btn-disabled:hover {
  opacity: 1;
}

/* ---------- Grid helpers ---------- */
.dbemp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.dbemp-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

/* ---------- Card base ---------- */
.dbemp-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 26px;
}
.dbemp-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 6px;
}
.dbemp-card-sub {
  font-size: 13.5px;
  color: #667085;
  line-height: 1.6;
  margin: 0 0 16px;
}

/* ---------- Onboarding progress ---------- */
.dbemp-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dbemp-progress-head .dbemp-card-title {
  margin: 0;
}
.dbemp-progress-percent {
  font-size: 13px;
  font-weight: 700;
  color: #F5B731;
  background: #FFF7E6;
  padding: 4px 10px;
  border-radius: 20px;
}
.dbemp-progress-bar-track {
  width: 100%;
  height: 10px;
  background: #F5F6F8;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  margin-bottom: 20px;
}
.dbemp-progress-bar-fill {
  height: 100%;
  background: #F5B731;
  border-radius: 20px;
}
.dbemp-progress-bar-fill.dbemp-progress-0   { width: 0%; }
.dbemp-progress-bar-fill.dbemp-progress-10  { width: 10%; }
.dbemp-progress-bar-fill.dbemp-progress-20  { width: 20%; }
.dbemp-progress-bar-fill.dbemp-progress-30  { width: 30%; }
.dbemp-progress-bar-fill.dbemp-progress-40  { width: 40%; }
.dbemp-progress-bar-fill.dbemp-progress-50  { width: 50%; }
.dbemp-progress-bar-fill.dbemp-progress-60  { width: 60%; }
.dbemp-progress-bar-fill.dbemp-progress-70  { width: 70%; }
.dbemp-progress-bar-fill.dbemp-progress-80  { width: 80%; }
.dbemp-progress-bar-fill.dbemp-progress-90  { width: 90%; }
.dbemp-progress-bar-fill.dbemp-progress-100 { width: 100%; background: #1D9A4E; }

.dbemp-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dbemp-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #E5E7EB;
  font-size: 14px;
  color: #111111;
}
.dbemp-checklist li:last-child {
  border-bottom: none;
}
.dbemp-check-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.dbemp-check-done {
  background: #E7F8EE;
  color: #1D9A4E;
}
.dbemp-check-pending {
  background: #FFF7E6;
  color: #F5B731;
}
.dbemp-check-locked {
  background: #F5F6F8;
  color: #98A2B3;
}
.dbemp-check-label-locked {
  color: #98A2B3;
}
.dbemp-check-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
}
.dbemp-tag-done {
  background: #E7F8EE;
  color: #1D9A4E;
}
.dbemp-tag-pending {
  background: #FFF7E6;
  color: #B8860B;
}
.dbemp-tag-locked {
  background: #F5F6F8;
  color: #98A2B3;
}

/* ---------- Verification card ---------- */
.dbemp-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  background: #FFF1F0;
  color: #D0421B;
  margin-bottom: 14px;
}
.dbemp-badge-pending {
  background: #FFF7E6;
  color: #B8860B;
}
.dbemp-badge-verified {
  background: #E7F8EE;
  color: #1D9A4E;
}
.dbemp-badge-incomplete {
  background: #FFF1F0;
  color: #D0421B;
}

.dbemp-card > .dbemp-card-sub:last-child {
  margin-bottom: 0;
}

/* ---------- Section titles ---------- */
.dbemp-section-title {
  font-size: 19px;
  font-weight: 700;
  color: #111111;
  margin: 8px 0 16px;
}

/* ---------- Quick action cards ---------- */
.dbemp-qa-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.dbemp-qa-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #FFF7E6;
  color: #F5B731;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.dbemp-qa-lock {
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: #98A2B3;
  background: #F5F6F8;
  border: 1px solid #E5E7EB;
  padding: 4px 10px;
  border-radius: 20px;
}
.dbemp-qa-spacer {
  flex-grow: 1;
}

/* ---------- Stats ---------- */
.dbemp-stat-card {
  text-align: left;
}
.dbemp-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #111111;
  margin-bottom: 4px;
}
.dbemp-stat-label {
  font-size: 13px;
  color: #667085;
  font-weight: 500;
}

/* ---------- Recent activity ---------- */
.dbemp-empty-state {
  text-align: center;
  padding: 46px 20px;
  color: #667085;
  font-size: 14px;
}
.dbemp-empty-icon {
  font-size: 30px;
  margin-bottom: 12px;
  color: #98A2B3;
}
.dbemp-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dbemp-activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #E5E7EB;
  font-size: 14px;
  color: #111111;
}
.dbemp-activity-item:last-child {
  border-bottom: none;
}
.dbemp-activity-time {
  color: #667085;
  font-size: 12.5px;
  white-space: nowrap;
}

/* ---------- Support ---------- */
.dbemp-support-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.dbemp-support-text {
  max-width: 560px;
}
.dbemp-support-email {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  color: #111111;
}

/* ---------- Notices ---------- */
.dbemp-notice {
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  transition: opacity 0.4s ease;
}
.dbemp-notice-success {
  background: #E7F8EE;
  color: #1D9A4E;
  border-color: #C9EFDA;
}
.dbemp-notice-error {
  background: #FFF1F0;
  color: #D0421B;
  border-color: #FFD9D4;
}
.dbemp-notice-hide {
  opacity: 0;
}

/* ---------- Layout helper ---------- */
.dbemp-mb-24 {
  margin-bottom: 24px;
}

/* ---------- Business Profile form ---------- */
.dbemp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.dbemp-form-row {
  margin-top: 18px;
}
.dbemp-form-grid .dbemp-form-row {
  margin-top: 0;
}
.dbemp-form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 6px;
}
.dbemp-form-required {
  color: #D0421B;
}
.dbemp-view-value {
  margin: 0;
  font-size: 14.5px;
  color: #111111;
  line-height: 1.5;
  word-break: break-word;
}
.dbemp-view-paragraph {
  white-space: pre-line;
}
.dbemp-view-link {
  display: inline-block;
  color: #B8860B;
  text-decoration: none;
}
.dbemp-view-link:hover {
  text-decoration: underline;
}
.dbemp-input,
.dbemp-select,
.dbemp-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: #111111;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 11px 14px;
}
.dbemp-input:focus,
.dbemp-select:focus,
.dbemp-textarea:focus {
  outline: none;
  border-color: #F5B731;
}
.dbemp-textarea {
  resize: vertical;
  min-height: 110px;
}
.dbemp-char-count {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #667085;
}
.dbemp-char-count-warning {
  color: #D0421B;
}
.dbemp-form-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  margin: 28px 0 4px;
  padding-top: 20px;
  border-top: 1px solid #E5E7EB;
}
.dbemp-form-grid + .dbemp-form-section-title,
form > .dbemp-form-section-title:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.dbemp-field-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #D0421B;
}
.dbemp-field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #667085;
}
.dbemp-current-file {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #667085;
}
.dbemp-current-file img {
  border-radius: 8px;
  border: 1px solid #E5E7EB;
}
.dbemp-file-input {
  width: 100%;
  font-size: 13.5px;
  color: #111111;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 9px 12px;
}
.dbemp-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.dbemp-checkbox-item,
.dbemp-checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #111111;
  font-weight: 400;
  cursor: pointer;
}
.dbemp-checkbox-inline {
  margin-top: 8px;
}
.dbemp-form-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Admin verification review page ---------- */
.dbep-admin-inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .dbemp-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .dbemp-grid-2 {
    grid-template-columns: 1fr;
  }
  .dbemp-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .dbemp-wrap {
    padding: 20px 14px 40px;
  }
  .dbemp-hero {
    padding: 26px 20px;
  }
  .dbemp-hero h1 {
    font-size: 22px;
  }
  .dbemp-grid-4 {
    grid-template-columns: 1fr;
  }
  .dbemp-btn {
    width: 100%;
  }
  .dbemp-hero .dbemp-btn {
    display: block;
  }
  .dbemp-support-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .dbemp-support-card .dbemp-btn {
    width: 100%;
  }
  .dbemp-profile-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 24px 20px;
  }
  .dbemp-profile-logo {
    align-self: center;
  }
  .dbemp-profile-header-action .dbemp-btn {
    width: 100%;
  }
}
