#outer_outer_item_container {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    margin-left: 5vw;
}

.outer_item_container {
    display: flex;
    min-width: 500px;
    background-color: white;
    padding: 20px 10px;
    border-radius: 0.25em;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

#add_item_btn {
    padding: 15px 60px;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.15);
    background-color: white;
    color: #4279bc;
    cursor: pointer;
    border-radius: 0.15em;
}

#add_item_btn:hover {
    background-color: rgb(248, 248, 248);
}

.add_details_btn,
.remove_details_btn {
    padding: 5px 10px;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    background-color: white;
    color: #4279bc;
    cursor: pointer;
    border-radius: 0.15em;
}

.add_details_btn:hover,
.remove_details_btn:hover {
    background-color: rgb(248, 248, 248);
}

.duplicate_btn,
.delete_btn {
    padding: 5px 10px;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    background-color: white;
    color: #4279bc;
    cursor: pointer;
    border-radius: 0.15em;
}

.duplicate_btn:hover,
.delete_btn:hover {
    background-color: rgb(248, 248, 248);
}

.add_item_div {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.basic_input_div {
    display: flex;
    flex-direction: column;
}

.input_label {
    color: grey;
    font-size: 15px;
}

.input_input {
    font-size: 16px;
    font-family: monospace;
    border-radius: 0.3em;
    padding: 7px;
    background-color: #f3f2f3;
    border: 1px solid #f3f2f3;
}

.input_input:focus {
    outline: none !important;
    border: 1px solid #4279bc;
}

.input_details {
    font-size: 15px;
    font-family: monospace;
    border-radius: 0.3em;
    padding: 4px;
    background-color: #f3f2f3;
    border: 1px solid #f3f2f3;
}

.med_txt {
    width: 150px;
}

.input_details:focus {
    outline: none !important;
    border: 1px solid #4279bc;
}

.lbl_small {
    font-size: 14px;
}

.details_input_div {
    display: flex;
    width: fit-content;
    border: 1px solid lightgrey;
    padding: 10px;
    border-radius: 0.25em;
}

.details_input_container {
    display: flex;
    gap: 5px;
    max-width: 70vw;
    overflow-x: auto;
    padding-bottom: 10px;
}

.add_item_details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    border-left: 1px solid lightgrey;
    margin-left: 10px;
    padding-left: 10px;
}

.small_int {
    width: 35px;
}

.action_btns_items {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-direction: column;
}

.action_btns_items_container {
    display: flex;
    height: 120px;
    border-right: 1px solid lightgrey;
    padding-right: 10px;
    align-items: center;
}

.canvas-container {
    max-width: 70vw;
    max-height: 80vh;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.22);
}

.zoom-buttons {
    display: flex;
    gap: 5px;
    /* margin-top:20px; */
    /* margin-right:10px; */
    z-index: 10;
}

.zoom-buttons button {
    font-size: 20px;
    padding: 10px 20px;
    background-color: white;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.15);
    border-radius: 0.35em;
    align-items: center;
}

.zoom-buttons button:hover {
    cursor: pointer;
    background-color: rgb(248, 248, 248);
}

.display_canvas {
    display: flex;
    margin-top: 10px;
    margin-left: 20px;
}

.svg_zoom {
    display: block;
    min-width: 20px;
    fill: #4279bc;
}

.seperate_img_items {
    display: flex;
    gap: 20px;
    width: 100%;
    margin-bottom: var(--sp-x);
}

.action_btns_container_top {
    display: flex;
    justify-content: flex-end;
    /* padding-bottom:10px; */
    gap: var(--sp-xs);
}

#itemList {
    max-height: 90vh;
    overflow-y: scroll;
    width: auto;
    padding: 10px 20px;
    margin-right: 20px;
    background-color: #e5e8ee;
    border-radius: 0.25em;
}

.choice_container {
    display: flex;
    flex-direction: column;
}

.choice_header {
    font-size: var(--text-size-90);
    font-weight: 600;
}

.choice_text {
    font-size: var(--text-size-90);
}

.choice_value {
    position: absolute;
    top: 4px;
    right: 5px;
    font-size: var(--text-size-80);
    background-color: #4279bc;
    color: white;
    width: max-content;
    border-radius: 0.5em;
    padding: 2px 4px;
}

.main_item_container {
    background-color: white;
    border-radius: 0.25em;
    margin-top: 10px;
    padding: 5px 10px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.22);
    min-width: 300px;
}

.sub_item_class {
    position: relative;
    border-left: 2px solid #4279bc;
    background-color: #b8d7ff29;
    padding: 5px 10px;
    margin-top: 7px;
}

.question_header {
    display: flex;
    font-size: var(--text-size-90);
    color: grey;
    justify-content: space-between;
}

.question_text {
    font-size: var(--text-size-95);
}

.item_class {
    border-bottom: 1px solid lightgrey;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.delete_choice_btn {
    display: flex;
    padding: 10px 20px;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.15);
    background-color: white;
    color: #4279bc;
    cursor: pointer;
    border-radius: 0.15em;
    text-decoration: none;
    align-items: center;
    font-size: var(--text-size-100);
}

.delete_choice_btn:hover {
    background-color: rgb(248, 248, 248);
}

.page_choice_nav_btns {
    display: flex;
    justify-content: space-between;
}

