/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/* ===============================
   SELECT2 + ELEMENTOR SYNC STYLE
   =============================== */


/* CONTAINER */
.select2-container {
    min-width: 100% !important;
    width: 100% !important;
    font-family: inherit !important;
}

/* SELECT BOX */
.select2-container--default .select2-selection--single {
    height: 40px !important;
    border-radius: 15px !important;

    display: flex !important;
    align-items: center !important;

    padding: 0 36px 0 12px !important;

    background-color: var(--e-global-color-4e76f75, #f6f6f6);
    color: var(--e-global-color-2a72c30, #1C1D21);

    border: 1px solid #666;
    box-shadow: 0px 0px 10px -4px rgba(0,0,0,0.5);

    transition: all .3s ease;
}

/* TEXT ALIGNMENT */
.select2-selection__rendered {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;

    font-size: 15px;
    font-family: inherit;

    margin: 0 !important;
    padding: 0 !important;
}

/* ARROW */
.select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 10px !important;
}

/* DROPDOWN */
.select2-dropdown {
    border-radius: 12px !important;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.15);
}

/*Hide Checkbox*/
.hide-status-field {
    display: none !important;
}


/* --- JETENGINE DYNAMIC TABLE: SAAS OVERRIDE --- */

/* 1. Reset the Table & Add Row Spacing */
body .my-custom-table .jet-dynamic-table {
    border-collapse: separate !important;
    border-spacing: 0 12px !important; /* Creates the 'Notion' card look */
    background: transparent !important;
    border: none !important;
    width: 100% !important;
}

