.seqNo-section {
    flex: unset !important;
    align-items: start !important;
}

.required-question {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="10" width="10"><text x="0" y="8" font-size="10" fill="red">*</text></svg>');
    background-repeat: no-repeat;
    background-position-y: 14px;
    background-position-x: 2px;
}

td.required-question {
    background-position-y: 10px !important;
    background-position-x: 2px !important;
}

.question-section {
    flex-direction: column;
    align-items: start !important;
    padding-left: 0px !important;
    padding-right: 8px !important;
}

.required-answer {
    position: relative;
}

.required-answer::before {
    content: '*';
    color: red;
    position: absolute;
    left: -10px;   /* can be outside element */
    top: 0;
}

.option-answer {
    flex: 2;
    text-align: center;
}

.option-score {
    max-width: 80px;
    text-align: center;
}

.option-actions {
    display: flex;
    gap: 3px;
    justify-content: center;
    max-width: 115px;
    min-width: 115px;
}

.number-scores-actions {
    display: flex;
    gap: 3px;
    justify-content: center;
    max-width: 50px;
}

.color-presets-actions {
    display: flex;
    gap: 3px;
    justify-content: center;
    max-width: 125px;
}

.answer-fields-actions {
    display: flex;
    gap: 3px;
    justify-content: center;
    max-width: 129px;
}

.option-score input, .number-scores input, .answer-fields input, .answer-fields select {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.option-answer input {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.option-actions .option,
.number-scores-actions .number-scores,
.answer-fields-actions .answer-fields {
    height: 14px;
    max-width: 14px;
    min-width: 10px;
}

.number-min, .number-max, .number-score {
    max-width: 100px;
}

.number-field-type {
    max-width: 102px;
    width: 102px;
}

.number-caption {
    max-width: 111px;
    width: 111px;
}

.number-required, .number-attachment {
    max-width: 24px;
    text-align: center;
}

input[name="answerFieldRequired"], input[name="answerFieldAllowAttachments"] {
    max-width: 16px;
}

.radiogroup label {
    margin-right: 0px;
}

.modal-table-row.options:last-of-type .resp-grid-action-btn.option,
.modal-table-row.number-scores:last-of-type .resp-grid-action-btn.number-scores,
.modal-table-row.answer-fields:last-of-type .resp-grid-action-btn.answer-fields,
.resp-grid-row.multi-answer-options:last-of-type .resp-grid-action-btn.multi-answer-option {
    display: none;
}

.yesno-label {
    display: inline-flex;
    align-items: baseline;
}

.yesno-label:last-of-type {
    margin-right: 8px;
}

.yesno-controls {
    display: flex;
}

.yesno-controls:has(label) {
    position: relative;
    left: -4px;
}

.yesno-controls input[type="text"] {
    margin-right: -4px;
}

.edit-number {
    max-width: 60px;
}

input[type="number"] {
    text-align: right;
}

.edit-date {
    max-width: 90px;
}

.edit-date-time {
    max-width: 176px;
}

.edit-time {
    width: 100px !important;
    max-width: 100px;
}

.sectionName {
    width: 100%;
}

#generateLinksModal .resp-form-header {
    min-height: 25px;
}

#generateLinksModal .resp-modal-content {
    max-width: 900px;
}

#editSavedLinkModal .resp-modal-content {
    max-width: 800px;
}

#generateLinksModal .resp-grid-action-btn {
    max-width: unset !important;
}

#saved-links-grid, #all-actions-grid {
    font-size: 12px;
}

.button.add-link {
    font-size: 12px;
    font-weight: bold;
}

#editQuestionForm label,
#editUserFieldForm label,
#editNotificationForm label,
#editActionForm label,
#editColorPresetForm label {
    font-size: 12px;
    top: 4px;
}

#editActionForm input[type="radio"] {
    height: 16px;
}

#editActionForm .chzn-container,
#editActionForm .chzn-drop {
    width: 100% !important;
}

#editTargetHasTime, #editTagHasTime {
    margin-left: 10px;
}

#editTargetTime, #editTagTime {
    max-width: 80px;
}

#editConditionCheckbox {
    height: 16px;
    width: 16px;
    flex-grow: initial;
}

.small-checkbox {
    height: 16px;
    width: 16px;
    flex-grow: initial !important;
    position: relative;
    left: -4px;
}

label:has(input[type="radio"]) {
    position: relative;
    top: -1px !important;
}

label input[type="radio"] {
    position: relative;
    top: 2px;
}

.multiple-answers label input[type="checkbox"] {
    position: relative;
    top: 2px;
}

.label-shift-1px {
    position: relative;
    top: -1px;
}

.resp-grid-cell input[type="text"] {
    width: 100%;
}

.from-date-label {
    min-width: 127px;
}

.to-date-label {
    min-width: 111px;
}

.from-time-label {
    min-width: 164px;    
}

.to-time-label {
    min-width: 146px;    
}

