a_product/* Cleaned starter CSS */

/* product-information.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Malgun Gothic", sans-serif;
}
body {
  background: #eef2f7;
}
.header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #245a9c;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
}
.container {
  display: flex;
  height: calc(100vh - 60px);
}
.sidebar {
  width: 250px;
  background: #fff;
  border-right: 1px solid #d9dee5;
}
.content {
  flex: 1;
  padding: 20px;
}
.menu-list {
  list-style: none;
  padding: 10px 0;
}
.menu-list > li > a,
.menu-list > li > span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.menu-list > li > a:hover,
.menu-list > li > span:hover {
  background: #eef5ff;
  color: #245a9c;
}
.menu-list i {
  width: 18px;
  text-align: center;
}
.has-sub > ul {
  display: none;
  list-style: none;
}
.has-sub.open > ul {
  display: block;
}
.has-sub ul li a {
  display: block;
  padding: 10px 20px 10px 46px;
  color: #555;
  text-decoration: none;
  font-size: 13px;
}
.has-sub ul li a:hover {
  background: #eef5ff;
  color: #245a9c;
}
.menu .has-sub ul .has-sub ul li a {
  padding-left: 48px;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.search-bar label {
  font-weight: bold;
  color: #444;
}
.search-bar .form-select {
  width: 90px;
}
.search-action {
  margin-left: auto;
}
.form-input,
.form-select {
  height: 34px;
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  font-size: 13px;
  background: #fff;
}
.form-input {
  padding: 0 10px;
}
.form-select {
  padding: 0 32px 0 10px;
  appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5l6.5 6 6.5-6' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 10px center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 34px;
  padding: 0 16px;
  border: none;
  border-radius: 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: #0c82e9;
}

.btn-search {
  background: #6c757d;
}
.btn-edit {
  background: #2f80ed;
}
.btn-complete {
  background: #27ae60;
}
.btn-delete {
  background: #eb5757;
}
.btn-sm {
  min-width: 70px;
  height: 28px;
  padding: 0 10px;
  border-radius: 14px;
  font-size: 12px;
  margin: 0 2px;
}
.action-bar {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin: 15px 0;
}
.action-left,
.action-right {
  display: flex;

  gap: 10px;

  align-items: center;
}

.btn-success {
  background: #27ae60;
}

.btn-warning {
  background: #f39c12;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.table th,
.table td {
  border: 1px solid #ddd;
  text-align: center;
  padding: 8px;
  font-size: 13px;
}
.table th {
  background: #f4f6f9;
  white-space: nowrap;
}
.table tbody tr:hover {
  background: #fafafa;
}
.badge-use {
  color: #198754;
  font-weight: bold;
}
.badge-no {
  color: #dc3545;
  font-weight: bold;
}

/* ===== 2Depth ===== */
.has-sub > ul > li > a {
  display: block;
  padding: 10px 20px 10px 46px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
}

.has-sub > ul > li > a:hover {
  background: #eef5ff;
  color: #245a9c;
}

/* ===== 3Depth ===== */
.menu .has-sub ul .has-sub > a,
.menu .has-sub ul .has-sub > span {
  display: flex;
  align-items: center;
  padding: 10px 20px 10px 46px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}

.menu .has-sub ul .has-sub > a:hover,
.menu .has-sub ul .has-sub > span:hover {
  background: #eef5ff;
  color: #245a9c;
}

.menu .has-sub ul .has-sub ul {
  margin-left: 0;
}

.menu .has-sub ul .has-sub ul li a {
  display: block;
  padding: 8px 20px 8px 68px; /* ← 이전보다 22px 더 안쪽 */
  font-size: 13px;
  color: #666;
  text-decoration: none;
}

.menu .has-sub ul .has-sub ul li a:hover {
  background: #eef5ff;
  color: #245a9c;
}

/* ================= Modal ================= */

.modal-overlay {
  display: none;

  position: fixed;

  left: 0;
  top: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.45);

  justify-content: center;
  align-items: center;

  z-index: 9999;
}

.modal-overlay.show {
  display: flex;
}

.modal-window {
  width: 980px;

  background: #fff;

  border-radius: 6px;

  overflow: hidden;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  height: 50px;

  background: #245a9c;

  color: #fff;

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 0 20px;

  font-size: 17px;

  font-weight: bold;
}

.modal-close {
  border: none;

  background: none;

  color: white;

  font-size: 20px;

  cursor: pointer;
}

.modal-body {
  padding: 20px;

  background: #fafafa;
}

