/* Enterprise neutral backend design lock */
:root {
  --adm-bg: #f3f5f8;
  --adm-panel: #ffffff;
  --adm-panel-soft: #f8fafc;
  --adm-text: #101828;
  --adm-sub: #667085;
  --adm-muted: #98a2b3;
  --adm-line: #d9dee7;
  --adm-primary: #1f2937;
  --adm-primary-hover: #344054;
  --adm-success: #067647;
  --adm-warning: #93370d;
  --adm-danger: #b42318;
  --adm-radius: 8px;
  --adm-shadow: 0 18px 48px rgba(15, 23, 42, .14);
  --adm-font: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --blue: var(--adm-primary);
  --blue2: #344054;
  --green: var(--adm-success);
  --red: var(--adm-danger);
  --orange: var(--adm-warning);
  --r: var(--adm-radius);
}

body {
  background: var(--adm-bg);
  color: var(--adm-text);
  font-family: var(--adm-font);
}

.login-page {
  background:
    linear-gradient(135deg, rgba(18, 34, 67, .96), rgba(36, 61, 118, .94)),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, .14), transparent 28%) !important;
}

.login-box {
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: var(--adm-shadow) !important;
}

.login-box h1 {
  letter-spacing: 0 !important;
}

.sidebar {
  border-right: 1px solid var(--adm-line) !important;
  box-shadow: 1px 0 0 rgba(15, 23, 42, .02) !important;
}

.sidebar h2 {
  color: var(--adm-text);
}

.main {
  background: var(--adm-bg) !important;
}

.header {
  border: 1px solid var(--adm-line);
  border-radius: var(--adm-radius) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
}

.section h4 {
  border-bottom: 1px solid var(--adm-line) !important;
  color: var(--adm-text);
}

.content {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.adm-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.adm-page-head {
  background: var(--adm-panel);
  border: 1px solid var(--adm-line);
  border-radius: var(--adm-radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.adm-page-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

.adm-page-desc {
  margin-top: 4px;
  color: var(--adm-sub);
  font-size: 13px;
}

.adm-toolbar,
.adm-card {
  background: var(--adm-panel);
  border: 1px solid var(--adm-line);
  border-radius: var(--adm-radius);
  padding: 16px;
}

.adm-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.adm-btn,
.btn {
  border: 1px solid var(--adm-line);
  background: #fff !important;
  color: #344054 !important;
  border-radius: 6px !important;
  padding: 8px 14px;
  min-height: 36px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none !important;
  transform: none !important;
}

.adm-btn:hover,
.btn:hover {
  border-color: #c8ced8;
  background: #f9fafb !important;
}

.adm-btn-primary,
.btn-primary,
.btn-info,
.modal .btns .confirm {
  border-color: var(--adm-primary) !important;
  background: var(--adm-primary) !important;
  color: #fff !important;
}

.adm-btn-primary:hover,
.btn-primary:hover,
.btn-info:hover,
.modal .btns .confirm:hover {
  border-color: var(--adm-primary-hover) !important;
  background: var(--adm-primary-hover) !important;
}

.adm-btn-danger,
.btn-danger {
  border-color: #fecdca !important;
  background: #fff !important;
  color: var(--adm-danger) !important;
}

.btn-warning {
  border-color: #fedf89 !important;
  background: #fff !important;
  color: var(--adm-warning) !important;
}

.btn-success {
  border-color: #abefc6 !important;
  background: #fff !important;
  color: var(--adm-success) !important;
}

.btn-sm {
  min-height: 30px;
  padding: 6px 11px !important;
  font-size: 12px !important;
}

.modal .btns .cancel {
  border: 1px solid var(--adm-line) !important;
  background: #fff !important;
  color: #344054 !important;
}

.login-box button {
  background: var(--adm-primary) !important;
  color: #fff !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  transform: none !important;
}

.adm-input,
.adm-select,
.adm-textarea {
  border: 1px solid var(--adm-line);
  border-radius: 7px;
  min-height: 36px;
  padding: 8px 10px;
  background: #fff;
  color: var(--adm-text);
  font-size: 14px;
}

.adm-input:focus,
.adm-select:focus,
.adm-textarea:focus {
  border-color: var(--adm-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(49, 87, 213, .10);
}

.adm-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--adm-line);
  border-radius: var(--adm-radius);
  background: #fff;
}

.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.adm-table th {
  background: #f8fafc;
  color: #475467;
  font-weight: 600;
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--adm-line);
  white-space: nowrap;
}

.adm-table td {
  padding: 12px;
  border-bottom: 1px solid #eef2f6;
  vertical-align: top;
}

.adm-table tr:hover {
  background: #fbfcfe;
}

.adm-empty,
.adm-error {
  padding: 42px 20px;
  text-align: center;
  color: var(--adm-sub);
  background: var(--adm-panel);
  border: 1px solid var(--adm-line);
  border-radius: var(--adm-radius);
}

.adm-error {
  color: var(--adm-danger);
}

.adm-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
}