.answer:has(.number-label),
.answer:has(.calculated-label) {
    display: flex;
    gap: 4px;
}

.number-label, .calculated-label {
    align-content: center;
    margin-bottom: 0px;
}

.number-label:empty, .calculated-label:empty {
    display: none;
}

.simple-border {
    border: 1px solid #ccc;
}

.no-border {
    border: none !important;
    box-shadow: none !important;
}

.number-question-section {
    display:flex; 
    flex-grow: 1; 
    flex-direction: column;
}

.number-top-question-section {
    display:flex; 
    flex-grow: 1; 
    flex-direction: row;
}

.number-answer-row {
    border-top: 1px solid #ccc;
    padding-bottom: 4px;
    width: calc(100% - 8px);
    margin-bottom: 6px;
}

.number-answer-row .number-answer {
    padding-top: 4px;
    text-align: left;
    display: flex;
    flex-direction: row;
}  

.number-answer-vertical {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: end;
}

.number-answer input[type="number"]{
    max-width: 80px;
}

.address-edit-field input {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    flex: 1 1 0;
}

.tristate-checkbox {
    margin-right: 5px;
}

.checklist-yes-no-cell {
    max-width: 110px;
}

.green-radio {
    accent-color: #088d08 !important;
}

.red-radio {
    accent-color: #EE0000 !important;
}

.stats-name-column {
    min-width: 100px;
    padding-left: 10px !important;
}

.stats-column {
    min-width: 100px;
    text-align: center;
}

.full-width-input {
    width: 100%;
}

#cancel-test-button {
    float: right;
    height: 28px;
    font-size: 14px;
}

.scores {
    display: flex;
    flex-wrap: wrap;
}

.multiple-answers {
    display: flex;
    flex-direction: column;
    position: relative;
    left: -4px;
}

.condition-select {
    max-width: 135px !important;
    margin-right: 8px;
}

#editConditionRange {
    max-width: 80px !important;
}

#editConditionNotEmpty-date-range, #editConditionNotEmpty-number {
    min-width: 16px;
}

#editParentQuestion {
    background-color: white;
}

#editConditionPeriod {
    margin-right: 8px;
}

#scores-section, #parent-section {
    margin-top: 16px;
}

#whole-phrase {
    width: 80px;
    text-align: right;
    margin-right: 0px;
}

.scores-table {
    min-width: initial !important;
    margin-bottom: 10px;
}

#yes-no-maybe-scores-table {
    max-width: 360px;    
}

#text-scores-table {
    max-width: 240px;
}

#date-scores-table, #date-time-scores-table, #time-scores-table {
    max-width: 240px;
}

#date-range-scores-table, #time-range-scores-table {
    max-width: 240px;
}

#checkbox-scores-table {
    max-width: 240px;
}

#address-scores-table {
    max-width: 240px;
}

#checklist-scores-table {
    max-width: 360px;
}

#checklist-yes-no-scores-table {
    max-width: 600px;
}

#yes-no-scores-table {
    max-width: 240px;
}

.decimal-value {
    text-align: right;
}

.numeric-value {
    text-align: right;
    max-width: 100px;
    padding-right: 4px !important;
}

#editThousandSeparator, #editCalcThousandSeparator {
    max-width: 40px;
}

.city-state-country-zip {
    display: flex;
    flex-direction: row;
}

.address-edit-field {
    display: flex;
    gap: 4px;    
    flex-direction: column;
    flex-grow: 1;
}

.address-edit-field:not(:first-child) {    
    margin-left: 4px;
}

.address-edit-field label {
    position: relative;
    top: 2px;
    min-width: 60px;    
}

.address-edit-field:last-child {
    flex-grow: 1;
}

.select-section-body {
    display: flex;
    flex-direction: row;
    gap: 4px;
}

.select-test-list, .select-section-list {
    width: 50%;
}

#shareList {
    width: 100%;
}

.stage-label {
    position: absolute;
    right: 0;
    font-weight: bold;
    border: 1px solid #ccc;   
    padding: 8px; 
}

#validationCode {
    max-width: 70px;
    text-align: center;
    font-family: monospace;
    letter-spacing: 3px;
}

#sendValdationCode {
    margin-left: 4px;
    height: 24px;
    font-size: 12px;    
}

.resp-grid-cell.question-type {
    flex-direction: column;
    padding-bottom: 0px;
    padding-top: 13px;
}

.resp-grid-cell.question-type .question-type-caption {
    justify-content: flex-start;
    display: flex;
    flex: 1;
    box-sizing: border-box;
    width: 100%;
    align-items: center;
}

.resp-grid-cell.question-type .question-icons {
    min-height: 13px;
    max-height: 13px;
    width: 100%;  
    display: flex;  
}

.question-icon {
    cursor: default;
}

.remember-settings-section {
    position: absolute;
    left: 10px;
    bottom: 10px;
}

