/* 관리 화면 전용 표준 */
.customer-project-management { margin-top: 16px; }
.customer-project-fields { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.customer-project-fields select, .customer-project-fields input:not([type="checkbox"]) { min-width: 0; max-width: 100%; flex: 1 1 160px; }
.customer-project-fields label { display: inline-flex; align-items: center; gap: 4px; }
.customer-project-fields input[type="checkbox"] { width: 14px; height: 14px; }
.customer-project-fields select[data-project-catalog] { height: 30px !important; min-height: 30px; border-radius: 0; }
.customer-project-management [role="status"] { overflow-wrap: anywhere; }
.admin-page .customer-project-management .data-table { width: 100% !important; min-width: 0 !important; table-layout: fixed; }
.admin-page .customer-project-management .data-table th,
.admin-page .customer-project-management .data-table td { white-space: normal; overflow-wrap: anywhere; padding: 4px; }
.admin-page .customer-project-management .data-table th:nth-child(1) { width: 36px; }
.admin-page .customer-project-management .data-table th:nth-child(2) { width: 25%; }
.admin-page .customer-project-management .data-table th:nth-child(3) { width: auto; }
.admin-page .customer-project-management .data-table th:nth-child(4) { width: 88px; }
.customer-project-management td:first-child { text-align: center; }
.customer-project-management input[data-project-enabled] { width: 14px !important; height: 14px !important; margin: 0; vertical-align: middle; }

body:not(.pdf-view) .admin-page .customer-price-sections .data-table th,
body:not(.pdf-view) .admin-page .customer-price-sections .data-table td,
body:not(.pdf-view) .admin-page .admin-users-table th,
body:not(.pdf-view) .admin-page .admin-users-table td {
  min-height: 30px;
  height: 30px;
  padding: 5px 7px;
  border-color: #9fb5ca;
  font-size: 12px;
  line-height: 1.35;
  vertical-align: middle;
}

body:not(.pdf-view) .admin-page .customer-price-sections .data-table th,
body:not(.pdf-view) .admin-page .admin-users-table th {
  background: #d5e4f2;
  color: #071a2f;
  font-weight: 700;
}

body:not(.pdf-view) .admin-page .customer-price-sections input:not([type="checkbox"]),
body:not(.pdf-view) .admin-page .customer-price-sections select {
  min-height: 28px;
  height: 28px;
  border-radius: 0;
  font-size: 12px;
}

body:not(.pdf-view) .admin-page .customer-group-table th:first-child {
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  text-align: center;
}

body:not(.pdf-view) .admin-page .customer-group-table td:first-child {
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  padding-right: 4px;
  padding-left: 4px;
  text-align: center;
}

body:not(.pdf-view) .admin-page .customer-group-table input[type="checkbox"] {
  width: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  padding: 0 !important;
  margin: 0 !important;
  vertical-align: middle;
}

body:not(.pdf-view) .admin-page .admin-editor-card[hidden],
body:not(.pdf-view) .admin-page #saveUserButton[hidden] {
  display: none !important;
}

body:not(.pdf-view) .admin-page .admin-layout {
  grid-template-columns: minmax(0, 1fr);
}

body:not(.pdf-view) .admin-page .admin-user-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

body:not(.pdf-view) .admin-page .admin-user-form label {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  min-height: 30px;
  align-items: stretch;
  border: 1px solid #9fb5ca;
  background: #ffffff;
}

body:not(.pdf-view) .admin-page .admin-user-form label > span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-right: 1px solid #9fb5ca;
  background: #e6eff8;
  color: #071a2f;
  font-size: 12px;
  font-weight: 700;
}

body:not(.pdf-view) .admin-page .admin-user-form label > input {
  min-width: 0;
  min-height: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  font-size: 12px;
}

body:not(.pdf-view) .admin-page .admin-user-form .admin-active-field input[type="checkbox"] {
  align-self: center;
  justify-self: center;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
}

body:not(.pdf-view) .admin-page .permission-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body:not(.pdf-view) .admin-page .permission-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  border: 1px solid #9fb5ca;
  border-radius: 0;
}

body:not(.pdf-view) .admin-page .permission-group h4 {
  grid-column: 1 / -1;
  padding: 7px 10px;
  background: #1d3557;
  font-size: 12px;
}

body:not(.pdf-view) .admin-page .permission-check {
  display: grid;
  grid-template-columns: 18px minmax(100px, 0.9fr) minmax(0, 1.4fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
  min-height: 30px;
  padding: 5px 8px;
  border-top: 1px solid #d3e0ec;
  font-size: 12px;
  line-height: 1.35;
}

body:not(.pdf-view) .admin-page .permission-name,
body:not(.pdf-view) .admin-page .permission-description {
  min-width: 0;
  overflow-wrap: anywhere;
}

body:not(.pdf-view) .admin-page .permission-description {
  padding-left: 8px;
  border-left: 1px solid #d3e0ec;
  color: #526579;
  font-size: 11px;
}

body:not(.pdf-view) .admin-page .permission-check input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  align-self: center;
}

body:not(.pdf-view) .admin-page .permission-check small {
  display: none;
}

@media screen and (max-width: 760px) {
  body:not(.pdf-view) .admin-page .admin-user-form label {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  body:not(.pdf-view) .admin-page .admin-user-form label > span {
    padding: 0 4px;
  }

  body:not(.pdf-view) .admin-page .permission-check {
    grid-template-columns: 18px minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 3px;
    padding: 5px 3px;
  }

  body:not(.pdf-view) .admin-page .permission-description {
    padding-left: 4px;
  }

  body:not(.pdf-view) .admin-page .customer-price-sections .table-wrap,
  body:not(.pdf-view) .admin-page .admin-users-wrap {
    overflow-x: auto;
  }
}
