@import url('../../public/css/style.css');

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.admin-header h1 { font-size: 17px; }
.role-pill {
  font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark);
}

.tabs {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 57px; z-index: 4;
}
.tab-btn {
  white-space: nowrap;
  font-size: 14px; font-weight: 700;
  padding: 10px 14px; border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff; color: var(--ink-soft);
}
.tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.admin-wrap { max-width: 760px; margin: 0 auto; padding: 16px 14px 80px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.field-row { display: flex; gap: 10px; }
.field-row > * { flex: 1; }

.toolbar { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.toolbar button {
  min-height: 40px; min-width: 40px;
  border-radius: 8px; border: 1.5px solid var(--line);
  background: #fff; font-weight: 700; cursor: pointer;
}
.rich-editor {
  min-height: 140px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
  background: #fff;
  white-space: pre-wrap;
}
.rich-editor:focus { outline: 3px solid var(--accent-soft); }

table.data-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  background: #fff;
}
table.data-table th, table.data-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}
table.data-table th { background: var(--accent-soft); color: var(--accent-dark); position: sticky; top: 0; }
.table-scroll { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); }

.app-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.app-card .app-meta { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.app-card .p-line { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  display: flex; align-items: flex-end; justify-content: center; z-index: 20;
}
.modal-box {
  background: #fff; width: 100%; max-width: 480px;
  border-radius: 16px 16px 0 0; padding: 20px;
}

.list-item-row { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.list-item-row .row-top { display:flex; justify-content:space-between; align-items:center; }
.chip { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--bg); }

.mini-note { font-size: 12px; color: var(--ink-soft); }
