/* portal/assets/shell.css — Tailwind CDN 보조 레이아웃 */
:root { --pp-sidebar-w: 240px; }
* { box-sizing: border-box; }
body.pp-body { margin: 0; font-family: -apple-system, "Apple SD Gothic Neo", system-ui, sans-serif;
  background: #f8fafc; color: #1e293b; }
.pp-sidebar { position: fixed; top: 0; left: 0; width: var(--pp-sidebar-w); height: 100vh;
  background: #fff; border-right: 1px solid #e2e8f0; overflow-y: auto; padding: 16px 10px;
  z-index: 30; transition: transform .2s; }
.pp-brand { display: flex; align-items: center; padding: 6px 4px 14px; }
.pp-brand a { flex: 1; display: flex; align-items: center; gap: 6px; text-decoration: none;
  color: #0f172a; font-size: 18px; }
.pp-brand span { color: #94a3b8; font-size: 13px; }
.pp-collapse { background: none; border: 0; font-size: 18px; color: #94a3b8; cursor: pointer;
  padding: 2px 8px; border-radius: 6px; line-height: 1; }
.pp-collapse:hover { background: #f1f5f9; color: #334155; }
.pp-group { font-size: 11px; color: #94a3b8; font-weight: 700; letter-spacing: .04em;
  padding: 14px 10px 4px; text-transform: uppercase; }
.pp-nav { display: flex; flex-direction: column; gap: 1px; padding-bottom: 12px; }
.pp-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px;
  text-decoration: none; color: #334155; font-size: 14px; }
.pp-item:hover { background: #f1f5f9; }
.pp-item.pp-active { background: #e0e7ff; color: #3730a3; font-weight: 600; }
.pp-ic { width: 20px; text-align: center; }
.pp-label { flex: 1; }
.pp-ext { color: #cbd5e1; font-size: 12px; }
.pp-main { margin-left: var(--pp-sidebar-w); min-height: 100vh; display: flex; flex-direction: column;
  transition: margin-left .2s; }
.pp-header { display: flex; align-items: center; gap: 12px; padding: 14px 24px;
  background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 20; }
.pp-burger { display: block; background: none; border: 0; font-size: 20px; cursor: pointer; color: #334155; }
.pp-title { font-weight: 700; font-size: 16px; }
.pp-logout { margin-left: auto; font-size: 13px; color: #64748b; text-decoration: none;
  border: 1px solid #e2e8f0; border-radius: 6px; padding: 6px 12px; }
.pp-logout:hover { color: #0f172a; }
.pp-content { padding: 32px 24px; flex: 1; }
.pp-content.pp-flush { padding: 0; display: flex; }
.pp-embed { flex: 1; width: 100%; height: calc(100vh - 53px); border: 0; display: block; }
.pp-placeholder { max-width: 480px; margin: 8vh auto; text-align: center; color: #475569; }
.pp-ph-icon { font-size: 44px; }
.pp-placeholder h1 { font-size: 22px; margin: 12px 0 6px; }
.pp-placeholder p { color: #94a3b8; }

/* 접힘 상태 (« 또는 ☰ 토글, localStorage 유지) — 전 화면 공통 */
.pp-collapsed .pp-sidebar { transform: translateX(-100%); }
.pp-collapsed .pp-main { margin-left: 0; }

@media (max-width: 768px) {
  /* 모바일: 사이드바 기본 표시(오버레이) */
  .pp-main { margin-left: 0; }
  .pp-sidebar { box-shadow: 2px 0 16px rgba(0,0,0,.12); }
}

/* 메뉴 순서 설정 페이지 (/p/menu-order.html) */
.mo-wrap { max-width: 560px; }
.mo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.mo-head h1 { font-size: 22px; font-weight: 700; margin: 0; }
.mo-head p { color: #94a3b8; font-size: 13px; margin: 4px 0 0; }
.mo-actions { display: flex; gap: 8px; flex-shrink: 0; }
.mo-btn { border: 1px solid #e2e8f0; background: #fff; color: #334155; border-radius: 8px;
  padding: 8px 14px; font-size: 14px; cursor: pointer; }
.mo-btn:hover { background: #f1f5f9; }
.mo-primary { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.mo-primary:hover { background: #4338ca; }
.mo-status { font-size: 13px; padding: 8px 12px; border-radius: 8px; margin-bottom: 14px;
  background: #f1f5f9; color: #475569; }
.mo-status.mo-ok { background: #dcfce7; color: #166534; }
.mo-status.mo-err { background: #fee2e2; color: #991b1b; }
.mo-group { border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; margin-bottom: 14px;
  overflow: hidden; }
.mo-group-head { display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid #eef2f7; }
.mo-group-name { font-weight: 700; font-size: 14px; color: #0f172a; }
.mo-item { display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; border-bottom: 1px solid #f1f5f9; }
.mo-item:last-child { border-bottom: 0; }
.mo-item-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #334155;
  flex: 1; min-width: 0; margin-right: 8px; }
.mo-item-icon { flex-shrink: 0; width: 20px; text-align: center; }
.mo-item-name { flex: 1; min-width: 0; }
/* 인라인 이름 편집: 평소엔 텍스트처럼, hover/focus 때 입력칸 드러남 */
.mo-edit { border: 1px solid transparent; background: transparent; border-radius: 6px;
  padding: 3px 6px; font: inherit; color: inherit; max-width: 100%; }
.mo-edit:hover { border-color: #e2e8f0; }
.mo-edit:focus { border-color: #c7d2fe; background: #fff; outline: none;
  box-shadow: 0 0 0 3px rgba(199,210,254,.4); }
input.mo-group-name { flex: 1; min-width: 0; margin-right: 8px; }
.mo-ctrl { display: flex; gap: 4px; flex-shrink: 0; }
.mo-arrow { width: 30px; height: 30px; border: 1px solid #e2e8f0; background: #fff;
  border-radius: 7px; cursor: pointer; color: #475569; font-size: 14px; line-height: 1; }
.mo-arrow:hover:not(:disabled) { background: #eef2ff; border-color: #c7d2fe; color: #4338ca; }
.mo-arrow:disabled { opacity: .35; cursor: default; }
.mo-move { height: 30px; border: 1px solid #e2e8f0; border-radius: 7px; background: #fff;
  color: #475569; font-size: 13px; padding: 0 6px; cursor: pointer; max-width: 96px; }
.mo-move:hover { border-color: #c7d2fe; }
/* 삭제(✕): 커스텀 항목/그룹만 */
.mo-del { width: 30px; height: 30px; border: 1px solid #fecaca; background: #fff; border-radius: 7px;
  cursor: pointer; color: #dc2626; font-size: 13px; line-height: 1; }
.mo-del:hover:not(:disabled) { background: #fef2f2; border-color: #f87171; }
.mo-del:disabled { opacity: .3; cursor: default; border-color: #e2e8f0; color: #94a3b8; }
/* 추가 버튼 + 인라인 폼 */
.mo-additem { padding: 8px 14px; border-top: 1px dashed #eef2f7; }
.mo-addgroup { margin-top: 4px; }
.mo-add { border: 1px dashed #cbd5e1; background: #fff; color: #64748b; border-radius: 8px;
  padding: 6px 12px; font-size: 13px; cursor: pointer; }
.mo-add:hover { border-color: #a5b4fc; color: #4338ca; background: #f5f7ff; }
.mo-add-group { width: 100%; padding: 10px; font-weight: 600; }
.mo-form { display: flex; align-items: center; gap: 6px; }
.mo-form-input { flex: 1; min-width: 0; border: 1px solid #e2e8f0; background: #fff;
  border-radius: 7px; padding: 6px 8px; }
.mo-form-input:focus { border-color: #c7d2fe; outline: none; box-shadow: 0 0 0 3px rgba(199,210,254,.4); }
.mo-form-icon { flex: 0 0 44px; text-align: center; }
.mo-form-ok { height: 32px; padding: 0 12px; font-size: 13px; flex-shrink: 0; }