.adm-status-ok {
  background: #eaf7ef;
  color: var(--adm-success);
}

.adm-status-muted {
  background: #eef2f6;
  color: #667085;
}

.adm-status-warn {
  background: #fff4df;
  color: var(--adm-warning);
}

.adm-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.adm-list-toolbar,
.adm-list-batch {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.adm-list-toolbar .adm-input {
  width: min(320px, 100%);
}

.adm-list-total {
  margin-left: auto;
  color: var(--adm-sub);
  font-size: 13px;
}

.adm-list-batch label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--adm-sub);
  font-size: 13px;
}

.adm-list-batch span {
  color: var(--adm-sub);
  font-size: 12px;
}

.adm-shop-product-table {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--adm-line);
  border-radius: var(--adm-radius);
}

.adm-shop-product-table table {
  margin: 0;
  min-width: 760px;
}

.adm-user-compact-table .adm-table {
  min-width: 1080px;
  table-layout: fixed;
}

.adm-user-compact-table .adm-table th,
.adm-user-compact-table .adm-table td {
  padding: 9px 10px;
  vertical-align: middle;
}

.adm-user-compact-table .adm-table th:nth-child(1) { width: 42px; }
.adm-user-compact-table .adm-table th:nth-child(2) { width: 180px; }
.adm-user-compact-table .adm-table th:nth-child(3) { width: 120px; }
.adm-user-compact-table .adm-table th:nth-child(4) { width: 210px; }
.adm-user-compact-table .adm-table th:nth-child(5) { width: 230px; }
.adm-user-compact-table .adm-table th:nth-child(6) { width: 72px; }
.adm-user-compact-table .adm-table th:nth-child(7) { width: 72px; }
.adm-user-compact-table .adm-table th:nth-child(8) { width: 252px; }

.adm-user-name {
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.adm-cell-sub {
  margin-top: 3px;
  color: var(--adm-sub);
  font-size: 12px;
  line-height: 1.45;
}

.adm-user-projects {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.adm-actions-nowrap {
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.adm-action-menu {
  position: relative;
}

.adm-action-menu summary {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--adm-line);
  border-radius: 7px;
  background: #fff;
  color: var(--adm-text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
}

.adm-action-menu summary::-webkit-details-marker {
  display: none;
}

.adm-action-menu summary::after {
  content: '▾';
  margin-left: 6px;
  color: var(--adm-muted);
}

.adm-action-menu[open] summary {
  border-color: var(--adm-primary);
  box-shadow: 0 0 0 3px rgba(49, 87, 213, .10);
}

.adm-action-menu-pop {
  margin-top: 6px;
  width: 132px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--adm-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--adm-shadow);
}

.adm-action-menu-pop .adm-btn {
  width: 100%;
  justify-content: center;
}

.adm-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--adm-sub);
  font-size: 13px;
}

.adm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.adm-field label,
.adm-field-label {
  display: block;
  color: var(--adm-sub);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.adm-modal-panel,
.modal {
  border-radius: 12px !important;
  border: 1px solid var(--adm-line) !important;
  box-shadow: var(--adm-shadow) !important;
  overflow: hidden auto !important;
}

.modal > h4 {
  min-height: 58px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid var(--adm-line) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--adm-text);
}

.adm-modal-close {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0 !important;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: var(--adm-muted) !important;
  font-size: 22px !important;
  line-height: 1;
  cursor: pointer;
}

.adm-modal-close:hover {
  border-color: var(--adm-line) !important;
  background: #f8fafc !important;
  color: var(--adm-text) !important;
}

.modal > .btns {
  background: #fff !important;
  border-top: 1px solid var(--adm-line) !important;
  padding: 14px 20px !important;
}

.adm-poster-editor {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(360px, 1fr);
  gap: 18px;
  padding: 0 26px 8px;
}

.adm-poster-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.adm-poster-preview-panel {
  background: #f8fafc;
  border: 1px solid var(--adm-line);
  border-radius: var(--adm-radius);
  padding: 14px;
  min-height: 560px;
}

.adm-image-state {
  min-height: 180px;
  border: 1px dashed #cbd5e1;
  border-radius: var(--adm-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--adm-sub);
  background: #fff;
}

@media (max-width: 900px) {
  .adm-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .adm-form-grid,
  .adm-poster-editor {
    grid-template-columns: 1fr;
  }

  .adm-list-total {
    width: 100%;
    margin-left: 0;
  }
}