label[for="editRememberSettings"] {
    color: #999A9A;
    font-weight: bold;
    top: -3px !important;
    position: relative;
}

#editRememberSettings {
    margin-right: 0px;
}

#editModal .resp-grid-header {
    font-size: 14px;
}

.highlighted-question {
    background-color: lightyellow;
    border: 1px dotted #ccc;
    padding-top: 4px;
    padding-bottom: 4px;
}

.question-comments-section p {
    margin-top: 4px;
    margin-bottom: 4px;
}

.search-edit {
    width: 100%;
    border-radius: 0px !important;
    border-left: 1px solid gray !important;
    border-right: 1px solid gray !important;
    border-top: 0px !important;
    border-bottom: 0px !important;
}

.attachments-section, .action-section.question-actions, .question-comments-button-section {
    flex: unset !important;
    align-items: start !important;
    padding-right: 0px !important;
    display: flex !important;
    justify-content: flex-end !important;
    flex-direction: column !important;
}

.question-comments-section {
    text-align: left;
}

.question-comments-section > .seqNo-section {
    visibility: hidden;
    color: transparent;
}

.action-section.question-actions .resp-grid-action-btn,
 .question-comments-button-section .resp-grid-action-btn{
    position: relative;
    right: 8px;
    padding-left: 4px;
    padding-right: 4px; 
}

.stats-attachments-column {
    width: 56px;
    max-width: 56px;
}

.stats-attachments-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.action-section.test-actions {
    justify-content: right;
    padding-top: 0px;
}

.action-section.test-actions .actions,
.action-section.section-actions .actions {
    padding: 4px;
    position: relative;
    right: -10px;
}

.stats-attachments-container .action-section.question-actions {
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
} 

.stats-attachments-container .resp-grid-action-btn:not(:last-of-type) {
    margin-right: 4px;
}

.stats-attachments-container .action-section.question-actions .resp-grid-action-btn {
    right: unset !important;
        
} 

.attachments-img {
    margin-bottom: 4px;    
}

.resp-grid-action-btn.attachments {
    display: flex;
    flex-direction: column;
    min-width: unset !important;
    position: relative;
    left: -8px;
}

.stats-attachments-column .resp-grid-action-btn.attachments {
    left: unset;
}

.resp-grid-cell.actions .resp-grid-action-btn.attachments {
    left: unset;
}

.attachments-answer .resp-grid-action-btn.attachments {
    left: unset;
}

.attachments-answer {
    flex-grow: 0 !important;
    padding-right: 0px !important;
    align-items: end !important;
    padding-bottom: 0px !important;
}

.question .tristate {
    top: -2px;
}

.attachments-grid {
    margin: 4px auto !important;
}

.attachments-grid .resp-grid-cell {
    padding: 0px;
}

.attachments-grid .resp-grid-cell.actions {
    flex: 0 0 90px !important;
    gap: 0px;
}

.attachments-grid .resp-grid-row {
    height: 34px;
}

#attachmentsModal .resp-modal-content {
    max-width: 800px;
}

#productionTaskModal .resp-modal-content {
    max-width: 90%;
    height: 90%;    
}

#evaluationModal .resp-modal-content {
    max-width: 900px;
}

#productionTaskModal label,
#shareModal label,
#evaluationModal label {
    font-size: 13px;
}

#productionTaskModal input[type="date"] {
    max-width: 95px;
}

.question-alias-row {
    font-size: 13px;
}

#cke_editBody, #cke_evaluationText {
    width: 100%;
    height: 100%;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
}

#cke_editBody .cke_inner,
#cke_evaluationText .cke_inner {
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

#cke_editBody .cke_top,
#cke_evaluationText .cke_top {
    border-radius: 4px 4px 0px 0px;
}

#cke_editBody .cke_contents,
#cke_evaluationText .cke_contents {
    height: unset !important;
    flex-grow: 1;
    border-radius: 0px 0px 4px 4px;
}

#cke_editBody .cke_bottom {
    display: none;
}

.cke_button__about, .cke_button__source {
    display: none !important;
}

.cke_button__userfieldsbutton_label {
    display: block !important;
}

.production-task-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.resp-form-group:has(#editBody) {
    height: 100%;
}

#editBody, #evaluationText {
    height: 100%;
    max-height: unset;
}

.resp-form-group:has(#evaluationText)  {
    height: 350px;
}

#editModal .upload {
    height: 24px;
    float: right;
    font-size: 14px;
}

#attachmentsModal .upload,
#evaluationModal .upload {
    float: right;    
}

.attachments-body {
    overflow-y: auto;
}

#comments-attachment-title {
    flex-direction: row;
}

#comments-attachment-title label {
    width: unset !important;
    flex-grow: 1;
    text-align: left;
}

.attachments-status {
    display: flex;
    width: 100%;
    justify-content: right;
}

.attachments-status-icon {
    min-width: 20px;
    min-height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(/Orders/images/spinner.gif);
}

