/**
* Theme Name: Workreap Child
* Description: This is a child theme of Workreap.
* Author: Amentotech
* Template: workreap
* Version: 0.0.1
*/

div[data-name="2_1_e_r_pasirinkite_medzio_skersmeni"] > .acf-input > .acf-repeater > .acf-actions [data-event="add-row"] {
  z-index: -1;
  position: absolute;
}

div[data-name="2_1_e_r_pasirinkite_medzio_skersmeni_2"] > .acf-input > .acf-repeater > .acf-actions [data-event="add-row"] {
  z-index: -1;
  position: absolute;
}

/* Role status widget */
.wr-role-status-block {
    display: none;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #edf1f7;
    flex-direction: column;
    gap: 8px;
}

.wr-role-status-block.is-visible {
    display: flex;
}

.wr-role-status-block .wr-role-status-text {
    font-size: 13px;
    color: #4a5568;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    width: 100%;
}

.wr-role-status-block .wr-role-status-text strong {
    color: #111827;
    margin-left: 4px;
}

.wr-role-status-block .wr-role-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    color: #4a5568 !important;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
}

.wr-role-status-block .wr-role-switch-btn:hover {
    background-color: #f7fafc;
    color: #2d3748 !important;
    border-color: #cbd5e0;
}

.wr-role-status-block .wr-role-switch-btn i {
    font-size: 14px;
}

/* Make "Sukurti užsakymą" button green */
.wr-dashboard-sidebar-action-button .wr-dashboard-sidebar-buttons {
    background-color: #28a745 !important;
    color: #ffffff !important;
    border-color: #28a745 !important;
}

.wr-dashboard-sidebar-action-button .wr-dashboard-sidebar-buttons:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
    color: #ffffff !important;
}

/* Make "Prisijungti" button green and match "Registruotis" button */
.wr-navbarbtn .wr-btn.wr-login,
.wr-navbarbtn .wr-login,
a.wr-btn.wr-login.wr-navbarbtn,
a.wr-login.wr-navbarbtn {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 30px !important;
    font: 700 16px/28px "Inter", sans-serif !important;
    border-radius: 10px !important;
    -webkit-border-radius: 10px !important;
    -moz-border-radius: 10px !important;
    border: 1.5px solid #28a745 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    min-width: auto !important;
    letter-spacing: 0.5px !important;
    line-height: 28px !important;
}

.wr-navbarbtn .wr-btn.wr-login:hover,
.wr-navbarbtn .wr-login:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
    color: #ffffff !important;
}

/* Mobile version - make "Prisijungti" button green */
@media (max-width: 991px) {
    .wr-navbarbtn .wr-btn.wr-login,
    .wr-navbarbtn .wr-login,
    a.wr-btn.wr-login.wr-navbarbtn,
    a.wr-login.wr-navbarbtn,
    .wr-mobile-menu .wr-btn.wr-login,
    .wr-mobile-menu .wr-login {
        background-color: #28a745 !important;
        border-color: #28a745 !important;
        color: #ffffff !important;
    }
    
    .wr-navbarbtn .wr-btn.wr-login:hover,
    .wr-navbarbtn .wr-login:hover,
    .wr-mobile-menu .wr-btn.wr-login:hover,
    .wr-mobile-menu .wr-login:hover {
        background-color: #218838 !important;
        border-color: #1e7e34 !important;
        color: #ffffff !important;
    }
}

/* Fix datepicker day alignment - center numbers in circles */
.ui-datepicker-calendar td {
    text-align: center;
    vertical-align: middle;
    padding: 0;
}

.ui-datepicker-calendar td a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100%;
    height: 100%;
    line-height: 1 !important;
    padding: 0.5em !important;
}


/* ACF formų mygtukų spalvos - padaryti žalias vietoj geltonos */
/* "Pridėti nuotrauką" mygtukas (ACF Gallery) */
.acf-field-gallery .acf-button.button-primary,
.acf-field-gallery .acf-gallery-add,
.acf-field-gallery .acf-button.acf-gallery-add,
.acf-field-gallery a.acf-button.button-primary,
.acf-field-gallery .button.button-primary {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}

.acf-field-gallery .acf-button.button-primary:hover,
.acf-field-gallery .acf-gallery-add:hover,
.acf-field-gallery .acf-button.acf-gallery-add:hover,
.acf-field-gallery a.acf-button.button-primary:hover,
.acf-field-gallery .button.button-primary:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
    color: #ffffff !important;
}

