* { box-sizing: border-box; font-family: sans-serif; }
body { background: cadetblue; padding: 5px; }

/* 로그인 */
.factory_box { background: white; padding: 40px; border-radius: 8px; width: 100%; max-width: 600px; text-align: center; }
.radio_group { text-align: left; margin: 20px 10px; font-size: 18px; line-height: 2; border: 1px solid darkgrey; padding: 15px 20px; border-radius: 5px; background-color: azure}

/* 버튼 */
button { background-color: royalblue; padding: 5px 10px; border: none; border-radius: 5px; cursor: pointer; }
button:hover { background-color: steelblue}
.btn_buffer { background: none; font-size: 16px; cursor: pointer; border: 1px solid coral; }
.btn_bufferQty { font-size: 16px; background:#ffeb3b; border:1px solid #d4c12a; cursor:pointer; }
.btn_delete { font-size: 16px; background-color: red; }
.btn_edit { font-size: 16px; }
.btn_icon { background-color: darkgrey; font-size: 18px; padding: 5px 10px; }
.btn_save { width: 100%; font-size: 18px; font-weight: bold; }
.btn_board { font-size: 16px; }


.btn_small { font-size: 16px; padding: 4px 8px; cursor: pointer; border: 1px solid #ccc; background: #fff; margin-left: 2px; }
.settings_wrap { position: relative; }
.btn_settings { background: #6c757d; color: white; font-size: 16px; }

/* 입력 */
input { flex: 1; font-size: 16px; padding: 5px 10px; }
input::-webkit-inner-spin-button { -webkit-appearance: none; }
input::-webkit-outer-spin-button { -webkit-appearance: none; }
.input_updateQty { width: 50px; text-align: right; font-weight: bold;}

/* 선택 */
select { flex: 1; font-size: 16px; padding: 5px 20px; border-radius: 5px;}

/* 라벨 */
label { padding: 5px 10px; border-radius: 5px; font-size: 18px; cursor: pointer; }
label:hover { background-color: steelblue;}

.fs18 { font-size: 18px; }

.container { min-width: 900px; max-width: 1280px; margin: 0 auto; background: azure; padding: 10px; border-radius: 8px; }
.bar_top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }

.controls_right { display: flex; align-items: center; gap: 5px; justify-content: flex-end; }



/* 💡 편집용 팝업(모달) 디자인 추가 */
.modal { 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); 
    display: flex; justify-content: center; align-items: center; 
    z-index: 9999; 
}
.modal.hidden { display: none !important; }
.modal_content { 
    background: #fff; 
    padding: 20px 25px; 
    border-radius: 8px; 
    width: 100%; max-width: 900px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.3); 
}
.modal_header { 
    display: flex; justify-content: space-between; align-items: center; 
    border-bottom: 2px solid #eee; padding-bottom: 15px; margin-bottom: 15px; 
}
.btn_close { 
    background: none; border: none; font-size: 20px; cursor: pointer; color: #666; 
}
.btn_close:hover { color: #dc3545; }









.search_form { display: flex; justify-content: space-between; gap: 20px; padding: 10px 10px; background: #e9ecef; border-radius: 4px; }


/* 일반 */
.bar_top { background-color: darkgrey; padding: 5px 10px; border-radius: 4px;}

.btn_register { padding: 10px 10px; background: #007bff; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; width: 35%;}
.btn_consumables { padding: 10px 10px; background: #007bff; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; width: 100px}
.btn_progress { padding: 10px 10px; background: coral; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; width: 150px}
.btn_search { padding: 10px 10px; background: #007bff; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; width: 100px}

.rows_flex { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 5px; margin-bottom: 5px; }
.item_row { padding: 10px 15px; border-bottom: 1px dashed #eee; display: flex; justify-content: space-between; align-items: center; }




.badge { padding: 2px 6px; border-radius: 3px; font-size: 16px; color: #fff; margin-right: 5px; }
.buffer_box { background: #ffeb3b; padding: 2px 5px; border-radius: 3px; font-size: 12px; font-weight: bold; }

#settings_menu { position: absolute; top: 100px; right: 0; background: white; border: 1px solid #ccc; box-shadow: 0 4px 8px rgba(0,0,0,0.1); border-radius: 4px; width: 150px; z-index: 100; }
#settings-menu ul { list-style: none; padding: 0; margin: 0; }
#settings-menu li { border-bottom: 1px solid #eee; }
#settings-menu li a { 
    display: block; 
    padding: 10px 15px; 
    text-decoration: none; 
    color: #333; 
}
#settings_menu li a:hover { background: #f8f9fa; }

.hidden { display: none !important; }

.form_row { display: flex; gap: 10px; margin-bottom: 10px; }
.form_row > * { flex: 1; padding: 8px; border: 1px solid #ccc; border-radius: 4px; }
.card { border: 1px solid #ddd; margin-bottom: 15px; border-radius: 6px; overflow: hidden; }
.card_header { background-color:darkgrey; color: black; padding: 10px 15px; display: flex; justify-content: space-between; }

.item_row { padding: 10px 15px; border-bottom: 1px dashed #eee; display: flex; justify-content: space-between; align-items: center; }
.qty_num { color: red; font-weight: bold; font-size: 1.1em; }
.sub_info { color: #666; font-size: 13px; margin-left: 10px; }
.settings_menu { position: absolute; top: 40px; right: 0; background: #fff; border: 1px solid #ccc; list-style: none; padding: 0; width: 150px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }


/* pc.css 맨 아래에 추가해주세요 */

/* 탭 메뉴 디자인 복구 */
.tabs { display: flex; margin-bottom: 15px; }
.tab_btn { flex: 1; padding: 12px; background: #eee; border: 1px solid #ddd; cursor: pointer; font-size: 15px; font-weight: bold; }
.tab_btn.active { background: #fff; border-bottom: 2px solid #007bff; color: #007bff; }

/* 카드 내부 좌/우 정렬 디자인 복구 */
.info_left { flex: 1; }
.controls_right { display: flex; align-items: center; gap: 5px; justify-content: flex-end; }