.attachments-status-text {
    margin: 0px 5px 0px 5px;
    align-content: center;
    color: #303030;
}

#question-info {
    position: fixed;
    bottom: 20px;
    left: 0px;
    right: 0px;
    height: 100px;
    width: 100%;
    background: #eeeeee;
    border: 1px solid #ccc;
}

.return-to-test {
    max-width: 300px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.resp-grid-cell.icon {
    max-width: 30px;
}

.actions .resp-grid-action-btn.attachments {
    min-width: 24px !important;
    min-height: 24px;
    margin: 2px;
    border-radius: 5px 5px 5px 5px;
    border: 1px solid #ccc;
    background-color: #068dcd;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    padding: 0px;
}
.actions .resp-grid-action-btn.attachments:hover {
    background-color: #06aef1;
}
.actions .resp-grid-action-btn.attachments:active {
    background-color: #18b9f8;
}
.resp-grid-action-btn.attachments.preview {
    background-image:url(/Orders/images/preview.png);
    background-repeat: no-repeat;
    background-position: center;
}
.actions .resp-grid-action-btn.attachments.disabled{
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed;
    pointer-events: none;
    background-blend-mode: luminosity;
}
.resp-grid-action-btn.attachments.download {
    background-image:url(/Orders/images/download.png?v=1);
    background-repeat: no-repeat;
    background-position: center;
}
.resp-grid-action-btn.attachments.delete {
    background-image:url(/Orders/images/delete.png);
    background-repeat: no-repeat;
    background-position: center;
}

.resp-grid-cell.icon {
    min-width: 34px;
    min-height: 34px;
    background-repeat: no-repeat;
    background-position: center;
}

.group-chart-options {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.group-chart-options span {
    grid-column: 2; /* center column */
    text-align: center;
}

.chart-options-button {
    grid-column: 3;
    justify-self: end;
    float: right;
    height: 20px;
    font-size: 12px;
    min-width: unset;
}

.group-title {
    font-size: 16px;
    font-weight: bold;
    vertical-align: middle;
    margin-top: 10px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.group-title span {
    grid-column: 2; /* center column */
    text-align: center;
    font-weight: bold;
}

.evaluation-button, .evaluated-button, .evaluation-delivered-button {
    grid-column: 3;
    justify-self: end;
    float: right;
    height: 20px;
    font-size: 12px;
    min-width: unset;
}

.evaluated-button.highlighted {
    background-color: #24963d !important;
}

.chart-options-body {
    display: flex;
    gap: 4px;
}

.chart-list {
    flex-grow: 1;    
}

.chart-options label {
    font-size: 13px;
}

.chart-options select {
    width: unset !important;
    max-width: unset !important;
}

.chart-options input {
    width: unset !important;
    max-width: unset !important;
    flex-grow: unset !important;
}

.add-margin-bottom {
    margin-bottom: 4px;
}

#chartOptionsModal .modal-sub-list {
    height: 287px !important;
    border: 1px solid gray;
    border-top-width: 0px;    
}

#chartOptionsModal .modal-sub-body {
    border: 1px solid gray;
    padding-top: 4px;
    padding-right: 4px;
    margin-bottom: 4px;
    border-radius: 0px 0px 4px 4px;
    border-top-width: 0px;
}

.chart-options input[type="checkbox"] {
    position: relative;
    top: -3px;
    left: -4px;
}

#generateLinksModal .resp-grid-container {
    width: 100% !important;
    max-width: 100% !important;
}

#saved-links-grid .resp-grid-cell.actions {
    flex: 0 0 502px !important;    
}

#all-actions-grid .resp-grid-cell.actions {
    flex: 0 0 60px !important;    
}

#all-actions-grid .resp-grid-cell.action-level {
    flex: 0 0 60px !important;    
}

#notifications-grid .resp-grid-cell.actions,
#test-actions-grid .resp-grid-cell.actions,
[id^="section-actions-grid-"] .resp-grid-cell.actions,
#question-actions-grid .resp-grid-cell.actions {
    flex: 0 0 111px !important;    
}

#user-fields-grid .resp-grid-cell.actions {
    flex: 0 0 174px !important;    
}

#user-fields-grid .resp-grid-cell.field-type {
    flex: 0 0 100px !important;    
}

#user-fields-grid .resp-grid-cell.field-required {
    flex: 0 0 100px !important;    
}

.launch-at {
    flex: 0 0 90px !important;  
}

.launch-type {
    flex: 0 0 120px !important;  
}

#actions_tab {
    font-size: 12px;
}

#editNotificationModal .dialogMessage {
    max-width: 400px !important;
}

#selectQuestionModal label {
    width: unset !important;
    font-size: 12px;
    top: 8px;
}

.emails-note {
    font-size: 12px;
    color: #666666;
    margin-top: 4px;
    margin-bottom: 4px;
}

.group-content {
    text-align: initial;
}