/* "Pridėti darbų kategoriją" mygtukas (ACF Taxonomy) */
.acf-field-taxonomy .acf-button.button-primary,
.acf-field-taxonomy .acf-button.button,
.acf-field-taxonomy .acf-button,
.acf-field-taxonomy a.acf-button.button-primary,
.acf-field-taxonomy .button.button-primary,
.darbu_kategorija .acf-button.button,
.darbu_kategorija .acf-button.button-primary,
#darbu_kategorija .acf-button.button,
#darbu_kategorija .acf-button.button-primary {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}

.acf-field-taxonomy .acf-button.button-primary:hover,
.acf-field-taxonomy .acf-button.button:hover,
.acf-field-taxonomy .acf-button:hover,
.acf-field-taxonomy a.acf-button.button-primary:hover,
.acf-field-taxonomy .button.button-primary:hover,
.darbu_kategorija .acf-button.button:hover,
.darbu_kategorija .acf-button.button-primary:hover,
#darbu_kategorija .acf-button.button:hover,
#darbu_kategorija .acf-button.button-primary:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
    color: #ffffff !important;
}

/* Eilučių aukštis sumažintas trečdaliu – darbų kategorijų ir darbų pasirinkimas */
/* ACF darbų kategorija: line-height ~22px → ~15px (2/3), mažesnis tarpas tarp eilučių */
.darbu_kategorija .acf-checkbox-list li,
.darbu_kategorija .acf-taxonomy-field .acf-checkbox-list li,
#darbu_kategorija .acf-checkbox-list li,
#darbu_kategorija .acf-taxonomy-field .acf-checkbox-list li,
.acf-field[data-name="darbu_kategorija"] .acf-checkbox-list li {
    line-height: 1.1 !important;
    padding-top: 0.1em !important;
    padding-bottom: 0.1em !important;
    min-height: 0 !important;
}
.acf-field-taxonomy .acf-checkbox-list {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}
.acf-field-taxonomy .acf-checkbox-list li {
    line-height: 1.1 !important;
    padding-top: 0.05em !important;
    padding-bottom: 0.05em !important;
}
/* Filtrai: kategorijos, skills, tags, expertise, languages – eilutės siauresnės trečdaliu */
.wr-categoriesfilter li,
.wr-skillstermsfilter li,
.wr-skillstermsfilter .wr-form-checkbox,
.wr-expertisetermsfilter li,
.wr-expertisetermsfilter .wr-form-checkbox,
.wr-languagetermsfilter li,
.wr-languagetermsfilter .wr-form-checkbox,
.wr-filterselect .wr-form-checkbox,
.wr-filterselect ul li {
    line-height: 1.1 !important;
    padding-top: 0.15em !important;
    padding-bottom: 0.15em !important;
}
.wr-form-checkbox label,
.wr-form-checkbox .form-check-label {
    line-height: 1.1 !important;
}

