.candidate-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    margin-bottom: 10px;
    margin-top: 10px;
    padding: 20px 20px 20px 10px;
    border-bottom: 2px solid #cacaca;
    flex-wrap: wrap; /* wrap allow */
    cursor: move;
    background-color: #e7e7e7;
}

/* प्रत्येक child लाई flexible बनाउने */
.candidate-row > .field-group {
    flex: 1 1 250px; /* min width 250px राखी scale अनुसार adjust हुने */
    box-sizing: border-box;
}

/* Desktop भन्दा सानोमा full width */
@media (max-width: 768px) {
    .candidate-row {
        padding: 15px 15px 25px 15px;
        cursor: default;
    }

    .candidate-row .field-group {
        flex: 1 1 100%;
        min-width: 95% !important;
    }

    .add-candidate-button {
        width: 100% !important;
        margin-top: -15px !important;
    }

    input[type="url"] {
        width: 100% !important;
        margin-top: 0px !important;
    }

    .field-group-link {
        padding-right: 0px!important;
    }

    .candidate-row .logo-thumbnail {
        margin-left: 15px !important;
    }

    button.upload-photo-button,
    button.upload-logo-button,
    button.remove-photo-button,
    button.remove-logo-button {
        margin-top: 10px!important;
    }
}







button.upload-photo-button {
	white-space: nowrap;
}

button.upload-logo-button {
	white-space: nowrap;
}

button.remove-photo-button {
	white-space: nowrap;
}

button.remove-logo-button {
	white-space: nowrap;
}

.field-group-link {
    width: 100%;
	padding-right: 20px;
}

input[type="url"] {
    width: 40%;
	margin-top: 0px;
}

.candidate-row .field-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 130px;
}

.candidate-row label {
    font-weight: bold;
    margin-bottom: 5px;
}

.candidate-row .photo-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin-top: 10px;
}

.candidate-row .logo-thumbnail img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    margin-top: 15px;
}

.candidate-row .photo-thumbnail {
    margin-right: -10px;
    border-radius: 50%;
}

.candidate-row .logo-thumbnail {
    margin-left: 0px;
    border-radius: 50%;
    margin-right: -10px;
}

.complete-election {
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
}

label.complete-text {
    margin-right: 5px;
}

input#election_complete {
    margin-top: 2px;
}

button.upload-photo-button,
button.upload-logo-button,
button.remove-photo-button,
button.remove-logo-button {
    margin-top: 25px;
}

button.remove-photo-button,
button.remove-logo-button {
    display: none;
}

button#add-candidate {
    margin-top: 0px;
    margin-bottom: 20px;
}

#candidates-container {
    margin-bottom: 20px;
}

.sortable-placeholder {
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    height: 80px;
}

.add-candidate-button {
    background-color: #a5a5a5;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
}

.add-candidate-button:hover {
    background: #858585;
}

.add-save-button {
    margin-top: 15px;
    background-color: #007cba;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.add-save-button:hover {
    background: #096796;
}

.import-election-center {
    margin-bottom: 20px;
}
