﻿*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    height: auto;
}

.mainBodyOnePage {
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.twelve.columns {
    padding: 25px;
}

.panel {
    background: white;
    border: none;
}

h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 28px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

p {
    margin-bottom: 15px;
    color: #555;
}

.required-legend {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
    font-size: 14px;
    color: #2c3e50;
}

    .required-legend span {
        color: #e74c3c;
        font-weight: bold;
        margin-right: 5px;
    }

form.custom {
    margin-top: 20px;
}

.row {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

    label.required::after {
        content: " *";
        color: #e74c3c;
    }

input[type="text"],
input[type="date"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border 0.3s;
}

    input:focus,
    select:focus {
        outline: none;
        border-color: #3498db;
        box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
    }

.worker-data-step2 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.subtitles-data {
    font-weight: 600;
    color: #2c3e50;
}

.column-left,
.column-right {
    flex: 1;
    min-width: 300px;
}

.column-content {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

.date-control-container {
    flex: 1;
}

.autocomplete {
    position: relative;
    width: 100%;
}

.reset-button {
    position: absolute;
    right: 10px;
    top: 38px;
    cursor: pointer;
    color: #999;
    font-size: 16px;
}

    .reset-button:hover {
        color: #666;
    }

#listSelectWorkerType {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 10;
    display: none;
}

    #listSelectWorkerType li {
        padding: 10px;
        cursor: pointer;
        list-style: none;
    }

        #listSelectWorkerType li:hover {
            background: #f0f0f0;
        }

.buttons-container {
    margin-top: 25px;
    text-align: right;
}

.button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

    .button:hover {
        background: #2980b9;
    }

.invalidDocumentLabel {
    color: #e74c3c;
    margin: 15px 0;
    display: none;
}

.reveal-modal {
    top: 550px !important;
}

.autocomplete {
    display: inline-block;
    position: relative;
    max-width: 328px;
}

#inputSelectWorkerType {
    max-width: 328px;
}

.buttons-container {
    display: flex;
    justify-content: flex-end;
    padding-top: 16px;
}

    .buttons-container a {
        margin-left: 16px;
    }

.container-control > label,
.row > label {
    padding: 12px 0 4px;
}

.container-control-flex {
    display: flex;
    flex-wrap: wrap;
}

    .container-control-flex label {
        display: block;
        flex: 1 1 auto;
        width: 100%;
    }

.date-row {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.field-validation-error {
    display: block;
    margin-top: 0;
    max-width: 376px;
}

.field-validation-valid {
    display: none;
}

.form-control.form-text-datetime {
    max-width: 150px;
}

.invalidDocumentLabel {
    color: tomato;
    display: none;
}

.modal-description {
    font-size: 16px;
    font-weight: bold;
}

.neighborhood-container {
    position: relative;
}

.nsBodyContainer .content {
    margin-left: 0;
}

.reset-button {
    color: #979696;
    cursor: pointer;
    font-size: 15px;
    left: 350px;
    position: absolute;
    top: 20px;
}

    .reset-button:hover {
        color: #ffffff;
        transition: color 0.3s;
    }

#inputSelectWorkerType {
    min-width: 376px;
    padding: 10px;
    width: 300px;
}

#listSelectWorkerType {
    list-style-type: none;
    margin: 0;
    min-width: 376px;
    padding: 0;
    position: absolute;
    z-index: 1;
}

    #listSelectWorkerType li {
        background-color: #f6f6f6;
        border: 1px solid #ddd;
        cursor: pointer;
        margin-top: -1px;
        padding: 8px;
    }

        #listSelectWorkerType li:hover {
            background-color: #ddd;
        }

#restrictionsContainer {
    display: none;
    font-size: 16px;
    padding: 20px 0;
}

    #restrictionsContainer.hasRestrictions {
        color: tomato;
        display: block;
        font-weight: bold;
    }

    #restrictionsContainer.hasNoRestrictions {
        color: darkgreen;
        display: block;
        font-weight: bold;
    }


#txtDocument::-webkit-inner-spin-button,
#txtDocument::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.unit-container {
    width: 110px;
}

.worker-data-step2 {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.column-left,
.column-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.column-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.date-control-container {
    margin-right: 25px;
}

.date-controls {
    display: flex;
    flex-wrap: wrap;
    max-width: 376px !important;
}

.column-left,
.column-right {
    flex: 1;
    min-width: 300px;
}

.neigh-unit-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
}

.margin-rigth-0 {
    margin-right: 0px;
}

#myModal .modalDescription ul.validation-errors {
    list-style-type: disc;
    padding-left: 20px;
    margin: 15px 0;
}

    #myModal .modalDescription ul.validation-errors li {
        margin-bottom: 8px;
        color: #b00020;
        font-size: 14px;
        line-height: 1.4;
    }

.button {
    padding: 12px 24px !important;
}

.neigh-unit-container {
    display: flex;
    flex-wrap: wrap;
}

.neighborhood-container {
    width: 60%;
    margin-right: 25px;
}

.unit-container {
    width: 113px;
}

.custom .dropdown {
    display: none !important;
}

#selectNeighborhood {
    height: 48px;
    width: 100%;
    display: block !important;
    background-color: #EEEEEE;
    color: #606060;
    border-color: #30A6CA !important;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

    #selectNeighborhood:disabled {
        background-color: #dedede !important;
        border-color: #ccc !important;
        color: #606060 !important;
    }

.taker-info {
    font-size: 16px;
    font-weight: 700;
    padding-left: 20px;
}

    .taker-info b {
        font-weight: 300;
    }

@media screen and (max-width: 768px) {
    .worker-data-step2 {
        flex-direction: column;
    }

    .date-controls,
    .neigh-unit-container {
        flex-direction: column;
    }

    .neighborhood-container {
        width: 328px;
    }

    .autocomplete {
        width: 100%;
        max-width: 328px;
        position: relative;
        display: inline-block;
        box-sizing: border-box;
    }

    #listSelectWorkerType {
        width: 100%;
        min-width: 328px;
        max-width: 328px;
        position: absolute;
        list-style-type: none;
        padding: 0;
        margin: 0;
        z-index: 1;
        box-sizing: border-box;
    }

    #inputSelectWorkerType {
        width: 100%;
        min-width: 328px;
        max-width: 328px;
        padding: 10px;
        box-sizing: border-box;
    }

    .reset-button {
        left: 300px;
    }

    .date-control-container {
        margin-right: 0px !important;
        width: 100%;
    }

    .column-right .column-content {
        width: 358px;
    }

    .unit-container {
        margin-top: 13px;
        width: 100%;
    }
}

@media screen and (max-width: 435px) {
    .date-control-container {
        margin-right: 0px !important;
        width: 100%;
    }

    .neighborhood-container {
        width: auto;
        margin-right: 0px;
    }

    .neigh-unit-container {
        display: block;
    }

    #listSelectWorkerType {
        width: 100%;
        min-width: 330px;
        max-width: 330px;
    }

    #inputSelectWorkerType {
        min-width: 330px;
    }

    .reset-button {
        left: 300px;
    }

    .unit-container {
        margin-top: 13px;
        width: 100%;
    }

    .column-left,
    .column-right {
        flex: 1;
        min-width: 350px;
    }

    .column-right .column-content,
    .column-left .column-content {
        width: 100%;
    }

    .taker-info {
        font-size: 14px;

    }
}

@media screen and (max-width: 400px) {
    .column-content {
        width: 80%!important;
    }

    #inputSelectWorkerType {
        min-width: 250px;
    }

    .reset-button {
        left: 220px;
    }
}