@import url("../../colors_and_type.css");

html, body { margin: 0; padding: 0; background: var(--bee-bg); font-family: var(--bee-font-body); color: var(--bee-fg); -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }

.cp-shell { width: 100%; max-width: 1440px; margin: 0 auto; min-height: 100vh; display: grid; grid-template-columns: 272px 1fr; background: var(--bee-white); box-shadow: 0 0 0 1px rgba(0,0,0,.04); }

/* ---------- Sidebar ---------- */
.cp-side { background: var(--bee-white); border-right: 1px solid var(--bee-border); display: flex; flex-direction: column; padding: 22px 16px; gap: 4px; position: relative; }
.cp-side .brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 22px; }
.cp-side .brand img:first-child { height: 34px; }
.cp-side .brand img:last-child  { height: 18px; }
.cp-section { font-family: var(--bee-font-ui); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bee-fg-muted); padding: 16px 10px 6px; }

.cp-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-family: var(--bee-font-body); font-weight: 600; font-size: 14px; color: var(--bee-fg); cursor: pointer; position: relative; }
.cp-nav-item:hover { background: var(--bee-gray-100); }
.cp-nav-item.active { background: var(--bee-ink); color: var(--bee-white); }
.cp-nav-item.active .ic { color: var(--bee-yellow); }
.cp-nav-item .ic { width: 18px; height: 18px; color: var(--bee-fg-muted); }
.cp-nav-item.active::before { content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--bee-yellow); }
.cp-nav-item .count { margin-left: auto; background: var(--bee-yellow); color: var(--bee-ink); font-weight: 700; font-size: 10px; padding: 2px 7px; border-radius: 999px; }
.cp-nav-item.active .count { background: var(--bee-yellow); color: var(--bee-ink); }

.cp-user { margin-top: auto; padding: 12px; border-radius: 14px; background: var(--bee-gray-100); display: flex; align-items: center; gap: 10px; }
.cp-user .av { width: 36px; height: 36px; border-radius: 50%; background: var(--bee-yellow); display: flex; align-items: center; justify-content: center; font-family: var(--bee-font-body); font-weight: 700; color: var(--bee-ink); font-size: 13px; }
.cp-user .meta { display: flex; flex-direction: column; font-family: var(--bee-font-body); }
.cp-user .meta .nm { font-size: 13px; font-weight: 700; color: var(--bee-ink); }
.cp-user .meta .role { font-size: 11px; color: var(--bee-fg-muted); }

/* ---------- Topbar ---------- */
.cp-main { display: flex; flex-direction: column; min-height: 100vh; background: var(--bee-bg); }
.cp-top { background: var(--bee-white); border-bottom: 1px solid var(--bee-border); padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.cp-crumb { display: flex; align-items: center; gap: 8px; font-family: var(--bee-font-body); font-weight: 700; font-size: 20px; line-height: 1; }
.cp-crumb .muted { color: var(--bee-fg-faint); }
.cp-crumb .sep { color: var(--bee-fg-faint); display: inline-flex; }
.cp-search { flex: 1; max-width: 360px; position: relative; }
.cp-search input { width: 100%; height: 40px; padding: 0 14px 0 38px; background: var(--bee-gray-100); border: 1px solid transparent; border-radius: 10px; font-family: var(--bee-font-body); font-size: 13px; outline: 0; }
.cp-search input:focus { border-color: var(--bee-yellow); background: var(--bee-white); }
.cp-search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--bee-fg-muted); }
.cp-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.cp-icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bee-border); background: var(--bee-white); display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; color: var(--bee-fg); }
.cp-icon-btn:hover { background: var(--bee-gray-100); }
.cp-icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; background: var(--bee-danger); border-radius: 50%; border: 2px solid #fff; }
.cp-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bee-yellow); color: var(--bee-ink); font-family: var(--bee-font-body); font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Page body ---------- */
.cp-page { padding: 28px 24px; display: flex; flex-direction: column; gap: 24px; }
.cp-page-head { display: flex; align-items: center; justify-content: space-between; }
.cp-page-head h1 { margin: 0; font-family: var(--bee-font-body); font-weight: 700; font-size: 28px; letter-spacing: -.01em; }
.cp-page-head .sub { color: var(--bee-fg-muted); margin-top: 4px; font-size: 14px; }

.cp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cp-card { background: var(--bee-white); border-radius: 14px; border: 1px solid var(--bee-border); box-shadow: 0 2px 8px 0 rgba(0,0,0,.06); padding: 18px 20px; }
.cp-stat .label { font-family: var(--bee-font-ui); font-size: 12px; font-weight: 600; color: var(--bee-fg-muted); display: flex; gap: 8px; align-items: center; }
.cp-stat .value { font-family: var(--bee-font-body); font-weight: 700; font-size: 32px; margin-top: 8px; }
.cp-stat .trend { display: inline-flex; gap: 4px; align-items: center; margin-top: 6px; padding: 3px 8px; border-radius: 999px; background: #E6F8EE; color: #1E9E5A; font-family: var(--bee-font-body); font-weight: 700; font-size: 11px; }
.cp-stat .trend.down { background: var(--bee-danger-tint); color: var(--bee-danger); }
.cp-stat .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--bee-yellow); display: flex; align-items: center; justify-content: center; color: var(--bee-ink); float: right; margin-top: -6px; }

.cp-row2 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }

.cp-table { width: 100%; border-collapse: collapse; }
.cp-table thead th { text-align: left; font-family: var(--bee-font-ui); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bee-fg-muted); padding: 10px 14px; border-bottom: 1px solid var(--bee-border); }
.cp-table tbody td { padding: 14px 14px; font-family: var(--bee-font-body); font-size: 13px; border-bottom: 1px solid var(--bee-gray-100); color: var(--bee-fg); }
.cp-table tbody tr:hover { background: var(--bee-gray-100); }
.cp-table .av-sm { width: 28px; height: 28px; border-radius: 50%; background: var(--bee-gray-200); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; margin-right: 10px; vertical-align: middle; color: var(--bee-ink); }

.cp-side-card .row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bee-gray-100); }
.cp-side-card .row:last-child { border-bottom: 0; }
.cp-side-card .row .thumb { width: 48px; height: 48px; border-radius: 10px; background: url("../../assets/hero-camp-photo.png") center / cover; flex: 0 0 48px; }
.cp-side-card .row .text { display: flex; flex-direction: column; }
.cp-side-card .row .text .ttl { font-family: var(--bee-font-body); font-weight: 700; font-size: 13px; color: var(--bee-ink); }
.cp-side-card .row .text .sub { font-family: var(--bee-font-body); font-size: 11px; color: var(--bee-fg-muted); }
.cp-side-card .row .count { margin-left: auto; font-family: var(--bee-font-body); font-weight: 700; font-size: 13px; color: var(--bee-ink); }

.cp-card h3 { margin: 0 0 12px; font-family: var(--bee-font-body); font-weight: 700; font-size: 16px; }