.evaluation-view-group {
    padding: 10px;
}

.evaluation-view-group .resp-grid-cell.actions {
    flex: 0 0 65px;
}

.stage-container {
    display: grid;
    grid-template-columns: 1fr 200px 1fr;
}

.stage-group {
    display: flex;
    flex-direction: row !important;
    align-items: center;  
    width: 200px;  
}

.stage-caption {
    font-weight: bold;
    border: 1px solid #ccc;   
    padding: 3px; 
    flex-grow: 1;
    margin-right: 4px;
    border-radius: 4px;
}

.bpf-container {
    display: flex;
    margin: 0px auto;
    background-color: rgb(239,239,239);
    max-width: 920px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    padding-bottom: 4px;
}

.bpf-item {
    flex: 1;
}

.bpf-stage {
    background-color: white;
    position: relative;
    text-align: center;
    z-index: 1;
    top: -8px;
    border-radius: 50%;
    height: 16px;
    color: #ccc;
}

.bpf-stage.completed,
.bpf-stage.active {
    color: rgb(217,42,19);
}

.bpf-description {
    display: flex;
    flex-direction: column;
}

.bpf-description.active {
    font-weight: bold;
}

.bpf-icon-container {
    display: grid;
    grid-template-columns: 1fr 16px 1fr;
}

.bpf-line {
    height: 4px;
    background-color: #ccc;
    flex: 1;
    z-index: 2;
    margin-left: -1px;
    margin-right: -1px;
    top: -1px;
    position: relative;
}

.bpf-line.completed {
    background-color: rgb(217,42,19)
}

.bpf-line.active {
    margin-left: 0px;
}

.question-filter label {
    display: inline-block;
}

.phone-edit {
    max-width: 20ch;
}

.number-comments {
    margin-top: 4px;
}

.resp-grid-row.draggable-row {
    display: flex;
    border: 1px solid #ccc;    
    margin: 3px 0;
    cursor: grab;
    user-select: none;    
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.resp-grid-row-parent {
    background-color: white;
}

.question-placeholder {
    height: 25px;
    border: 2px dashed #888;
    margin: 4px 0;
}

.child-drop {
    background: #eef;
}

.sibling-drop {
    background: #efe;
}

.dragging {
    opacity: 0.5;
    z-index: 999999 !important;
    pointer-events: none !important;
    user-select: none;  
    -webkit-user-select: none;
    -moz-user-select: none;
}

.drop-before > .question-row {
    border-top: 3px solid #4a90e2 !important;
}

.drop-after > .question-row {
    border-bottom: 3px solid #4a90e2 !important;
}

.drop-child > .question-row {
    background-color: rgba(74, 144, 226, 0.12) !important;
}

.drop-not-allowed {
    opacity: 0.4;
}

.resp-grid-row.description {
    position: relative; /* Needed so ::before can position relative to this row */
}

.resp-grid-row.description::before {
    content: attr(data-label);
    position: absolute;
    top: 0px;
    left: 0px;
    font-size: 10px;
    font-weight: normal;
    padding: 0px 6px;
    border-radius: 0px;
    pointer-events: none;
    z-index: 2;
    white-space: nowrap;
    color: var(--text-color, #000000);
    background: var(--background-color, #f0f4ff);
    border: 1px solid var(--border-color, #CCCCCC);
}

.resp-grid-row.description.error::before {
    background: #ffcece !important;
    border: 1px solid red !important;
    color: red !important;
}

.resp-grid-row.description.repeated::before {
    background: #fff3cd !important;  
    border: 1px solid #ffc107 !important;
    color: #856404 !important;
}

.resp-grid-row.description.warning::before {
    background: yellow !important;  
    border: 1px solid gray !important;
    color: black !important;
}

.resp-grid-row.description .resp-grid-cell.question {
    padding-top: 14px;
    margin-bottom: 4px;
}

.repeated-section {
    flex-grow: 1;
}

.repeated-label {
    width: 100%;
    display: block;
    text-align: left;
}

input[type="color"] {
    padding: 0px !important;
}

.visual-settings-content {
    display: flex;
    flex-direction: row;
    height: 100%;
    gap: 8px;
}

#visual_settings_tab .resp-form-group label:first-of-type,
#editColorPresetModal .resp-form-group label:first-of-type {
    width: 240px !important;
    align-content: center;
}

.visual-left-panel {
    display: flex;
    flex-direction: column;
}

.visual-right-panel {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.color-presets-title {
    margin-top: 8px;
    margin-bottom: 4px;
}

.color-presets-toolbar button {
    font-size: 11px;
    min-width: unset;
    height: 24px;
}

.color-preset-row {
    border: 1px solid #ccc;
}

.color-preset-row.selected {
    border: 1px solid #4a90e2 !important;
    background: #e8f1ff !important;
    color: #003c8f !important;    
    box-shadow: 0 0 0 1px #4a90e2 inset !important;
}

#selectOptionSettingsModal .resp-modal-content {
    height: 270px;
    width: 400px;
}

#editActionModal .resp-modal-content {
    max-width: 90%;
    height: 90%;
}

#editActionForm {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#editActionForm .question-form-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#editActionEmails, #editActionEmailCC {
    max-height: 70px;
}

label[for="editNumberBeforeText"] {
    margin-left: 0px !important;
}

#editTargetTime {
    margin-right: 10px;
}

