/* Shared page layout: top bar, buttons, cards, pills, dropdowns, footer */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }

.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@keyframes slizenContentEnter {
  from { opacity: .72; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.main > .content.shell-content-enter { animation: slizenContentEnter .18s ease-out both; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.search {
  width: 420px;
  max-width: 50%;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #8A8A8E;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--text);
}
.search input::placeholder { color: #8A8A8E; }
.search kbd {
  font-family: inherit;
  font-size: 11px;
  color: #8A8A8E;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
}

.topbar-right { display: flex; align-items: center; gap: 8px; }

.store-switch {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
}
.icon-btn.has-dot::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E74C3C;
  border: 1.5px solid #fff;
}

.avatar-top {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 4px;
}
.profile-trigger {
  width: 42px;
  height: 42px;
  padding: 2px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
}
.profile-trigger:hover, .profile-trigger:focus-visible { border-color: var(--border); outline: none; }
.profile-menu { width: min(320px, calc(100vw - 32px)); padding: 14px; }
.profile-menu-head { display: flex; align-items: center; gap: 11px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.profile-menu-avatar { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #EAF7EF; color: var(--primary-dark); font-size: 14px; font-weight: 700; }
.profile-menu-head strong, .profile-menu-head small { display: block; overflow-wrap: anywhere; }
.profile-menu-head strong { color: var(--text); font-size: 14px; font-weight: 600; }
.profile-menu-head small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.profile-menu-row { display: flex; flex-direction: column; gap: 4px; padding: 11px 2px 0; }
.profile-menu-row span { color: var(--muted); font-size: 12px; }
.profile-menu-row strong { color: var(--text); font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }

.slizen-toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: min(410px, calc(100vw - 32px));
  pointer-events: none;
}
.slizen-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 15px 42px 17px 14px;
  overflow: hidden;
  border: 1px solid rgba(16,24,40,.06);
  border-left: 4px solid #458C4E;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.13);
  color: #111;
  pointer-events: auto;
  animation: slizenToastEnter .24s ease-out both;
}
.slizen-toast-success { border-left-color: #27AE60; }
.slizen-toast-error { border-left-color: #E74C3C; }
.slizen-toast-warning { border-left-color: #E6A23C; }
.slizen-toast-icon { flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #EAF7EF; color: #21854A; font-size: 15px; font-weight: 700; }
.slizen-toast-error .slizen-toast-icon { background: #FDECEA; color: #C94034; }
.slizen-toast-warning .slizen-toast-icon { background: #FFF4DF; color: #A66A00; }
.slizen-toast-copy { min-width: 0; flex: 1; }
.slizen-toast-copy strong { display: block; margin: 1px 0 3px; font-size: 14px; font-weight: 650; }
.slizen-toast-copy p { margin: 0; color: #74777B; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.slizen-toast-dismiss { position: absolute; top: 8px; right: 9px; width: 27px; height: 27px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #7D8286; font-size: 20px; cursor: pointer; }
.slizen-toast-dismiss:hover { background: #F2F4F3; color: #222; }
.slizen-toast-progress { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: #27AE60; transform-origin: left; }
.slizen-toast-error .slizen-toast-progress { background: #E74C3C; }
.slizen-toast-warning .slizen-toast-progress { background: #E6A23C; }
.slizen-toast-info .slizen-toast-progress { background: #458C4E; }
.slizen-toast-leave { animation: slizenToastLeave .22s ease-in both; }
@keyframes slizenToastEnter { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slizenToastLeave { to { opacity: 0; transform: translateX(18px); } }
@keyframes slizenToastProgress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 560px) { .slizen-toast-stack { right: 12px; bottom: 12px; width: calc(100vw - 24px); } }

/* ---------- Content ---------- */
.content { flex: 1; padding: 28px 28px 28px; }

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}
.page-head h1 { margin: 0 0 4px; font-size: 24px; font-weight: 600; letter-spacing: -0.3px; }
.page-head p { margin: 0; font-size: 14.5px; color: var(--muted); }

.page-actions { display: flex; gap: 10px; }

.btn {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
}
.btn-light { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn-dark { background: var(--dark); border: 1px solid var(--dark); color: #fff; font-weight: 600; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-head h2 { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -0.1px; }
.link { font-size: 13.5px; font-weight: 500; color: var(--primary-dark); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
}
.pill .dot { width: 6px; height: 6px; background: currentColor; }
.pill-green { background: #E3F5EA; color: #219653; }
.pill-blue { background: #E6F2FB; color: #3498DB; }
.pill-violet { background: #F3EBF7; color: #9B59B6; }
.pill-amber { background: #FDF1E7; color: #E67E22; }
.pill-red { background: #FDECEA; color: #E74C3C; }

/* ---------- Footer ---------- */
.footer {
  height: 52px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.footer nav { display: flex; gap: 16px; }
.footer a:hover { color: var(--text); }

/* ---------- Dropdowns (date range + notifications) ---------- */
.dropdown { position: relative; }
.dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
  z-index: 60;
}
.dropdown.open > .dd-menu { display: block; }

.dd-menu-range { min-width: 190px; list-style: none; margin: 0; padding: 6px; }
.dd-menu-range button {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--text);
}
.dd-menu-range button:hover { background: #F4F6F5; }
.dd-menu-range button.selected { background: #EAF7EF; color: var(--primary-dark); font-weight: 600; }

.notif-menu { width: 328px; overflow: hidden; }
.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 14px;
}
.notif-head strong { font-size: 15px; font-weight: 500; }
.notif-mark { background: none; border: 0; padding: 0; font-size: 13px; font-weight: 500; color: var(--primary-dark); }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-list li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; }
.notif-list li.unread { background: #F3FAF6; }
.notif-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #EEF1EF;
  color: #1F1F1F;
}
.notif-list strong { display: block; font-size: 15px; font-weight: 600; }
.notif-list small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