/* 2. Modernize the Header Bar */
body .my-custom-table .jet-dynamic-table__header .jet-dynamic-table__col {
    background-color: #f8fafc !important; /* Light SaaS Grey */
    color: #475569 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 0.5px !important;
    padding: 15px !important;
    border: none !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

/* 3. Style the Rows as White "Planks" */
body .my-custom-table .jet-dynamic-table__body .jet-dynamic-table__row {
    background-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

/* 4. Style Individual Cells & Round Corners */
body .my-custom-table .jet-dynamic-table__col {
    padding: 15px !important;
    background-color: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Round the Left Edge of the row */
body .my-custom-table .jet-dynamic-table__col:first-child {
    border-left: 1px solid #f1f5f9 !important;
    border-radius: 12px 0 0 12px !important;
}

/* Round the Right Edge of the row */
body .my-custom-table .jet-dynamic-table__col:last-child {
    border-right: 1px solid #f1f5f9 !important;
    border-radius: 0 12px 12px 0 !important;
}

/* 5. Custom Status Badge Styling (Based on your HTML) */
/* This targets the dynamic field content inside the status column */
body .my-custom-table .jet-dynamic-table__col--status .jet-listing-dynamic-field__content {
    display: inline-block !important;
    padding: 4px 12px !important;
    border-radius: 50px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    background-color: #e0e7ff !important; /* Default Blue-ish tag */
    color: #4338ca !important;
}

body .my-custom-table .jet-dynamic-table__col--photo img {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover !important;
    border-radius: 50% !important; /* Makes it a circle */
    border: 1px solid #e2e8f0 !important;
}

/* Specific color for NEW */
body .my-custom-table .jet-dynamic-table__col--status [class*="content"]:contains('NEW') {
    background-color: #dcfce7 !important; /* Green */
    color: #166534 !important;
}

/* Specific color for PENDING */
body .my-custom-table .jet-dynamic-table__col--status [class*="content"]:contains('PENDING') {
    background-color: #fef9c3 !important; /* Yellow */
    color: #854d0e !important;
}

/* Dynamic Background */
.cv-bg{
    background-color: var(--cv-bg);
}

/* Dynamic Applicant Color */
.cv-applicant{
    background-color: var(--cv-applicant);
    border-color: var(--cv-applicant);
}

/* Dynamic Font Color */
.cv-font{
    color: var(--cv-font);
}

.cv-font,
.cv-font .elementor-heading-title,
.cv-font .jet-listing-dynamic-field__content{
    color: var(--cv-font);
}


/*WISI Select Grid
Use this class: wisi-select-grid
*/

.wisi-select-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  align-items: end;
}

.wisi-select-grid .wp-block-column {
  width: 100%;
  min-width: 0;
}

.wisi-select-grid .jet-form-builder__field-wrap,
.wisi-select-grid .jet-form-builder-row,
.wisi-select-grid .field-type-select {
  width: 100%;
}

.wisi-select-grid label,
.wisi-select-grid .jet-form-builder__label {
  display: block;
  margin-bottom: 7px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.wisi-select-grid select,
.wisi-select-grid .select2-container,
.wisi-select-grid .select2-container--default {
  width: 100% !important;
}

.wisi-select-grid select,
.wisi-select-grid .select2-container--default .select2-selection--single {
  height: 44px;
  min-height: 44px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.wisi-select-grid select {
  padding: 0 40px 0 13px;
}

.wisi-select-grid .select2-container--default .select2-selection--single .select2-selection__rendered {
  height: 44px;
  padding-left: 13px;
  padding-right: 36px;
  color: #111827;
  line-height: 44px;
}

.wisi-select-grid .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px;
  right: 10px;
}

.wisi-select-grid select:focus,
.wisi-select-grid .select2-container--default.select2-container--focus .select2-selection--single,
.wisi-select-grid .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  outline: none;
}

.select2-dropdown {
  border: 1px solid #d0d7de;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.select2-results__option {
  padding: 10px 13px;
  font-size: 14px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: #2563eb;
}

@media (max-width: 1024px) {
  .wisi-select-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 640px) {
  .wisi-select-grid {
    grid-template-columns: 1fr;
  }
}



/* Applicant Resume Status - compact 4-column grid */
.jet-form-builder .jet-form-builder__fields-group {
  display: grid !important;
  grid-template-columns: repeat(4, max-content) !important;
  column-gap: 34px !important;
  row-gap: 10px !important;
  justify-content: start !important;
  align-items: start !important;
  width: fit-content !important;
  max-width: 100% !important;
}

/* Each checkbox item */
.jet-form-builder .jet-form-builder__fields-group label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

/* Keep native checked mark visible */
.jet-form-builder .jet-form-builder__fields-group input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  flex: 0 0 18px !important;
  accent-color: #4f7df3;
}

/* Tablet */
@media (max-width: 1024px) {
  .jet-form-builder .jet-form-builder__fields-group {
    grid-template-columns: repeat(2, max-content) !important;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .jet-form-builder .jet-form-builder__fields-group {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .jet-form-builder .jet-form-builder__fields-group label {
    white-space: normal !important;
  }
}

/* Applicant info fields - clean 4-column grid */
.jet-form-builder .wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
  gap: 28px 24px !important;
  align-items: end !important;
}

.jet-form-builder .wp-block-column {
  width: 100% !important;
  min-width: 0 !important;
  flex-basis: auto !important;
}

/* Make form controls equal width */
.jet-form-builder input[type="text"],
.jet-form-builder input[type="number"],
.jet-form-builder input[type="tel"],
.jet-form-builder input[type="email"],
.jet-form-builder input[type="date"],
.jet-form-builder select,
.jet-form-builder textarea,
.jet-form-builder .select2-container {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 38px !important;
  box-sizing: border-box !important;
}

/* Labels */
.jet-form-builder label,
.jet-form-builder .jet-form-builder__label {
  display: block !important;
  margin-bottom: 7px !important;
}

/* Small fields should still fill their grid box */
.jet-form-builder input,
.jet-form-builder select {
  min-width: 0 !important;
}

/* Mobile/tablet responsive */
@media (max-width: 1024px) {
  .jet-form-builder .wp-block-columns {
    grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .jet-form-builder .wp-block-columns {
    grid-template-columns: 1fr !important;
  }
}


/* ===============================
   WISI FIX - SELECT2 MULTIPLE FIELDS
   Fixes Tattoo Placement / Language spoken tags
   =============================== */

.jet-form-builder .select2-container--default .select2-selection--multiple {
  width: 100% !important;
  min-height: 40px !important;
  height: auto !important;
  padding: 5px 8px !important;
  border: 1px solid #666 !important;
  border-radius: 8px !important;
  background-color: #f6f6f6 !important;
  box-shadow: 0px 0px 10px -4px rgba(0,0,0,0.5) !important;
  box-sizing: border-box !important;
}

.jet-form-builder .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px !important;
  width: 100% !important;
  min-height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}

.jet-form-builder .select2-container--default .select2-selection--multiple .select2-selection__choice {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  margin: 2px !important;
  padding: 3px 7px !important;
  border: 1px solid #c7c7c7 !important;
  border-radius: 4px !important;
  background: #eeeeee !important;
  color: #1C1D21 !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.jet-form-builder .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  margin-right: 4px !important;
  color: #666 !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.jet-form-builder .select2-container--default .select2-search--inline {
  display: inline-flex !important;
  align-items: center !important;
}

.jet-form-builder .select2-container--default .select2-search--inline .select2-search__field {
  min-height: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 24px !important;
}


/* ===============================
   WISI FIX - OTHER INFORMATION GRID
   Keeps fields aligned in clean 4-column rows
   =============================== */

.jet-form-builder .wp-block-columns {
  grid-template-columns: repeat(4, minmax(220px, 1fr)) !important;
  column-gap: 24px !important;
  row-gap: 24px !important;
  align-items: end !important;
}

.jet-form-builder .wp-block-column {
  align-self: end !important;
}

.jet-form-builder .wp-block-column:empty {
  display: none !important;
}

/* Prevent Select2 multiple boxes from becoming too tall-looking */
.jet-form-builder .select2-container--default .select2-selection--multiple {
  min-height: 40px !important;
  padding: 6px 10px !important;
}

/* Keep all controls visually equal */
.jet-form-builder input[type="text"],
.jet-form-builder input[type="number"],
.jet-form-builder input[type="tel"],
.jet-form-builder input[type="email"],
.jet-form-builder input[type="date"],
.jet-form-builder select,
.jet-form-builder textarea,
.jet-form-builder .select2-container {
  min-height: 40px !important;
}

/* Tablet */
@media (max-width: 1024px) {
  .jet-form-builder .wp-block-columns {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .jet-form-builder .wp-block-columns {
    grid-template-columns: 1fr !important;
  }
}



/* ===============================
   WISI FIX - CONDITIONAL BLOCK GRID ALIGNMENT
   Makes JetForm conditional block fields align like normal fields
   =============================== */

/* Let conditional blocks behave like their inner field is part of the grid */
.jet-form-builder .wp-block-jet-forms-conditional-block,
.jet-form-builder .jet-form-builder__conditional-block,
.jet-form-builder [data-jfb-conditional],
.jet-form-builder [class*="conditional-block"] {
  display: contents !important;
}

/* Keep the main form columns consistent */
.jet-form-builder .wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(230px, 1fr)) !important;
  column-gap: 24px !important;
  row-gap: 30px !important;
  align-items: end !important;
}

/* Make every column/field fill its grid cell */
.jet-form-builder .wp-block-column,
.jet-form-builder .jet-form-builder-row,
.jet-form-builder .jet-form-builder__field-wrap {
  width: 100% !important;
  min-width: 0 !important;
  align-self: end !important;
}

/* Equal field widths */
.jet-form-builder input[type="text"],
.jet-form-builder input[type="number"],
.jet-form-builder input[type="tel"],
.jet-form-builder input[type="email"],
.jet-form-builder input[type="date"],
.jet-form-builder select,
.jet-form-builder textarea,
.jet-form-builder .select2-container {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Keep labels aligned above fields */
.jet-form-builder label,
.jet-form-builder .jet-form-builder__label {
  display: block !important;
  margin-bottom: 7px !important;
  line-height: 1.3 !important;
}

/* Tablet */
@media (max-width: 1024px) {
  .jet-form-builder .wp-block-columns {
    grid-template-columns: repeat(2, minmax(230px, 1fr)) !important;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .jet-form-builder .wp-block-columns {
    grid-template-columns: 1fr !important;
  }
}