#editQuestionCommentsOpened {
    margin-left: 12px;
}

.repeated-answer {
    background-color: white;
}

.repeated-answer .resp-grid-container {
    margin-top: 5px;
    margin-bottom: 0px !important;
}

.repeated-answer .resp-grid-container:has(.resp-grid-row) {
    margin-top: 5px;
    margin-bottom: 8px !important;
}

.repeated-answer .responsive-table {    
    margin-bottom: 8px !important;
}

.repeated-answer .resp-grid-row.input-error {
    border-bottom: 1px solid red !important; 
    margin-bottom: 8px;
}

.repeated-answer {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding-right: 10px;
    padding-left: 10px;
    margin-bottom: 10px;
    padding-top: 10px;
    margin-right: 8px;
}

.resp-form-group:has(#editActionBody) {
    flex-grow: 1;
}

#selectOptionSettingsModal label {
    font-size: 12px;
    width: 200px;
    align-content: center;
}

#editModal .resp-form-group label:first-of-type {
    width: 120px;
}

#editModal .resp-modal-content {
    max-width: 825px;
}

#editMultiAnswerForm {
    font-size: 14px;
}

#editMultiAnswerForm label {
    font-size: 14px;
}

#editMultiAnswerModal .resp-modal-content {
    max-width: 520px;
}

#editMultiAnswerForm .resp-grid-cell.actions {
    flex: 0 0 133px;
}

#editMultiAnswerForm .question-form-body {
    max-height: 400px;
    overflow-y: auto;
}

.number-answer-container {
    border: 1px solid transparent;
    padding-bottom: 6px;
}

.number-answer-multi {
    max-width: 20px;
}

.date-label, .from-time-label, .to-time-label {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.reset-time-btn {
    max-height: 24px;
}

.number-answer-multi-container {
    display: flex; 
    flex-direction: row;
    margin-top: 4px;
    margin-left: 4px;
}

label[for="editOptionConditionBarWidth"], label[for="editConditionBarWidth"], 
label[for="editShowConditionInHeader"], label[for="editShowSubColorInParent"],
label[for="editOverrideSubColor"], label[for="editColorPresetOverrideSubColor"], 
label[for="editColorPresetConditionBarWidth"], label[for="editRunUseCustomColor"] {
    top: -2px !important;
}

.revert-btn {
    margin-left: 6px;
    font-size: 11px;
    min-width: unset;
}

.tab-container {					
    display: flex;
    border-bottom: 1px solid #ccc;	
    position: relative;				
}
.tab-button {
    align-self: flex-end;
    border-left: solid 1px #ccc;
    border-top: solid 1px #ccc;
    border-right: solid 1px #ccc;
    border-radius: 5px 5px 0px 0px;
    padding: 5px 10px 5px 10px;
    background-color: #f0f0f0;
    color: black;
    font-size: 15px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    height: 18px; 
    line-height: 20px; 
    width: min-content;
    white-space: nowrap;
    align-content: center;
}
.tab-button.active {
    background-color: white; 
    z-index: 2; 
    height: 21px; 
    color: black;
    cursor: pointer;
    position: relative;
    top: 1px;
}
.tab-button.disabled {
    background-color: #f0f0f0; 
    color: silver;
    cursor: default;
}
.tab-content {
    display: none; 
    border: 1px solid #ccc; 
    border-top: none;
    padding: 8px;
    height: 655px;
    max-height: calc(90vh - 100px);
    min-height: calc(100% - 50px);
    overflow-y: auto;
}
.tab-content.active {
    display: block;
}
.hor-spacer {
    width: 100%;
    height: 15px;
}
.spacer {
    flex-grow: 1;
}
.tab-button-highlighted {
    color: green;
    font-weight: bold;
}

#ues-options {
    margin-bottom: 4px;    
    display: flex;
    align-items: baseline;
}

#ues-options label {
    position: relative;
    top: -1px;
}

input[type="radio"] + label,
input[type="checkbox"] + label {
    margin-left: 0px !important;
}

#sq-position-settings, #ss-position-settings {
    margin-top: 10px;
    font-size: 12px;
}

#sq-position-settings label, #ss-position-settings label {
    top: 4px;
}

#position-settings input[type="radio"],
#sq-position-settings input[type="radio"],
#ss-position-settings input[type="radio"]  {
    height: 16px !important;
    min-width: 16px !important;
    left: -5px !important;
}

#editPositionQuestion, #editSQPositionQuestion, #editSSPositionQuestion {
    margin-right: 4px;
}

