/* Appointaro - Unified Dashboard Shell (Sidebar + Content)
   Scope: only inside .ap-shell
*/
.ap-shell, .ap-shell *{ box-sizing:border-box; }

.ap-shell{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap:16px;
  align-items:start;
}

/* Ensure the dashboard can use full content width */
.ap-manager{ width:100%; max-width:100%; margin:0; padding:0; }

/* Optional: make this dashboard full-bleed (ignore theme container centering) */
.ap-manager.ap-fullbleed{
  width:100vw;
  max-width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding-left:16px;
  padding-right:16px;
  overflow-x:hidden;
}


@media(max-width: 760px){
  .ap-shell{ grid-template-columns: 1fr; }
}

/* Sidebar */
.ap-sidebar{
  position: sticky;
  top: 16px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 25px rgba(15,23,42,.06);
  overflow:hidden;
}

@media(max-width:760px){
  .ap-sidebar{ position: relative; top:auto; }
}

.ap-side-head{
  padding:14px 14px 10px 14px;
  border-bottom:1px solid rgba(15,23,42,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.ap-side-title{
  font-weight:800;
  letter-spacing:-.02em;
}

.ap-side-toggle{
  display:none;
  border:1px solid rgba(15,23,42,.16);
  background:#fff;
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
}

@media(max-width:760px){
  .ap-side-toggle{ display:inline-flex; }
  .ap-side-body{ display:none; }
  .ap-sidebar.is-open .ap-side-body{ display:block; }
}

.ap-side-body{ padding:10px; }

.ap-nav{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.ap-nav a{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  padding:11px 12px;
  border-radius:14px;
  text-decoration:none;
  color:#0f172a;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
}

.ap-nav a:hover{
  border-color: rgba(15,23,42,.16);
  box-shadow:0 6px 14px rgba(15,23,42,.06);
}

.ap-nav a.is-active{
  border-color: rgba(15,23,42,.24);
  background: rgba(15,23,42,.03);
  font-weight:700;
}


/* Main */
.ap-main{ min-width:0; }

.ap-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.16);
  background:#fff;
  color:#0f172a;
  text-decoration:none;
  cursor:pointer;
  font-weight:700;
}

.ap-btn:hover{ box-shadow:0 6px 14px rgba(15,23,42,.06); }
.ap-btn-primary{
  background:#0f172a;
  color:#fff;
  border-color:#0f172a;
}

/* Ensure module pages don't exceed container */
.ap-main .appt-orders-wrap,
.ap-main .appt-res-admin-wrap,
.ap-main .appt-res-wrap,
.ap-main .ap-manager{
  max-width: 100%;
}

/* Force no underlines inside sidebar (theme overrides) */
.ap-sidebar a, .ap-sidebar a:hover{ text-decoration:none !important; }

/* Sidebar badges */
.ap-nav a{position:relative; display:flex; align-items:center; justify-content:space-between; gap:10px;}
.ap-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 6px;border-radius:999px;background:#dc2626;color:#fff;font-size:12px;font-weight:700;line-height:1;opacity:0;transform:scale(.9);transition:opacity .15s ease, transform .15s ease;}
.ap-badge.is-on{opacity:1;transform:scale(1);}