/* Darbų kategorijų lentelė – visas aukštis sumažintas trečdaliu (~2/3 buvusio aukščio) */
/* Taikoma projekto formoms: .acf-repeater (ACF) ir .acf-list-items (Frontend Admin) */
.wr-project-wrapper .acf-repeater .acf-table > tbody > tr > td,
.wr-project-wrapper .acf-repeater .acf-table > thead > tr > th,
.wr-project-wrapper .acf-repeater .acf-table tr.acf-field > td,
.wr-project-wrapper .acf-list-items .acf-table > tbody > tr > td,
.wr-project-wrapper .acf-list-items .acf-table > thead > tr > th,
.wr-project-wrapper .acf-list-items table > tbody > tr > td,
.wr-project-wrapper .acf-list-items table > thead > tr > th,
.wr-aboutprojectstep .acf-repeater .acf-table > tbody > tr > td,
.wr-aboutprojectstep .acf-repeater .acf-table > thead > tr > th,
.wr-aboutprojectstep .acf-repeater .acf-table tr.acf-field > td,
.wr-aboutprojectstep .acf-list-items .acf-table > tbody > tr > td,
.wr-aboutprojectstep .acf-list-items .acf-table > thead > tr > th,
.wr-aboutprojectstep .acf-list-items table > tbody > tr > td,
.wr-aboutprojectstep .acf-list-items table > thead > tr > th,
.wr-project-wrapper #acf-form .acf-repeater .acf-table > tbody > tr > td,
.wr-project-wrapper #acf-form .acf-repeater .acf-table > thead > tr > th,
.wr-project-wrapper #acf-form .acf-repeater .acf-table tr.acf-field > td,
.wr-project-wrapper #acf-form .acf-list-items .acf-table > tbody > tr > td,
.wr-project-wrapper #acf-form .acf-list-items table > tbody > tr > td,
.acf-field[data-name="darbu_kategorijos"] .acf-table > tbody > tr > td,
.acf-field[data-name="darbu_kategorijos"] .acf-table > thead > tr > th,
.acf-field[data-name="darbu_kategorijos"] .acf-repeater .acf-table > tbody > tr > td,
.acf-field[data-name="darbu_kategorijos"] .acf-repeater .acf-table > thead > tr > th {
    padding: 2px 4px !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
}
/* Mažesnis tarpas tarp stulpelių (tarp kairio ir dešinio lauko) ir tarp eilučių */
.wr-project-wrapper .acf-repeater .acf-table > tbody > tr > td,
.wr-project-wrapper .acf-repeater .acf-table > thead > tr > th,
.wr-project-wrapper .acf-repeater .acf-table tr.acf-field > td,
.wr-project-wrapper .acf-list-items .acf-table > tbody > tr > td,
.wr-project-wrapper .acf-list-items .acf-table > thead > tr > th,
.wr-project-wrapper .acf-list-items table > tbody > tr > td,
.wr-project-wrapper .acf-list-items table > thead > tr > th,
.wr-aboutprojectstep .acf-repeater .acf-table > tbody > tr > td,
.wr-aboutprojectstep .acf-repeater .acf-table > thead > tr > th,
.wr-aboutprojectstep .acf-repeater .acf-table tr.acf-field > td,
.wr-aboutprojectstep .acf-list-items .acf-table > tbody > tr > td,
.wr-aboutprojectstep .acf-list-items .acf-table > thead > tr > th,
.wr-aboutprojectstep .acf-list-items table > tbody > tr > td,
.wr-aboutprojectstep .acf-list-items table > thead > tr > th,
.wr-project-wrapper #acf-form .acf-repeater .acf-table > tbody > tr > td,
.wr-project-wrapper #acf-form .acf-repeater .acf-table > thead > tr > th,
.wr-project-wrapper #acf-form .acf-repeater .acf-table tr.acf-field > td,
.wr-project-wrapper #acf-form .acf-list-items .acf-table > tbody > tr > td,
.wr-project-wrapper #acf-form .acf-list-items table > tbody > tr > td,
.acf-field[data-name="darbu_kategorijos"] .acf-table > tbody > tr > td,
.acf-field[data-name="darbu_kategorijos"] .acf-table > thead > tr > th,
.acf-field[data-name="darbu_kategorijos"] .acf-repeater .acf-table > tbody > tr > td,
.acf-field[data-name="darbu_kategorijos"] .acf-repeater .acf-table > thead > tr > th {
    padding: 2px 4px !important;
}
/* Dar mažesnis tarpas tarp dviejų stulpelių (tarp „Medžių priežiūra“ ir „Medžio kirtimas“) */
.wr-project-wrapper .acf-repeater .acf-table tbody tr td:first-child,
.wr-project-wrapper .acf-list-items .acf-table tbody tr td:first-child,
.wr-aboutprojectstep .acf-repeater .acf-table tbody tr td:first-child,
.wr-aboutprojectstep .acf-list-items table tbody tr td:first-child,
.wr-project-wrapper #acf-form .acf-repeater .acf-table tbody tr td:first-child,
.wr-project-wrapper #acf-form .acf-list-items table tbody tr td:first-child,
body .wr-project-wrapper table.acf-table tbody tr td:first-child,
body .wr-aboutprojectstep table.acf-table tbody tr td:first-child {
    padding-right: 3px !important;
}
.wr-project-wrapper .acf-repeater .acf-table tbody tr td:last-child,
.wr-project-wrapper .acf-list-items .acf-table tbody tr td:last-child,
.wr-aboutprojectstep .acf-repeater .acf-table tbody tr td:last-child,
.wr-aboutprojectstep .acf-list-items table tbody tr td:last-child,
.wr-project-wrapper #acf-form .acf-repeater .acf-table tbody tr td:last-child,
.wr-project-wrapper #acf-form .acf-list-items table tbody tr td:last-child,
body .wr-project-wrapper table.acf-table tbody tr td:last-child,
body .wr-aboutprojectstep table.acf-table tbody tr td:last-child {
    padding-left: 3px !important;
}
/* Atsarginis: aukštesnis specifiškumas – bet kuri .acf-table projekto formoje */
body .wr-project-wrapper table.acf-table tbody tr td,
body .wr-project-wrapper table.acf-table thead tr th,
body .wr-aboutprojectstep table.acf-table tbody tr td,
body .wr-aboutprojectstep table.acf-table thead tr th {
    padding: 2px 4px !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
}
body .wr-project-wrapper table.acf-table .acf-input input[type="text"],
body .wr-project-wrapper table.acf-table .acf-input input[type="number"],
body .wr-project-wrapper table.acf-table .acf-input select,
body .wr-aboutprojectstep table.acf-table .acf-input input[type="text"],
body .wr-aboutprojectstep table.acf-table .acf-input input[type="number"],
body .wr-aboutprojectstep table.acf-table .acf-input select {
    min-height: 28px !important;
    height: 28px !important;
    padding: 3px 6px !important;
    line-height: 1.3 !important;
    font-size: 14px !important;
}
.wr-project-wrapper .acf-repeater tr.acf-field > td.acf-label,
.wr-project-wrapper .acf-repeater tr.acf-field > td.acf-input,
.wr-project-wrapper .acf-list-items tr > td,
.wr-aboutprojectstep .acf-repeater tr.acf-field > td.acf-label,
.wr-aboutprojectstep .acf-repeater tr.acf-field > td.acf-input,
.wr-aboutprojectstep .acf-list-items tr > td,
.wr-project-wrapper #acf-form .acf-repeater tr.acf-field > td.acf-label,
.wr-project-wrapper #acf-form .acf-repeater tr.acf-field > td.acf-input,
.wr-project-wrapper #acf-form .acf-list-items tr > td,
.acf-field[data-name="darbu_kategorijos"] .acf-table tr.acf-field > td.acf-label,
.acf-field[data-name="darbu_kategorijos"] .acf-table tr.acf-field > td.acf-input,
.acf-field[data-name="darbu_kategorijos"] .acf-repeater tr.acf-field > td.acf-label,
.acf-field[data-name="darbu_kategorijos"] .acf-repeater tr.acf-field > td.acf-input {
    padding: 3px 4px !important;
}
.wr-project-wrapper .acf-repeater .acf-input input[type="text"],
.wr-project-wrapper .acf-repeater .acf-input input[type="number"],
.wr-project-wrapper .acf-repeater .acf-input select,
.wr-project-wrapper .acf-list-items input[type="text"],
.wr-project-wrapper .acf-list-items input[type="number"],
.wr-project-wrapper .acf-list-items select,
.wr-aboutprojectstep .acf-repeater .acf-input input[type="text"],
.wr-aboutprojectstep .acf-repeater .acf-input input[type="number"],
.wr-aboutprojectstep .acf-repeater .acf-input select,
.wr-aboutprojectstep .acf-list-items input[type="text"],
.wr-aboutprojectstep .acf-list-items input[type="number"],
.wr-aboutprojectstep .acf-list-items select,
.wr-project-wrapper #acf-form .acf-repeater .acf-input input[type="text"],
.wr-project-wrapper #acf-form .acf-repeater .acf-input input[type="number"],
.wr-project-wrapper #acf-form .acf-repeater .acf-input select,
.wr-project-wrapper #acf-form .acf-list-items input[type="text"],
.wr-project-wrapper #acf-form .acf-list-items input[type="number"],
.wr-project-wrapper #acf-form .acf-list-items select,
.acf-field[data-name="darbu_kategorijos"] .acf-table .acf-input input[type="text"],
.acf-field[data-name="darbu_kategorijos"] .acf-table .acf-input input[type="number"],
.acf-field[data-name="darbu_kategorijos"] .acf-table .acf-input select,
.acf-field[data-name="darbu_kategorijos"] .acf-repeater .acf-input input[type="text"],
.acf-field[data-name="darbu_kategorijos"] .acf-repeater .acf-input input[type="number"],
.acf-field[data-name="darbu_kategorijos"] .acf-repeater .acf-input select {
    min-height: 28px !important;
    height: 28px !important;
    padding: 3px 6px !important;
    line-height: 1.3 !important;
    font-size: 14px !important;
}
.wr-project-wrapper .acf-repeater .acf-label label,
.wr-project-wrapper .acf-list-items .acf-label label,
.wr-project-wrapper .acf-list-items label,
.wr-aboutprojectstep .acf-repeater .acf-label label,
.wr-aboutprojectstep .acf-list-items label,
.wr-project-wrapper #acf-form .acf-repeater .acf-label label,
.wr-project-wrapper #acf-form .acf-list-items label,
.acf-field[data-name="darbu_kategorijos"] .acf-table .acf-label label,
.acf-field[data-name="darbu_kategorijos"] .acf-repeater .acf-label label {
    line-height: 1.3 !important;
    margin: 0 !important;
    font-size: 14px !important;
}
.wr-project-wrapper .acf-repeater .acf-fields,
.wr-project-wrapper .acf-list-items .acf-fields,
.wr-aboutprojectstep .acf-repeater .acf-fields,
.wr-aboutprojectstep .acf-list-items .acf-fields,
.wr-project-wrapper #acf-form .acf-repeater .acf-fields,
.wr-project-wrapper #acf-form .acf-list-items .acf-fields,
.acf-field[data-name="darbu_kategorijos"] .acf-table .acf-fields,
.acf-field[data-name="darbu_kategorijos"] .acf-repeater .acf-fields {
    margin: 0 !important;
}
.wr-project-wrapper .acf-repeater .acf-field,
.wr-project-wrapper .acf-list-items .acf-field,
.wr-aboutprojectstep .acf-repeater .acf-field,
.wr-aboutprojectstep .acf-list-items .acf-field,
.wr-project-wrapper #acf-form .acf-repeater .acf-field,
.wr-project-wrapper #acf-form .acf-list-items .acf-field,
.acf-field[data-name="darbu_kategorijos"] .acf-table .acf-field,
.acf-field[data-name="darbu_kategorijos"] .acf-repeater .acf-field,
.wr-project-wrapper .acf-repeater .acf-field,
.wr-project-wrapper .acf-list-items .acf-field,
.wr-aboutprojectstep .acf-repeater .acf-field,
.wr-aboutprojectstep .acf-list-items .acf-field,
.wr-project-wrapper #acf-form .acf-repeater .acf-field,
.wr-project-wrapper #acf-form .acf-list-items .acf-field {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.wr-project-wrapper .acf-repeater .acf-fields,
.wr-project-wrapper .acf-list-items .acf-fields,
.wr-aboutprojectstep .acf-repeater .acf-fields,
.wr-aboutprojectstep .acf-list-items .acf-fields {
    margin: 0 !important;
    padding: 0 !important;
}
.wr-project-wrapper .acf-repeater .acf-row:not(.acf-clone),
.wr-project-wrapper .acf-list-items .acf-row:not(.acf-clone),
.wr-aboutprojectstep .acf-repeater .acf-row:not(.acf-clone),
.wr-aboutprojectstep .acf-list-items .acf-row:not(.acf-clone) {
    margin-bottom: 0 !important;
    padding: 0 !important;
}
.wr-project-wrapper .acf-repeater .categorychecklist-holder,
.wr-project-wrapper .acf-repeater .acf-checkbox-list,
.wr-project-wrapper .acf-list-items .categorychecklist-holder,
.wr-project-wrapper .acf-list-items .acf-checkbox-list,
.wr-aboutprojectstep .acf-repeater .categorychecklist-holder,
.wr-aboutprojectstep .acf-repeater .acf-checkbox-list,
.wr-aboutprojectstep .acf-list-items .categorychecklist-holder,
.wr-aboutprojectstep .acf-list-items .acf-checkbox-list,
.wr-project-wrapper #acf-form .acf-repeater .categorychecklist-holder,
.wr-project-wrapper #acf-form .acf-repeater .acf-checkbox-list,
.wr-project-wrapper #acf-form .acf-list-items .categorychecklist-holder,
.wr-project-wrapper #acf-form .acf-list-items .acf-checkbox-list,
.acf-field[data-name="darbu_kategorijos"] .acf-repeater .categorychecklist-holder,
.acf-field[data-name="darbu_kategorijos"] .acf-repeater .acf-checkbox-list {
    padding: 2px 4px !important;
}
.wr-project-wrapper .acf-repeater .acf-checkbox-list li,
.wr-project-wrapper .acf-list-items .acf-checkbox-list li,
.wr-aboutprojectstep .acf-repeater .acf-checkbox-list li,
.wr-aboutprojectstep .acf-list-items .acf-checkbox-list li,
.wr-project-wrapper #acf-form .acf-repeater .acf-checkbox-list li,
.wr-project-wrapper #acf-form .acf-list-items .acf-checkbox-list li,
.acf-field[data-name="darbu_kategorijos"] .acf-repeater .acf-checkbox-list li {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.15 !important;
}