#whole-phrase {
    margin-left: 10px;
    margin-right: 0px;
}

#editActionForm .chzn-container-multi {
    margin-right: 2px;
}

.section-label {
    width: 140px !important;
}

select[name="testAfterSectionCompletionId"] {
    width: 100%;
}

.section-actions {
    flex-grow: 0;
    position: absolute;
    right: 0;
}

#actionStatusModal .resp-modal-content {
    max-width: 1000px;
    font-size: 12px;
}

#actions-status-grid {
    max-width: 100%;
}

#actions-status-grid .status.error {
    border: 1px solid red !important;
    background-color: #ffe6e6 !important;
}

#actions-status-grid .subject {
    flex: 0 0 160px !important;
    word-wrap: break-word;  
    overflow-wrap: break-word; 
    word-break: break-word; 
}

#actions-status-grid .status {
    word-wrap: break-word;  
    overflow-wrap: break-word; 
    word-break: break-word;       
}

#actions-status-grid .completed-at {
    flex: 0 0 134px !important;
}

#actions-status-grid .task-id {
    flex: 0 0 61px !important;
}

#actions-status-grid .task-status {
    flex: 0 0 150px !important;
    word-wrap: break-word;  
    overflow-wrap: break-word; 
    word-break: break-word; 
}

#general_tab {
    overflow-y: auto;
}

.question-filter {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.question-comments-section {
    display: flex; 
}

.view-attachments-container.input-error {
    border-radius: 8px;
    padding: 10px;
    padding-right: 18px;
}

.view-comments, .view-attachments {
    display: inline-flex;
    text-align: left;
    color: #2563EB;
    cursor: pointer;
}

.view-comments:hover, .view-attachments:hover {
    color: black;
}

.view-comments:after, .view-attachments:after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid #2563EB;
    border-bottom: 2px solid #2563EB;
    transform: rotate(45deg);
    transition: transform 0.15s ease, border-color 0.15s ease;
    position: relative;
    left: 7px;
    top: 3px;
}

.view-comments.opened:after, .view-attachments.opened:after {
    transform: rotate(-135deg);
    top: 8px;
}

.view-comments:hover:after, .view-attachments:hover:after {
    border-right: 2px solid black;
    border-bottom: 2px solid black;
}

.view-comments-row, .view-attachments-row {
    display: flex;
    border-bottom: 0px !important;
    margin-top: 6px;
    margin-bottom: 6px;
}

.question-comments-content {
    flex: 1;
}

.question-comments-files, .question-attachments-files {    
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.question-comments-files-title, .question-comments-header {
    font-size: 14px;    
    color: gray;
}

.question-attachments-section {
    flex-direction: column;
}

.question-comments-file, .question-attachments-file {
    border: 1px solid #ccc;
    flex-grow: 1;
    border-radius: 4px; 
    display: flex;   
    flex-direction: row;
    justify-content: center;    
    align-items: center;
    gap: 4px;
    padding-right: 4px;
    flex-wrap: wrap;
}

.question-attachments-file .actions {
    display: flex;
    flex-direction: row;
    gap: 4px;
}

.question-attachments-file .attachments {
    left: unset !important;
    flex-grow: 1;
}

.question-attachments-file .attachments.new-style-button {
    max-height: 22px;
    width: 26px;
}

.question-attachments-file {
    display: grid;
    grid-template-columns: 1fr 1fr 100px;
}

.question-attachments-file {
    padding: 8px;
}

.filename-with-comments {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin: 8px;
}

.filename-with-comments .comments {
    color: gray;
    font-style: italic;
}

.question-comments-file .resp-grid-action-btn {
    left: 0px !important;
    max-height: 22px;
    max-width: 22px;
    min-height: 22px;
    min-width: 22px !important;
}

.question-attachments-required {
    position: absolute;
    top: 44px;
    left: -99px;
    color: red;
    width: 130px;
    display: none;
    border-radius: 4px;
}

.question-attachments-required.input-error {
    display: block;
}

#editCalcFormula, input[readonly] {
    background-color: #f0f0f0;
    border-color: #ccc !important;
}

.formula-edit, .formula-test {
    max-height: 20px;
    margin: 2px;
    min-width: unset;
    font-size: 12px;
}

#editFormulaForm label {
    width: unset;
    font-size: 14px;
}

.valid-formula {
    border-color: #73b773;
    background-color: #d3f9d3;
}

#question-alias-grid {
    margin-top: 0px;
}

#question-alias-grid .question-alias {
    flex: 0 0 100px !important;
    word-wrap: break-word;  
    overflow-wrap: break-word; 
    word-break: break-word; 
}

#question-alias-grid .question-text {
    word-wrap: break-word;  
    overflow-wrap: break-word; 
    word-break: break-word;       
}

#editConditionMin, #editConditionMax,
#editCalcConditionMin, #editCalcConditionMax {
    max-width: 100px !important;
}