.section-title {
  font-size: 15px;

  font-weight: bold;

  color: #245a9c;

  margin: 20px 0 10px;
}

.popup-table {
  width: 100%;

  border-collapse: collapse;

  margin-bottom: 20px;
}

.popup-table th {
  width: 120px;

  background: #f3f5f7;

  border: 1px solid #d9dee5;

  padding: 10px;

  text-align: center;
}

.popup-table td {
  border: 1px solid #d9dee5;

  padding: 8px;
}

.popup-table input,
.popup-table select {
  width: 100%;
}

.modal-footer {
  background: #f3f5f7;

  border-top: 1px solid #ddd;

  padding: 15px;

  text-align: center;
}

.modal-footer .btn {
  margin: 0 5px;
}

.btn-edit2 {
  background: #38d0e4;
}
.btn-delete {
  background: #eb5757;
}

.has-sub > ul {
  display: none;
}

.has-sub.open > ul {
  display: block;
}

/* ===========================================
   Wizard Modal
=========================================== */

.modal-window.wizard-modal {
  width: 900px;
  max-width: 95%;
  min-height: 620px;
}

.wizard-page {
  min-height: 360px;
  padding: 25px;
}

/* Step */

.wizard-step {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 25px 30px;

  border-bottom: 1px solid #e5e5e5;

  background: #fafafa;
}

.step {
  width: 160px;

  text-align: center;
}

.step-number {
  width: 42px;
  height: 42px;

  margin: 0 auto 10px;

  border-radius: 50%;

  background: #cfcfcf;

  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  font-weight: bold;
}

.step.active .step-number {
  background: #245a9c;
}

.step-text {
  font-size: 14px;

  color: #888;

  font-weight: 600;
}

.step.active .step-text {
  color: #245a9c;
}

.step-line {
  flex: 1;

  height: 2px;

  background: #ddd;

  margin: 0 25px;
}

/* title */

.wizard-title {
  text-align: center;

  font-size: 22px;

  font-weight: bold;

  margin: 25px 0 40px;
}

/* radio */

.wizard-radio-group {
  display: flex;

  justify-content: center;

  gap: 35px;
}

.wizard-radio {
  width: 180px;

  padding: 40px 20px;

  border: 2px solid #ddd;

  border-radius: 10px;

  text-align: center;

  cursor: pointer;

  transition: 0.2s;
}

.wizard-radio:hover {
  border-color: #245a9c;

  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.wizard-radio input {
  display: none;
}

.wizard-radio span {
  font-size: 18px;

  font-weight: bold;
}

.wizard-radio input:checked + span {
  color: #245a9c;
}

/* popup table */

.popup-table {
  width: 100%;

  border-collapse: collapse;

  margin-top: 10px;
}

.popup-table th {
  width: 140px;

  background: #f5f5f5;

  border: 1px solid #ddd;

  padding: 12px;

  text-align: center;
}

.popup-table td {
  border: 1px solid #ddd;

  padding: 10px;
}

/* footer */

.modal-footer {
  display: flex;

  justify-content: flex-end;

  gap: 10px;

  align-items: center;

  padding: 15px 20px;

  background: #f7f7f7;

  border-top: 1px solid #ddd;
}

.modal-footer .btn {
  margin: 0;
}

/* animation */

#largeArea,
#middleArea,
#smallArea {
  animation: fade 0.25s ease;
}

@keyframes fade {
  from {
    opacity: 0;

    transform: translateY(8px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

#productModal .form-select,
#productModal .form-input {
  width: 100%;
}

#productModal .popup-table th {
  width: 130px;
}

#productModal .modal-footer {
  justify-content: center;
}

/* ===========================
   사용중지 확인 팝업
=========================== */

.delete-body {
  padding: 30px 25px;

  text-align: center;
}

.warning-icon {
  font-size: 55px;

  color: #f39c12;
}

.delete-title {
  margin: 18px 0 25px;

  font-size: 18px;

  font-weight: bold;
}

.reason-area {
  text-align: left;
}

.reason-area label {
  display: block;

  margin-bottom: 8px;

  font-weight: 600;

  color: #333;
}

.required {
  color: #e74c3c;
}

.reason-text {
  width: 100%;

  min-height: 110px;

  resize: vertical;

  padding: 10px 12px;

  border: 1px solid #ccd5e3;

  border-radius: 6px;

  font-size: 14px;

  font-family: "Malgun Gothic";
}

.reason-text:focus {
  border-color: #2f80ed;

  outline: none;
}