.page_move_div {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.page_move_btn {
    display: flex;
    padding: 10px 20px;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.15);
    background-color: white;
    color: #4279bc;
    cursor: pointer;
    border-radius: 0.15em;
    text-decoration: none;
    align-items: center;
    font-size: var(--text-size-95);
}

.page_move_btn:hover {
    background-color: rgb(248, 248, 248);
}

.current_page_number {
    display: flex;
    background-color: white;
    align-items: center;
    padding: 0px 30px;
    border-radius: 0.25em;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    justify-content: center;
}

.page_text_current {
    font-size: 14px;
    font-weight: bold;
}

.page_status_current {
    font-size: 11px;
    color: white;
    background-color: #4279bc;
    border-radius: 0.25em;
    padding: 2px 5px;
}

.page_status_incomplete {
    background-color: #f0f2f5;
    border: 1px solid #cccfd3;
    color: #54656f;
}

#main_canv_container {
    position: relative; /* Make it a positioning context for absolute buttons */
}

.canvas-wrapper {
    position: relative;
    display: inline-block;
}

#buttonContainer {
    position: fixed;
    background-color: #dddddd;
    padding: var(--sp-ss);
    border-radius: 50em;
    width: fit-content;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.selected_item {
    background-color: white;
    color: #4279bc !important;
    border-radius: 50em;
}

.detail_container_paper {
    background-color: white;
    border-radius: 0.25em;
    margin-top: 10px;
    padding: var(--sp-m);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.22);
    min-width: 300px;
    max-height: fit-content;
    max-width: 450px;
}

.page_btn_line {
    /* margin-bottom: var(--sp-s); */
    padding-bottom: var(--sp-s);
    border-bottom: 1px solid lightgrey;
}

.legend_flex {
    display: flex;
    gap: var(--sp-xxs);
    align-items: center;
    font-size: var(--text-size-90);
    background-color: white;
    border-radius: 0.25em;
    padding: var(--sp-xxs);
    width: max-content;
}

.legend_blob {
    height: 10px;
    width: 10px;
    border-radius: 50%;
}

.red_blob {
    background-color: red;
}

.blue_blob {
    background-color: #86b6f3;
}

.orange_blob {
    background-color: orange;
}

.checkbox_legend_div {
    margin-top: var(--sp-s);
    display: flex;
    gap: var(--sp-xs);
}

.def_btn_checkb {
    border-radius: 50em;
    font-size: var(--text-size-100);
    cursor: pointer;
    color: grey;
    padding: 0.75rem 1rem;
    transition: color 0.3s;
}

.finish_btn_res {
    display: flex;
    margin-top: var(--sp-m);
    justify-content: flex-end;
}

.error_div_mark {
    margin: var(--sp-s) 0;
    border-bottom: 1px solid lightgrey;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#errorContainer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: var(--sp-s) 0;
}

#RedErrorContainer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: var(--sp-s) 0;
}

.error_notice_mk {
    border-left: 2px solid orange;
    font-size: var(--text-size-90);
    padding: 7px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.12);
}

.critical_error_notice_mk {
    border-left: 2px solid red;
    font-size: var(--text-size-90);
    padding: 7px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.12);
}

.no_error_mk {
    font-size: var(--text-size-90);
    color: grey;
}

.lm_btn_cont {
    display: flex;
    gap: var(--sp-m);
    align-items: center;
    min-height: 50px;
    border-bottom: 1px solid lightgrey;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

@media (max-width: 767px) {
    .seperate_img_items {
        flex-direction: column;
    }

    .display_canvas {
        margin-right: 20px;
    }

    .canvas-container {
        max-width: 100%;
    }

    .outer_detail_wrapper {
        padding: 0px 20px;
    }

    .detail_container_paper {
        min-width: 0px;
    }
}


/* Add this CSS to your paper.css file */

.auto-resolve-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #4279BC, #285c9b);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgb(76 110 175 / 30%);
    position: relative;
}

.auto-resolve-btn:hover {
    background: linear-gradient(135deg, #518bd1, #366db1);    
    transform: translateY(-2px);
}

.auto-resolve-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.auto-resolve-icon {
    flex-shrink: 0;
}

.multiple-selection-badge {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.auto-resolve-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px 14px;
    border-radius: 6px;
    color: white;
    font-size: var(--text-size-100);
    z-index: 1000;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auto-resolve-notification.success {
    background: linear-gradient(135deg, #275996, #204e86);
}

.auto-resolve-notification.info {
    background: linear-gradient(135deg, #275996, #204e86);
}

.auto-resolve-notification.warning {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .auto-resolve-btn {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .auto-resolve-notification {
        right: 10px;
        left: 10px;
        top: 10px;
    }
}


.clickable-error {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.clickable-error:hover {
    background-color: rgba(66, 121, 188, 0.1);
    padding-left: 12px;
}

.clickable-error::after {
    content: "→";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #4279bc;
    font-weight: bold;
}

.clickable-error:hover::after {
    opacity: 1;
}

.critical_error_notice_mk.clickable-error:hover {
    background-color: rgba(255, 0, 0, 0.05);
}

.error_notice_mk.clickable-error:hover {
    background-color: rgba(255, 165, 0, 0.05);
}