.radiogroup {
    min-width: 120px;
}

.user-field-group {
    gap: 8px;
    flex-wrap: wrap;
}

.test-colors-container {
    max-width: 700px;
    margin: auto;
}

.test-colors.add {
    margin-left: auto;
}

#test-colors-table .modal-table-cell {
    padding: 6px;
}

#test-colors-table .modal-table-body {
    max-height: 80vh;
} 

.test-colors-actions {
    display: flex;
    gap: 4px;
    max-width: 92px;
}

#editTestColorForm {
    font-size: 14px;
}

#editTestColorForm label {
    width: 200px;
}

#editTestColorModal .resp-modal-content {
    max-width: 400px;
}

.test-colors-bar-width {
    text-align: right !important;
}

.modal-table-row .test-colors-back-color,
.modal-table-row .test-colors-bar-color {
    padding: 2px;
}

.color-sample {
    border: 1px solid #ccc;
    height: 22px;
}

.auto-textarea {
    max-height: 400px !important;
}
/* Card View for Small Screens */
@media (max-width: 540px) {
    .to-date-label {
        margin-top: 5px;
    }

    .scores-table td {
        width: auto;
        padding: 4px;
        text-align: left;
        position: relative;
        align-content: center;
        height: 24px;
    }

    .scores-table td::before {
        margin-top: 4px;
        width: unset;
    }

    .stats-column {
        width: auto;
    }

    .stats-column::before {
        margin-top: 4px;        
    }

    #cancel-test-button { 
        top: 0px;    
    }

    .scores {
        flex-direction: column;
    }

    #yes-no-maybe-scores-table {
        max-width: unset;    
    }

    #yes-no-scores-table {
        max-width: unset;
    }

    #text-scores-table {
        max-width: unset;
    }

    #date-scores-table, #date-time-scores-table, #time-scores-table {
        max-width: unset;
    }

    #date-range-scores-table, #time-range-scores-table {
        max-width: unset;
    }

    #checklist-scores-table {
        max-width: unset;
    }

    #checklist-yes-no-scores-table {
        max-width: unset;
    }

    .select-section-body {
        display: flex;
        flex-direction: column;
    }

    #sendValdationCode {
        margin-left: 0px;
        margin-top: 4px
    }

    .resp-grid-row {
        height: unset;
    }

    .attachments-grid .resp-grid-cell.actions {
        flex: unset !important;
        gap: 0px;
    }

    .city-state-country-zip {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .resp-grid-action-btn.attachments {
        left: 0px;
    }

    .number-answer {
        flex-direction: column;
        margin: 8px;
    }

    .address-edit-field:not(:first-child) {    
        margin-left: 0px;
    }

    .address-edit-field {
        flex-direction: column;
    }

    .number-top-question-section {
        flex-direction: column;
    }

    .action-section.test-actions .actions,
    .action-section.section-actions .actions {
        padding-right: 0px;
        position: relative;
        right: 0px;
    }

    .resp-form-group:has(.test-actions) {
        align-items: end;
    }

    .action-section.question-actions .actions {
        right: unset;
        max-width: 17px;
        padding-top: 4px;
        padding-bottom: 1px;
    }

    .stats-attachments-column {
        min-width: calc(100% - 10px);
    }

    .stats-attachments-container {
        height: 24px;  
        justify-content: right;      
    }

    .stats-attachments-column::before {
        content: unset !important;
        display: flex;
    }

    .resp-grid-cell.action-section.question-actions {        
        margin-left: auto;
        margin-right: 8px;
    }

    .resp-grid-cell.attachments-section {
        width: 100%;
    }

    .resp-grid-cell.attachments-section .attachments {
        margin-left: auto;
    }

    .number-min, .number-max, .number-score,
    .number-field-type, .number-caption {
        max-width: unset;
    }

    .required-question {
        background-position-x: 2px;
    }

    .question-form-body {
        margin-bottom: 4px;
    }

    .option-answer, .option-score {
        flex: none;
    }

    .option-score, .number-scores, .answer-fields   {
        width: 100%;
        max-width: unset;
    }

    .option-actions, .number-scores-actions, .answer-fields-actions {
        justify-content: flex-start;
        max-width: unset;
    }

    .option-answer input, .option-score input, .number-scores input, .answer-fields input, .answer-fields select {
        width: unset !important;
    }

    .option {
        position: relative;
        left: -4px;
    }

    .seqNo-indent {
        display: none;
    }

    .tristate-checkbox {
        top: -3px;
    }

    .resp-grid-cell.question {
        flex: 1;
    }

    .resp-grid-cell.answer {
        max-width: initial; 
    }

    .resp-grid-cell.answer {
        width: initial; 
    }

    .resp-grid-cell.icon {
        margin: 4px; 
    }

    .resp-grid-action-btn.attachments {
        width: unset;
        text-align: center;
    }

    .question-attachments-file {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }
}    